]> granicus.if.org Git - curl/commitdiff
only enable NTLM if HTTP and NTLM is not disabled, and if NTLM is disabled
authorDaniel Stenberg <daniel@haxx.se>
Wed, 23 Nov 2005 11:51:31 +0000 (11:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Nov 2005 11:51:31 +0000 (11:51 +0000)
we define an empty macro for the ntlm cleanup function

lib/http_ntlm.h
lib/setup.h

index c4e669ba17e4b29e9403df3af9a1c3f685f844f7..a8de220a7a8c207b4df8b2f27ca9726548d75aa6 100644 (file)
@@ -39,8 +39,7 @@ CURLntlm Curl_input_ntlm(struct connectdata *conn, bool proxy, char *header);
 CURLcode Curl_output_ntlm(struct connectdata *conn, bool proxy);
 
 void Curl_ntlm_cleanup(struct connectdata *conn);
-#if (!defined(USE_SSLEAY) && !defined(USE_WINDOWS_SSPI)) || \
-    defined(CURL_DISABLE_HTTP)
+#ifndef USE_NTLM
 #define Curl_ntlm_cleanup(x)
 #endif
 
index ce0fc5075dd12b52c4990452745479d133abb182..bebe4e85ab7dc93b6838cb4684f7655340547aa3 100644 (file)
@@ -301,9 +301,11 @@ typedef int curl_socket_t;
 #define USE_SSL    /* Either OpenSSL || GnuTLS */
 #endif
 
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_NTLM)
 #if defined(USE_SSLEAY) || defined(USE_WINDOWS_SSPI)
 #define USE_NTLM
 #endif
+#endif
 
 #ifdef CURLDEBUG
 #define DEBUGF(x) x