This set of code performs WIND ticket validation.  To use it:

1. #include "wind_validate.h"

2. Call the function:

	int WIND_validate(char *ticket,
			  char *service,
			  char *outbuf,
			  int outbuflen,
			  char *error);

   Arguments:

   This function takes the ticket as the first argument and the
   service name as the second argument (not required, but MUST NOT BE
   NULL -- "" is acceptable).  The third argument is for the
   UNI/username that corresponds to the ticket and must be a pointer to
   preallocated space.  The fourth argument shouild be the size of
   this preallocated space.  The fifth argument, error, may be NULL or
   may be a preallocated block of space to put an error message.
   Because range checking is not performed on this field, a
   segmentation fault can occur if the supplied space is insufficient.
   In practice, as long as 128 bytes of space are supplied, the bound
   should not be exceeded.

   Return value:

   On success, the function returns 1 and outbuf is populated with the
   UNI or username (as configured for the service).  If the ticket was
   invalid, a connection error occurred, or the UNI/username did not
   fit into outbuf, 0 is returned.

   Bugs:

   No range checking exists on 'error', so if the function attempts to
   return an error message longer than the preallocated space, a
   segmentation fault will occur.
   

3. When linking your program, be sure to include wind_validate.o,
   as well as:
	-lssl -lcrypto -lsocket -lnsl
