mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
ntlm: Support the NT response in the type-3 when OpenSSL doesn't include MD4
Just like we do for mbed TLS, use our local implementation of MD4 when OpenSSL doesn't support it. This allows a type-3 message to include the NT response.
This commit is contained in:
parent
7794cacf7e
commit
cd15acd0ec
4 changed files with 16 additions and 6 deletions
|
|
@ -38,9 +38,11 @@
|
|||
|
||||
#include "curl_setup.h"
|
||||
|
||||
/* 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 */
|
||||
/* The NSS, OS/400, and when not included, OpenSSL and mbed TLS crypto
|
||||
* libraries do not provide the MD4 hash algorithm, so we use this
|
||||
* implementation of it */
|
||||
#if defined(USE_NSS) || defined(USE_OS400CRYPTO) || \
|
||||
(defined(USE_OPENSSL) && defined(OPENSSL_NO_MD4)) || \
|
||||
(defined(USE_MBEDTLS) && !defined(MBEDTLS_MD4_C))
|
||||
|
||||
#include "curl_md4.h"
|
||||
|
|
@ -304,5 +306,7 @@ 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) ||
|
||||
(defined(USE_OPENSSL) && defined(OPENSSL_NO_MD4)) ||
|
||||
(defined(USE_MBEDTLS) && !defined(MBEDTLS_MD4_C)) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue