From: Tobias Brunner Date: Wed, 4 Jun 2025 16:25:22 +0000 (+0200) Subject: wolfssl: Fix build if wolfSSL was built in OpenSSL-compat mode X-Git-Tag: 6.0.2dr1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71f10911297447c7ab68801b80a79dad8174aa17;p=thirdparty%2Fstrongswan.git wolfssl: Fix build if wolfSSL was built in OpenSSL-compat mode --- diff --git a/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c b/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c index 085a912404..0b32bf9825 100644 --- a/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c +++ b/src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c @@ -32,6 +32,13 @@ typedef struct private_wolfssl_crypter_t private_wolfssl_crypter_t; +/* if wolfSSL is built in OpenSSL-compat mode, these are not defined as enums */ +#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE +#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE +#define CAMELLIA_BLOCK_SIZE WC_CAMELLIA_BLOCK_SIZE +#define DES_BLOCK_SIZE WC_DES_BLOCK_SIZE +#endif + #define CTR_SALT_LEN 4 /**