Skip to content

Commit f6de68e

Browse files
author
Andras Fekete
committed
Better definition fix
1 parent 68a05ec commit f6de68e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

include/wolfengine/we_internal.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#endif
5353

5454
#include <openssl/engine.h>
55-
#include <openssl/aes.h>
5655
#include <openssl/evp.h>
5756
#include <openssl/ec.h>
5857
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
@@ -138,6 +137,14 @@ WOLFENGINE_LOCAL void *we_memdup(const void *data, size_t siz);
138137
#define WE_PRINTF_FUNC(s, v)
139138
#endif
140139

140+
#ifndef AES_BLOCK_SIZE
141+
#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE
142+
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
143+
#else
144+
#error AES_BLOCK_SIZE not defined when it should be
145+
#endif
146+
#endif
147+
141148
/*
142149
* Global random
143150
*/

0 commit comments

Comments
 (0)