From aa8afb0c50b9038c9a5f997514b63d55e337d715 Mon Sep 17 00:00:00 2001 From: aidan garske Date: Mon, 13 Jul 2026 16:44:23 -0700 Subject: [PATCH] Fix AES_BLOCK_SIZE undeclared when building against OPENSSL_COEXIST wolfSSL --- wolftpm/tpm2_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolftpm/tpm2_types.h b/wolftpm/tpm2_types.h index 1e225fe2..a30c00d7 100644 --- a/wolftpm/tpm2_types.h +++ b/wolftpm/tpm2_types.h @@ -218,6 +218,11 @@ typedef int64_t INT64; #include /* for wolfSSL_ERR_reason_error_string */ #endif + /* coexist-enabled wolfSSL only exposes WC_AES_BLOCK_SIZE; alias classic name */ + #if defined(WC_NO_COMPAT_AES_BLOCK_SIZE) && !defined(AES_BLOCK_SIZE) + #define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE + #endif + #if defined(DEBUG_WOLFTPM) && !defined(WOLFTPM_NO_STD_HEADERS) #include #endif