From bd2b8e4e6ac819608764da0c7bc41f146a625ea9 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Fri, 20 Jan 2023 11:39:00 +0000 Subject: [PATCH] Fix test guards Signed-off-by: Dave Rodgman --- tests/suites/test_suite_x509write.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_x509write.function b/tests/suites/test_suite_x509write.function index 84da1438ec21..2896a5298cd3 100644 --- a/tests/suites/test_suite_x509write.function +++ b/tests/suites/test_suite_x509write.function @@ -294,7 +294,7 @@ void x509_crt_check(char *subject_key_file, char *subject_pwd, TEST_ASSERT(mbedtls_pk_parse_keyfile(&issuer_key, issuer_key_file, issuer_pwd) == 0); -#if defined(MBEDTLS_RSA_C) +#if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_PK_RSA_ALT_SUPPORT) /* For RSA PK contexts, create a copy as an alternative RSA context. */ if (rsa_alt == 1 && mbedtls_pk_get_type(&issuer_key) == MBEDTLS_PK_RSA) { TEST_ASSERT(mbedtls_pk_setup_rsa_alt(&issuer_key_alt,