diff options
author | Hayden Roche <haydenroche5@gmail.com> | 2021-10-01 16:06:55 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-02 13:55:31 +0200 |
commit | e12dc2dd977c1e5f8d05e681d8d31f4fc124f6f9 (patch) | |
tree | 13fd124a333b03208069065f1e15625cb162bb46 /lib/md5.c | |
parent | 8bb5f4ddf3c7d023196ad70d6af265424edebfee (diff) | |
download | curl-e12dc2dd977c1e5f8d05e681d8d31f4fc124f6f9.tar.gz |
wolfssl: use for SHA256, MD4, MD5, and setting DES odd parity
Prior to this commit, OpenSSL could be used for all these functions, but
not wolfSSL. This commit makes it so wolfSSL will be used if USE_WOLFSSL
is defined.
Closes #7806
Diffstat (limited to 'lib/md5.c')
-rw-r--r-- | lib/md5.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -65,12 +65,19 @@ static void MD5_Final(unsigned char *digest, MD5_CTX *ctx) md5_digest(ctx, 16, digest); } -#elif defined(USE_OPENSSL) && !defined(USE_AMISSL) -/* When OpenSSL is available we use the MD5-function from OpenSSL */ +#elif (defined(USE_OPENSSL) && !defined(USE_AMISSL)) || defined(USE_WOLFSSL) + +#ifdef USE_WOLFSSL +#include <wolfssl/options.h> +#endif + +#if defined(USE_OPENSSL) || (defined(USE_WOLFSSL) && !defined(NO_MD5)) +/* When OpenSSL or wolfSSL is available, we use their MD5 functions. */ #include <openssl/md5.h> #include "curl_memory.h" /* The last #include file should be: */ #include "memdebug.h" +#endif #elif defined(USE_MBEDTLS) |