Skip to content

Commit 0cf60dc

Browse files
committed
Workaround regression in wolfSSL (missing include in asn.h)
1 parent 2648188 commit 0cf60dc

7 files changed

Lines changed: 21 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ list(
12001200
lib/wolfssl/wolfcrypt/src/ge_operations.c
12011201
lib/wolfssl/wolfcrypt/src/fe_448.c
12021202
lib/wolfssl/wolfcrypt/src/ge_448.c
1203-
lib/wolfssl/wolfcrypt/src/hash.c
1203+
src/wolfssl_hash_compat.c
12041204
lib/wolfssl/wolfcrypt/src/logging.c
12051205
lib/wolfssl/wolfcrypt/src/memory.c
12061206
lib/wolfssl/wolfcrypt/src/random.c

lib/wolfTPM

Submodule wolfTPM updated 1 file

src/wolfssl_hash_compat.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* wolfssl_hash_compat.c
2+
*
3+
* Temporary wolfBoot-side wrapper for wolfSSL hash.c until the upstream
4+
* header dependency regression is fixed.
5+
*/
6+
7+
#include <wolfssl/wolfcrypt/sha512.h>
8+
#include "../lib/wolfssl/wolfcrypt/src/hash.c"

test-app/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ if(BUILD_TEST_APPS)
207207
../lib/wolfssl/wolfcrypt/src/aes.c
208208
../lib/wolfssl/wolfcrypt/src/hmac.c
209209
../lib/wolfssl/wolfcrypt/src/pwdbased.c
210-
../lib/wolfssl/wolfcrypt/src/hash.c
210+
../src/wolfssl_hash_compat.c
211211
../lib/wolfssl/wolfcrypt/src/sha256.c
212212
../lib/wolfssl/wolfcrypt/src/sha512.c
213213
../lib/wolfssl/wolfcrypt/src/sha3.c

test-app/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ ifeq ($(WOLFCRYPT_SUPPORT),1)
134134
APP_OBJS+=syscalls.o
135135

136136
# Add wolfCrypt core implementation files
137-
APP_OBJS+=$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/hash.o
137+
APP_OBJS+=../src/wolfssl_hash_compat.o
138138
APP_OBJS+=$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/wc_port.o
139139
APP_OBJS+=$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/logging.o
140140
APP_OBJS+=$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/misc.o
@@ -223,7 +223,7 @@ ifeq ($(TZEN),1)
223223
APP_OBJS+=../src/wc_secure_calls.o
224224
WOLFCRYPT_APP_OBJS+=\
225225
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/memory.o \
226-
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/hash.o \
226+
../src/wolfssl_hash_compat.o \
227227
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/sha.o \
228228
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/sha256.o \
229229
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/sha512.o \
@@ -261,7 +261,7 @@ ifeq ($(TZEN),1)
261261
APP_OBJS+=./wcs/aes.o
262262
APP_OBJS+=./wcs/hmac.o
263263
APP_OBJS+=./wcs/pwdbased.o
264-
APP_OBJS+=./wcs/hash.o
264+
APP_OBJS+=./wcs/hash_compat.o
265265
APP_OBJS+=./wcs/sha256.o
266266
APP_OBJS+=./wcs/sha512.o
267267
APP_OBJS+=./wcs/sha3.o

test-app/wcs/hash_compat.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* hash_compat.c
2+
*
3+
* Temporary wrapper for PKCS11 test-app builds.
4+
*/
5+
6+
#include "../../src/wolfssl_hash_compat.c"

tools/tpm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ OBJS_REAL=\
5050
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/ecc.o \
5151
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/error.o \
5252
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/coding.o \
53-
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/hash.o \
53+
$(WOLFBOOTDIR)/src/wolfssl_hash_compat.o \
5454
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/logging.o \
5555
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/memory.o \
5656
$(WOLFBOOT_LIB_WOLFSSL)/wolfcrypt/src/random.o \

0 commit comments

Comments
 (0)