mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
wolfSSL: explicitly use compatibility layer
This change removes adding an include `$prefix/wolfssl` or similar to allow for openssl include aliasing. Include paths of `wolfssl/openssl/` are used to explicitly use wolfSSL includes. This fixes cmake builds as well as avoiding potentially using openSSL headers since include path order is not guaranteed. Closes #8864
This commit is contained in:
parent
84052154f7
commit
835a205370
4 changed files with 15 additions and 21 deletions
|
|
@ -39,7 +39,7 @@
|
|||
#ifdef USE_WOLFSSL
|
||||
#include <wolfssl/options.h>
|
||||
#ifdef NO_MD4
|
||||
#define OPENSSL_NO_MD4
|
||||
#define WOLFSSL_NO_MD4
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
@ -82,9 +82,11 @@ static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
|
|||
md4_digest(ctx, MD4_DIGEST_SIZE, result);
|
||||
}
|
||||
|
||||
#elif (defined(USE_OPENSSL) || defined(USE_WOLFSSL)) && \
|
||||
!defined(OPENSSL_NO_MD4)
|
||||
/* When OpenSSL or wolfSSL is available, we use their MD4 functions. */
|
||||
#elif defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4)
|
||||
#include <wolfssl/openssl/md4.h>
|
||||
|
||||
#elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4)
|
||||
#include <openssl/md4.h>
|
||||
|
||||
#elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue