summaryrefslogtreecommitdiff
path: root/lib/curl_ntlm_core.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2019-04-14 02:25:50 +0100
committerSteve Holme <steve_holme@hotmail.com>2019-08-04 18:01:26 +0100
commit24c298fb4db4c97d477f806a269f2ee524ceb814 (patch)
treea7cef93e948952e703397b06a0018dbc0e4c4599 /lib/curl_ntlm_core.c
parentc89365929bb5d4eda4d234b3d82e89192b74ca47 (diff)
downloadcurl-24c298fb4db4c97d477f806a269f2ee524ceb814.tar.gz
md4: Use the Curl_md4it() function for OpenSSL based NTLM
Diffstat (limited to 'lib/curl_ntlm_core.c')
-rw-r--r--lib/curl_ntlm_core.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index d1b508cb7..9ad0de8f7 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -55,11 +55,6 @@
#ifdef USE_OPENSSL
# include <openssl/des.h>
-# ifndef OPENSSL_NO_MD4
-# include <openssl/md4.h>
-# else
-# include "curl_md4.h"
-# endif
# include <openssl/md5.h>
# include <openssl/ssl.h>
# include <openssl/rand.h>
@@ -75,6 +70,7 @@
# define DESKEYARG(x) *x
# define DESKEY(x) &x
# endif
+# include "curl_md4.h"
#elif defined(USE_GNUTLS_NETTLE)
@@ -569,14 +565,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
{
/* Create NT hashed password. */
#ifdef USE_OPENSSL
-#if !defined(OPENSSL_NO_MD4)
- MD4_CTX MD4pw;
- MD4_Init(&MD4pw);
- MD4_Update(&MD4pw, pw, 2 * len);
- MD4_Final(ntbuffer, &MD4pw);
-#else
Curl_md4it(ntbuffer, pw, 2 * len);
-#endif
#elif defined(USE_GNUTLS_NETTLE)
Curl_md4it(ntbuffer, pw, 2 * len);
#elif defined(USE_GNUTLS)