wolfssl: Fix build if wolfSSL was built in OpenSSL-compat mode

This commit is contained in:
Tobias Brunner 2025-06-04 18:25:22 +02:00
parent 3d426cbfee
commit 71f1091129

View File

@ -32,6 +32,13 @@
typedef struct private_wolfssl_crypter_t private_wolfssl_crypter_t; 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 #define CTR_SALT_LEN 4
/** /**