summaryrefslogtreecommitdiff
path: root/lib/curl_setup.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-04-21 22:33:17 +0200
committerDan Fandrich <dan@coneharvesters.com>2017-04-21 22:42:14 +0200
commit5f830eaba0b4c00dabf095cede048ddcea736d9d (patch)
treee51ffa0f24ef1a7041f4aff41a3c8fe0baf192bd /lib/curl_setup.h
parent49eee28822f8eef78b736097711fb798daf3a12b (diff)
downloadcurl-5f830eaba0b4c00dabf095cede048ddcea736d9d.tar.gz
mbedtls: enable NTLM (& SMB) even if MD4 support is unavailable
In that case, use libcurl's internal MD4 routine. This fixes tests 1013 and 1014 which were failing due to configure assuming NTLM and SMB were always available whenever mbed TLS was in use (which is now true).
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r--lib/curl_setup.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index 9d99f1394..dda1c751e 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -623,14 +623,14 @@ int netware_init(void);
#if !defined(CURL_DISABLE_NTLM) && !defined(CURL_DISABLE_CRYPTO_AUTH)
#if defined(USE_OPENSSL) || defined(USE_WINDOWS_SSPI) || \
defined(USE_GNUTLS) || defined(USE_NSS) || defined(USE_DARWINSSL) || \
- defined(USE_OS400CRYPTO) || defined(USE_WIN32_CRYPTO)
+ defined(USE_OS400CRYPTO) || defined(USE_WIN32_CRYPTO) || \
+ defined(USE_MBEDTLS)
#define USE_NTLM
-#elif defined(USE_MBEDTLS)
+# if defined(USE_MBEDTLS)
+/* Get definition of MBEDTLS_MD4_C */
# include <mbedtls/md4.h>
-# if defined(MBEDTLS_MD4_C)
-#define USE_NTLM
# endif
#endif