summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2019-04-14 10:33:46 +0100
committerSteve Holme <steve_holme@hotmail.com>2019-08-04 18:01:29 +0100
commit72e5fd83b2c00f85dc7218d83fee1d4efffb9b51 (patch)
treecef061ce3a7233c1ec6c1c8d8dc4162463f785bd
parent3d9685ee555ec1131a6fd72f00dd61cc104776d9 (diff)
downloadcurl-72e5fd83b2c00f85dc7218d83fee1d4efffb9b51.tar.gz
md4: No need to include Curl_md4.h for each TLS library
-rw-r--r--lib/curl_ntlm_core.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index d9594fa8d..b2a6afc0c 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -70,16 +70,13 @@
# define DESKEYARG(x) *x
# define DESKEY(x) &x
# endif
-# include "curl_md4.h"
#elif defined(USE_GNUTLS_NETTLE)
# include <nettle/des.h>
-# include "curl_md4.h"
#elif defined(USE_GNUTLS)
-# include "curl_md4.h"
# include <gcrypt.h>
# define MD5_DIGEST_LENGTH 16
@@ -88,7 +85,6 @@
# include <nss.h>
# include <pk11pub.h>
# include <hasht.h>
-# include "curl_md4.h"
# define MD5_DIGEST_LENGTH MD5_LENGTH
#elif defined(USE_MBEDTLS)
@@ -100,14 +96,11 @@
# include <CommonCrypto/CommonCryptor.h>
# include <CommonCrypto/CommonDigest.h>
-# include "curl_md4.h"
#elif defined(USE_OS400CRYPTO)
# include "cipher.mih" /* mih/cipher */
-# include "curl_md4.h"
#elif defined(USE_WIN32_CRYPTO)
# include <wincrypt.h>
-# include "curl_md4.h"
#else
# error "Can't compile NTLM support without a crypto library."
#endif
@@ -121,6 +114,7 @@
#include "warnless.h"
#include "curl_endian.h"
#include "curl_des.h"
+#include "curl_md4.h"
/* The last 3 #include files should be in this order */
#include "curl_printf.h"
#include "curl_memory.h"