]> granicus.if.org Git - curl/commitdiff
http_negotiate: Fixed missing check for USE_SPNEGO
authorSteve Holme <steve_holme@hotmail.com>
Sun, 26 Oct 2014 16:24:07 +0000 (16:24 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 26 Oct 2014 16:28:02 +0000 (16:28 +0000)
lib/http_negotiate.c

index c8bfa29bf12a54bd930f8e4e587e4c70b639dc88..0d0cc550f4359e48bf23914cb3012eb3719248a0 100644 (file)
 #include "curl_setup.h"
 
 #ifdef HAVE_GSSAPI
+
+#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO)
+
 #ifdef HAVE_OLD_GSSMIT
 #define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
 #define NCOMPAT 1
 #endif
 
-#ifndef CURL_DISABLE_HTTP
-
 #include "urldata.h"
 #include "sendf.h"
 #include "curl_gssapi.h"
@@ -238,6 +239,6 @@ void Curl_cleanup_negotiate(struct SessionHandle *data)
   cleanup(&data->state.proxyneg);
 }
 
+#endif /* !CURL_DISABLE_HTTP && USE_SPNEGO */
 
-#endif
-#endif
+#endif /* HAVE_GSSAPI */