change warning about 128bit keys to print

change was made because an actual warning may break CI or
customers that compile using warnings as errors.
This commit is contained in:
Nir Sonnenschein 2018-08-02 18:08:26 +03:00
parent eb73f7ab6f
commit 954f9879e9

View file

@ -52,7 +52,7 @@
#define MBEDTLS_CTR_DRBG_KEYSIZE 32 /**< The key size used by the cipher. */ #define MBEDTLS_CTR_DRBG_KEYSIZE 32 /**< The key size used by the cipher. */
#else #else
#if defined(MBEDTLS_CTR_DRBG_KEY_SIZE_128) #if defined(MBEDTLS_CTR_DRBG_KEY_SIZE_128)
#warning Warning: using smaller (128bit) key size for CTR DRBG may reduce the security of some operations. #pragma message("Warning: using smaller (128bit) key size for CTR DRBG may reduce the security of some operations.")
#define MBEDTLS_CTR_DRBG_KEYSIZE 16 /**< The key size used by the cipher. */ #define MBEDTLS_CTR_DRBG_KEYSIZE 16 /**< The key size used by the cipher. */
#else #else
#error for ctr DRBG either MBEDTLS_CTR_DRBG_KEY_SIZE_256 (default) or MBEDTLS_CTR_DRBG_KEY_SIZE_128 must be set #error for ctr DRBG either MBEDTLS_CTR_DRBG_KEY_SIZE_256 (default) or MBEDTLS_CTR_DRBG_KEY_SIZE_128 must be set