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 */