From 678038a0771ad1d51f1477b92814898cf2f568ff Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 1 May 2024 14:19:32 -0500 Subject: [PATCH] wolfssl/openssl/sha3.h: use sizeof(wc_Sha3), not sizeof(struct wc_Sha3), for compatibility with afalg_hash.h and other ports that don't define a struct wc_Sha3. --- wolfssl/openssl/sha3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/openssl/sha3.h b/wolfssl/openssl/sha3.h index 9f6b0f997..4407bca61 100644 --- a/wolfssl/openssl/sha3.h +++ b/wolfssl/openssl/sha3.h @@ -43,7 +43,7 @@ struct WOLFSSL_SHA3_CTX { /* big enough to hold wolfcrypt Sha3, but check on init */ #ifdef WOLFSSL_SHA3 - ALIGN16 void* holder[sizeof(struct wc_Sha3)]; + ALIGN16 void* holder[sizeof(wc_Sha3)]; #else ALIGN16 void* holder[(424 + WC_ASYNC_DEV_SIZE) / sizeof(void*)]; #endif