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/sha256.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/sha256.c')
-rw-r--r-- | lib/sha256.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sha256.c b/lib/sha256.c index a2e7e4131..270be1c67 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -29,6 +29,13 @@ #include "curl_sha256.h" #include "curl_hmac.h" +#ifdef USE_WOLFSSL +#include <wolfssl/options.h> +#ifndef NO_SHA256 +#define USE_OPENSSL_SHA256 +#endif +#endif + #if defined(USE_OPENSSL) #include <openssl/opensslv.h> |