]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
wolfssl: Fix build if wolfSSL was built in OpenSSL-compat mode
authorTobias Brunner <tobias@strongswan.org>
Wed, 4 Jun 2025 16:25:22 +0000 (18:25 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 4 Jun 2025 17:07:13 +0000 (19:07 +0200)
src/libstrongswan/plugins/wolfssl/wolfssl_crypter.c

index 085a912404c621e60715411079d4c5f1dffcc95a..0b32bf98256738194a957ce0218bc8fd420da917 100644 (file)
 
 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
 
 /**