1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

md4: No need to include Curl_md4.h for each TLS library

This commit is contained in:
Steve Holme 2019-04-14 10:33:46 +01:00
parent 3d9685ee55
commit 72e5fd83b2
No known key found for this signature in database
GPG Key ID: 4059CB85CA7E8F19

View File

@ -70,16 +70,13 @@
# define DESKEYARG(x) *x # define DESKEYARG(x) *x
# define DESKEY(x) &x # define DESKEY(x) &x
# endif # endif
# include "curl_md4.h"
#elif defined(USE_GNUTLS_NETTLE) #elif defined(USE_GNUTLS_NETTLE)
# include <nettle/des.h> # include <nettle/des.h>
# include "curl_md4.h"
#elif defined(USE_GNUTLS) #elif defined(USE_GNUTLS)
# include "curl_md4.h"
# include <gcrypt.h> # include <gcrypt.h>
# define MD5_DIGEST_LENGTH 16 # define MD5_DIGEST_LENGTH 16
@ -88,7 +85,6 @@
# include <nss.h> # include <nss.h>
# include <pk11pub.h> # include <pk11pub.h>
# include <hasht.h> # include <hasht.h>
# include "curl_md4.h"
# define MD5_DIGEST_LENGTH MD5_LENGTH # define MD5_DIGEST_LENGTH MD5_LENGTH
#elif defined(USE_MBEDTLS) #elif defined(USE_MBEDTLS)
@ -100,14 +96,11 @@
# include <CommonCrypto/CommonCryptor.h> # include <CommonCrypto/CommonCryptor.h>
# include <CommonCrypto/CommonDigest.h> # include <CommonCrypto/CommonDigest.h>
# include "curl_md4.h"
#elif defined(USE_OS400CRYPTO) #elif defined(USE_OS400CRYPTO)
# include "cipher.mih" /* mih/cipher */ # include "cipher.mih" /* mih/cipher */
# include "curl_md4.h"
#elif defined(USE_WIN32_CRYPTO) #elif defined(USE_WIN32_CRYPTO)
# include <wincrypt.h> # include <wincrypt.h>
# include "curl_md4.h"
#else #else
# error "Can't compile NTLM support without a crypto library." # error "Can't compile NTLM support without a crypto library."
#endif #endif
@ -121,6 +114,7 @@
#include "warnless.h" #include "warnless.h"
#include "curl_endian.h" #include "curl_endian.h"
#include "curl_des.h" #include "curl_des.h"
#include "curl_md4.h"
/* The last 3 #include files should be in this order */ /* The last 3 #include files should be in this order */
#include "curl_printf.h" #include "curl_printf.h"
#include "curl_memory.h" #include "curl_memory.h"