From f6de68e007ae70478b77b4ab0b35bd9334776ec8 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Tue, 26 Nov 2024 15:09:13 -0500 Subject: [PATCH] Better definition fix --- include/wolfengine/we_internal.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/wolfengine/we_internal.h b/include/wolfengine/we_internal.h index 24d7201..342c437 100644 --- a/include/wolfengine/we_internal.h +++ b/include/wolfengine/we_internal.h @@ -52,7 +52,6 @@ #endif #include -#include #include #include #if OPENSSL_VERSION_NUMBER >= 0x10100000L @@ -138,6 +137,14 @@ WOLFENGINE_LOCAL void *we_memdup(const void *data, size_t siz); #define WE_PRINTF_FUNC(s, v) #endif +#ifndef AES_BLOCK_SIZE + #ifdef WC_NO_COMPAT_AES_BLOCK_SIZE + #define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE + #else + #error AES_BLOCK_SIZE not defined when it should be + #endif +#endif + /* * Global random */