mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-24 01:41:35 +03:00
Merge pull request #8073 from daverodgman/empty-enum-fix
Fix compile fail for empty enum in cipher_wrap
This commit is contained in:
3
ChangeLog.d/fix-empty-enum.txt
Normal file
3
ChangeLog.d/fix-empty-enum.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Bugfix
|
||||||
|
* Fix compile failure due to empty enum in cipher_wrap.c, when building
|
||||||
|
with a very minimal configuration. Fixes #7625.
|
@ -120,8 +120,10 @@ enum mbedtls_cipher_base_index {
|
|||||||
MBEDTLS_CIPHER_BASE_INDEX_NULL_BASE,
|
MBEDTLS_CIPHER_BASE_INDEX_NULL_BASE,
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_CIPHER_MODE_XTS) && defined(MBEDTLS_AES_C)
|
#if defined(MBEDTLS_CIPHER_MODE_XTS) && defined(MBEDTLS_AES_C)
|
||||||
MBEDTLS_CIPHER_BASE_INDEX_XTS_AES
|
MBEDTLS_CIPHER_BASE_INDEX_XTS_AES,
|
||||||
#endif
|
#endif
|
||||||
|
/* Prevent compile failure due to empty enum */
|
||||||
|
MBEDTLS_CIPHER_BASE_PREVENT_EMPTY_ENUM
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(MBEDTLS_GCM_C)
|
#if defined(MBEDTLS_GCM_C)
|
||||||
|
Reference in New Issue
Block a user