Adapt changes to work with both 3.6 and 4.0

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
This commit is contained in:
Elena Uziunaite
2024-09-25 14:51:35 +01:00
parent 4f80439a5f
commit 010c1f1ae0
+9 -1
View File
@@ -14,6 +14,7 @@ import config
from mbedtls_framework import config_common
from mbedtls_framework import test_case
from mbedtls_framework import test_data_generation
from mbedtls_framework import build_tree
def single_setting_case(setting: config_common.Setting, when_on: bool,
@@ -87,7 +88,14 @@ def dependencies_of_setting(cfg: config_common.Config,
if name.startswith('MBEDTLS_CIPHER_PADDING_'):
return 'MBEDTLS_CIPHER_C:MBEDTLS_CIPHER_MODE_CBC'
if name.startswith('MBEDTLS_PK_PARSE_EC_'):
return 'MBEDTLS_PK_C:PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY'
#temporary solution to determine correct dependency macros between 3.6 and 4.0
#see issue #51 in mbedtls-framework
if build_tree.is_mbedtls_3_6():
return 'MBEDTLS_PK_C:MBEDTLS_PK_HAVE_ECC_KEYS'
else:
return 'MBEDTLS_PK_C:PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY'
# For TLS settings, insist on having them once off and once on in
# a configuration where both client support and server support are
# enabled. The settings are also meaningful when only one side is