mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
md4: fix compilation with OpenSSL 1.x with md4 disabled
If OpenSSL 1.x is used, and it is configured with md4 disabled, OPENSSL_NO_MD4 is defined in opensslconf.h, but this header was not included before checking for this define. Later in md4.c, openssl/md4.h is included, and it includes that header indirectly, leading to inconsistency within md4.c. Since the md4.h branch was taken, wincrypt.h (or others) is not included, and later below the USE_WIN32_CRYPTO branch is taken, but the types are not defined. Closes #14218
This commit is contained in:
parent
8e13837e0e
commit
1f877b0fba
@ -37,6 +37,9 @@
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x30000000L) && !defined(USE_AMISSL)
|
||||
/* OpenSSL 3.0.0 marks the MD4 functions as deprecated */
|
||||
#define OPENSSL_NO_MD4
|
||||
#else
|
||||
/* Cover also OPENSSL_NO_MD4 configured in openssl */
|
||||
#include <openssl/opensslconf.h>
|
||||
#endif
|
||||
#endif /* USE_OPENSSL */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user