Skip to content

Commit

Permalink
Better definition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Fekete committed Nov 26, 2024
1 parent 68a05ec commit f6de68e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/wolfengine/we_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#endif

#include <openssl/engine.h>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/ec.h>
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit f6de68e

Please sign in to comment.