summaryrefslogtreecommitdiff
path: root/lib/curl_ntlm_core.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2019-04-14 01:55:18 +0100
committerSteve Holme <steve_holme@hotmail.com>2019-08-04 18:01:25 +0100
commit78e263676b6f75fed852db651887a099137e72cb (patch)
tree07f13c28f1caa9f5f5b532de4c8a8fbbd6b9e4d0 /lib/curl_ntlm_core.c
parent9a24f977110008324b9b6890a2aff6ab369723f5 (diff)
downloadcurl-78e263676b6f75fed852db651887a099137e72cb.tar.gz
md4: Move the GNU TLS Nettle MD4 implementation out of the NTLM code
Diffstat (limited to 'lib/curl_ntlm_core.c')
-rw-r--r--lib/curl_ntlm_core.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index ce6f22392..d840aed47 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -79,7 +79,7 @@
#elif defined(USE_GNUTLS_NETTLE)
# include <nettle/des.h>
-# include <nettle/md4.h>
+# include "curl_md4.h"
#elif defined(USE_GNUTLS)
@@ -578,10 +578,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
Curl_md4it(ntbuffer, pw, 2 * len);
#endif
#elif defined(USE_GNUTLS_NETTLE)
- struct md4_ctx MD4pw;
- md4_init(&MD4pw);
- md4_update(&MD4pw, (unsigned int)(2 * len), pw);
- md4_digest(&MD4pw, MD4_DIGEST_SIZE, ntbuffer);
+ Curl_md4it(ntbuffer, pw, 2 * len);
#elif defined(USE_GNUTLS)
gcry_md_hd_t MD4pw;
gcry_md_open(&MD4pw, GCRY_MD_MD4, 0);