From c88f1c4d54f043618a650a8bf95ef3ec8d8a7833 Mon Sep 17 00:00:00 2001 From: night1rider Date: Thu, 12 Sep 2024 09:54:03 -0600 Subject: [PATCH] Fixing Redefine Errors/Warnings --- wolfssl/wolfcrypt/settings.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index a1e4b90040..210cb9ffb5 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -2035,8 +2035,12 @@ extern void uITRON4_free(void *p) ; #define WOLFSSL_NOSHA3_224 #define WOLFSSL_NOSHA3_256 #define WOLFSSL_NOSHA3_512 - #define WOLFSSL_NO_SHAKE128 - #define WOLFSSL_NO_SHAKE256 + #ifndef WOLFSSL_NO_SHAKE128 + #define WOLFSSL_NO_SHAKE128 + #endif + #ifndef WOLFSSL_NO_SHAKE256 + #define WOLFSSL_NO_SHAKE256 + #endif #endif #ifdef WOLFSSL_AFALG_XILINX_AES #undef WOLFSSL_AES_DIRECT