diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-04-06 12:46:53 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-04-06 13:01:14 +0100 |
commit | 19a514237d5ebc8ad800883b9a12fc56de1c01c6 (patch) | |
tree | 20a743f09b65040dece311e7f107bf987ad88201 /lib/curl_sasl_sspi.c | |
parent | 607883f13cedae4badfb4124a85cae2635f14c2c (diff) |
sasl: Corrected pre-processor inclusion of SSPI based DIGEST-MD5 code
When CURL_DISABLE_CRYPTO_AUTH is defined the DIGEST-MD5 code should not
be included, regardless of whether USE__WINDOWS_SSPI is defined or not.
This is indicated by the definition of USE_HTTP_NEGOTIATE and USE_NTLM
in curl_setup.h.
Diffstat (limited to 'lib/curl_sasl_sspi.c')
-rw-r--r-- | lib/curl_sasl_sspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_sasl_sspi.c b/lib/curl_sasl_sspi.c index e9eaf3230..9b67498e9 100644 --- a/lib/curl_sasl_sspi.c +++ b/lib/curl_sasl_sspi.c @@ -25,7 +25,7 @@ #include "curl_setup.h" -#if defined(USE_WINDOWS_SSPI) +#if defined(USE_WINDOWS_SSPI) && !defined(CURL_DISABLE_CRYPTO_AUTH) #include <curl/curl.h> @@ -189,4 +189,4 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data, return result; } -#endif /* USE_WINDOWS_SSPI */ +#endif /* USE_WINDOWS_SSPI && !CURL_DISABLE_CRYPTO_AUTH */ |