diff --git a/include/mbedtls/check_config.h b/include/mbedtls/check_config.h index 98a554df64..47b5de04dd 100644 --- a/include/mbedtls/check_config.h +++ b/include/mbedtls/check_config.h @@ -81,10 +81,6 @@ #error "MBEDTLS_DHM_C defined, but not all prerequisites" #endif -#if defined(MBEDTLS_CMAC_C) -#define MBEDTLS_CIPHER_MODE_CBC -#endif - #if defined(MBEDTLS_CMAC_C) && \ !defined(MBEDTLS_AES_C) && !defined(MBEDTLS_DES_C) #error "MBEDTLS_CMAC_C defined, but not all prerequisites" diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index a60b66bf41..2b0122c19d 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -2063,6 +2063,7 @@ component_test_when_no_ciphersuites_have_mac () { scripts/config.py unset MBEDTLS_ARC4_C scripts/config.py unset MBEDTLS_CIPHER_MODE_CBC scripts/config.py unset MBEDTLS_ECJPAKE_C + scripts/config.py unset MBEDTLS_CMAC_C make msg "test: !MBEDTLS_SSL_SOME_MODES_USE_MAC"