diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2017-04-21 22:33:17 +0200 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2017-04-21 22:42:14 +0200 |
commit | 5f830eaba0b4c00dabf095cede048ddcea736d9d (patch) | |
tree | e51ffa0f24ef1a7041f4aff41a3c8fe0baf192bd /lib/md4.c | |
parent | 49eee28822f8eef78b736097711fb798daf3a12b (diff) | |
download | curl-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/md4.c')
-rw-r--r-- | lib/md4.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -37,9 +37,10 @@ #include "curl_setup.h" -/* NSS and OS/400 crypto library do not provide the MD4 hash algorithm, so - * that we have a local implementation of it */ -#if defined(USE_NSS) || defined(USE_OS400CRYPTO) +/* The NSS, OS/400 and sometimes mbed TLS crypto libraries do not provide the + * MD4 hash algorithm, so we have a local implementation of it */ +#if defined(USE_NSS) || defined(USE_OS400CRYPTO) || \ + (defined(USE_MBEDTLS) && !defined(MBEDTLS_MD4_C)) #include "curl_md4.h" #include "warnless.h" @@ -302,4 +303,5 @@ void Curl_md4it(unsigned char *output, const unsigned char *input, size_t len) MD4_Update(&ctx, input, curlx_uztoui(len)); MD4_Final(output, &ctx); } -#endif /* defined(USE_NSS) || defined(USE_OS400CRYPTO) */ +#endif /* defined(USE_NSS) || defined(USE_OS400CRYPTO) || + (defined(USE_MBEDTLS) && !defined(MBEDTLS_MD4_C)) */ |