]> granicus.if.org Git - curl/commitdiff
sasl_gssapi: Added GSS-API based Kerberos V5 variables
authorSteve Holme <steve_holme@hotmail.com>
Wed, 3 Dec 2014 06:59:41 +0000 (06:59 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 3 Dec 2014 07:47:05 +0000 (07:47 +0000)
lib/urldata.h

index e433edd4c52d01cc045548d40c863270865c1789..075dca9b21e5ce6724960523978508b44416f96e 100644 (file)
@@ -430,6 +430,7 @@ typedef enum {
 /* Struct used for GSSAPI (Kerberos V5) authentication */
 #if defined(USE_KERBEROS5)
 struct kerberos5data {
+#if defined(USE_WINDOWS_SSPI)
   CredHandle *credentials;
   CtxtHandle *context;
   TCHAR *spn;
@@ -437,6 +438,10 @@ struct kerberos5data {
   SEC_WINNT_AUTH_IDENTITY *p_identity;
   size_t token_max;
   BYTE *output_token;
+#else
+  gss_ctx_id_t context;
+  gss_name_t spn;
+#endif
 };
 #endif