]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http_negotiate: Don't expose functions when HTTP is disabled
authorSteve Holme <steve_holme@hotmail.com>
Fri, 10 May 2019 12:08:04 +0000 (13:08 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 11 May 2019 16:23:27 +0000 (17:23 +0100)
lib/http_negotiate.h

index d4a7f09e095d871a722f44bc3f008d9f21a1e1c0..1197036b25cf7ca20c19d10539c36598c6d37784 100644 (file)
@@ -22,7 +22,7 @@
  *
  ***************************************************************************/
 
-#ifdef USE_SPNEGO
+#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO)
 
 /* this is for Negotiate header input */
 CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
@@ -33,6 +33,6 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy);
 
 void Curl_cleanup_negotiate(struct connectdata *conn);
 
-#endif /* USE_SPNEGO */
+#endif /* !CURL_DISABLE_HTTP && USE_SPNEGO */
 
 #endif /* HEADER_CURL_HTTP_NEGOTIATE_H */