From 2d7c5cb57478b06881a5d9f1dd32793eb0e41238 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 14 Jan 2026 12:54:37 +0100 Subject: [PATCH] tests: pk_helpers: fix outer guard in functions implementation Signed-off-by: Valerio Setti --- tests/src/pk_helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/pk_helpers.c b/tests/src/pk_helpers.c index d6bc8a38d..f313919a9 100644 --- a/tests/src/pk_helpers.c +++ b/tests/src/pk_helpers.c @@ -17,7 +17,7 @@ /* Functions like mbedtls_pk_wrap_psa() are only available in tf-psa-crypto and * not in 3.6 LTS branch, so we need a guard for this. */ -#if !defined(MBEDTLS_VERSION_MAJOR) || MBEDTLS_VERSION_MAJOR >= 4 +#if TF_PSA_CRYPTO_VERSION_MAJOR >= 1 #if defined(MBEDTLS_PK_C) @@ -133,4 +133,4 @@ exit: #endif /* MBEDTLS_PK_C */ -#endif /* !MBEDTLS_VERSION_MAJOR || MBEDTLS_VERSION_MAJOR >= 4 */ +#endif /* !TF_PSA_CRYPTO_VERSION_MAJOR */