aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs
diff options
context:
space:
mode:
authorIvan Pavlov <AuthorReflex@gmail.com>2021-10-15 08:11:10 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2021-10-21 00:17:36 +0200
commitbe3e260f92643a841f4f83b03cbb07b9a26cff66 (patch)
tree180e9cd513112edd3f7fa96baacb83d2412afb44 /package/libs
parent36019ed5893cd11c86a7dbedca1c6a055654a3c0 (diff)
downloadupstream-be3e260f92643a841f4f83b03cbb07b9a26cff66.tar.gz
upstream-be3e260f92643a841f4f83b03cbb07b9a26cff66.tar.bz2
upstream-be3e260f92643a841f4f83b03cbb07b9a26cff66.zip
wolfssl: fix compile when enable-devcrypto is set
fixing linking error when --enable-devcrypto=yes fixes: 7d92bb050961 wolfssl: update to 4.8.1-stable Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/wolfssl/patches/002-Update-macro-guard-on-SHA256-transform-call.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/libs/wolfssl/patches/002-Update-macro-guard-on-SHA256-transform-call.patch b/package/libs/wolfssl/patches/002-Update-macro-guard-on-SHA256-transform-call.patch
new file mode 100644
index 0000000000..f986b72798
--- /dev/null
+++ b/package/libs/wolfssl/patches/002-Update-macro-guard-on-SHA256-transform-call.patch
@@ -0,0 +1,22 @@
+From f447e4c1fa4c932c0286fa0331966756e243db81 Mon Sep 17 00:00:00 2001
+From: JacobBarthelmeh <jacob@wolfssl.com>
+Date: Fri, 17 Sep 2021 15:06:13 -0700
+Subject: [PATCH] update macro guard on SHA256 transform call
+
+---
+ src/ssl.c | 3 ++-
+ tests/api.c | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+--- a/src/ssl.c
++++ b/src/ssl.c
+@@ -17639,7 +17639,8 @@ size_t wolfSSL_get_client_random(const W
+
+ #if defined(OPENSSL_EXTRA)
+ #if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
+- (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2)))
++ (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) && \
++ !defined(WOLFSSL_DEVCRYPTO_HASH) && !defined(WOLFSSL_AFALG_HASH)
+ /* Apply SHA256 transformation to the data */
+ int wolfSSL_SHA256_Transform(WOLFSSL_SHA256_CTX* sha256,
+ const unsigned char* data)