urldata: Introduced a GSSAPI (Kerberos V5) data structure

Added a kerberos5data structure which is similar in nature to the
ntlmdata and negotiatedata structures.
This commit is contained in:
Steve Holme 2014-08-10 13:58:44 +01:00
parent 215f932e49
commit 3ec253532e
1 changed files with 17 additions and 0 deletions

View File

@ -425,6 +425,19 @@ typedef enum {
#include <iconv.h>
#endif
/* Struct used for GSSAPI (Kerberos V5) authentication */
#if defined(USE_WINDOWS_SSPI)
struct kerberos5data {
CredHandle *credentials;
CtxtHandle *context;
TCHAR *spn;
SEC_WINNT_AUTH_IDENTITY identity;
SEC_WINNT_AUTH_IDENTITY *p_identity;
size_t token_max;
BYTE *output_token;
};
#endif;
/* Struct used for NTLM challenge-response authentication */
struct ntlmdata {
curlntlm state;
@ -973,6 +986,10 @@ struct connectdata {
struct sockaddr_in local_addr;
#endif
#if defined(USE_WINDOWS_SSPI) /* Consider moving some of the above GSS-API */
struct kerberos5data krb5; /* variables into the structure definition, */
#endif /* however, some of them are ftp specific. */
/* the two following *_inuse fields are only flags, not counters in any way.
If TRUE it means the channel is in use, and if FALSE it means the channel
is up for grabs by one. */