From 520dc643699e563d63ef23a29ed5beaffda23ff8 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 9 Nov 2014 12:46:00 +0000 Subject: build: Fixed no NTLM support for email when CURL_DISABLE_HTTP is defined USE_NTLM would only be defined if: HTTP support was enabled, NTLM and cryptography weren't disabled, and either a supporting cryptography library or Windows SSPI was being compiled against. This means it was not possible to build libcurl without HTTP support and use NTLM for other protocols such as IMAP, POP3 and SMTP. Rather than introduce a new SASL pre-processor definition, removed the HTTP prerequisite just like USE_SPNEGO and USE_KRB5. Note: Winbind support still needs to be dependent on CURL_DISABLE_HTTP as it is only available to HTTP at present. This bug dates back to August 2011 when I started to add support for NTLM to SMTP. --- lib/curl_ntlm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/curl_ntlm.c') diff --git a/lib/curl_ntlm.c b/lib/curl_ntlm.c index 4c30e0ad0..06cf0ed91 100644 --- a/lib/curl_ntlm.c +++ b/lib/curl_ntlm.c @@ -22,7 +22,7 @@ #include "curl_setup.h" -#ifdef USE_NTLM +#if !defined(CURL_DISABLE_HTTP) && defined(USE_NTLM) /* * NTLM details: @@ -237,4 +237,4 @@ void Curl_http_ntlm_cleanup(struct connectdata *conn) #endif } -#endif /* USE_NTLM */ +#endif /* !CURL_DISABLE_HTTP && USE_NTLM */ -- cgit v1.2.3