mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
be3e260f92
fixing linking error when --enable-devcrypto=yes
fixes: 7d92bb0509
wolfssl: update to 4.8.1-stable
Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
23 lines
908 B
Diff
23 lines
908 B
Diff
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)
|