From dcd484a23859a3c7107f81ca9f54fed9d81eb2ca Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 7 Dec 2014 20:44:57 +0000 Subject: smb: Fixed Windows autoconf builds following commit eb88d778e7 As Windows based autoconf builds don't yet define USE_WIN32_CRYPTO either explicitly through --enable-win32-cypto or automatically on _WIN32 based platforms, subsequent builds broke with the following error message: "Can't compile NTLM support without a crypto library." --- lib/curl_ntlm_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/curl_ntlm_core.h') diff --git a/lib/curl_ntlm_core.h b/lib/curl_ntlm_core.h index 5e89ef056..a600f0a7f 100644 --- a/lib/curl_ntlm_core.h +++ b/lib/curl_ntlm_core.h @@ -26,6 +26,8 @@ #if defined(USE_NTLM) +#if !defined(USE_WINDOWS_SSPI) || defined(USE_WIN32_CRYPTO) + #ifdef USE_SSLEAY # if !defined(OPENSSL_VERSION_NUMBER) && \ !defined(HEADER_SSL_H) && !defined(HEADER_MD5_H) @@ -90,6 +92,8 @@ CURLcode Curl_ntlm_core_mk_lmv2_resp(unsigned char *ntlmv2hash, #endif /* USE_NTRESPONSES */ +#endif /* !USE_WINDOWS_SSPI || USE_WIN32_CRYPTO */ + #endif /* USE_NTLM */ #endif /* HEADER_CURL_NTLM_CORE_H */ -- cgit v1.2.3