summaryrefslogtreecommitdiff
path: root/lib/sha256.c
diff options
context:
space:
mode:
authorHayden Roche <haydenroche5@gmail.com>2021-10-01 16:06:55 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-10-02 13:55:31 +0200
commite12dc2dd977c1e5f8d05e681d8d31f4fc124f6f9 (patch)
tree13fd124a333b03208069065f1e15625cb162bb46 /lib/sha256.c
parent8bb5f4ddf3c7d023196ad70d6af265424edebfee (diff)
downloadcurl-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.c7
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>