From 3fddf250dc642627572e996ff21fca63cacb3fc0 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Tue, 4 Apr 2023 10:49:28 +0200 Subject: [PATCH] test: use proper macros for PSA init/done Signed-off-by: Valerio Setti --- tests/suites/test_suite_pkparse.function | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/suites/test_suite_pkparse.function b/tests/suites/test_suite_pkparse.function index 5e4f3b770..d7c2d0b59 100644 --- a/tests/suites/test_suite_pkparse.function +++ b/tests/suites/test_suite_pkparse.function @@ -101,10 +101,7 @@ void pk_parse_keyfile_ec(char *key_file, char *password, int result) mbedtls_pk_context ctx; int res; -#if defined(MBEDTLS_USE_PSA_CRYPTO) - PSA_INIT(); -#endif - + USE_PSA_INIT(); mbedtls_pk_init(&ctx); res = mbedtls_pk_parse_keyfile(&ctx, key_file, password, @@ -121,9 +118,7 @@ void pk_parse_keyfile_ec(char *key_file, char *password, int result) exit: mbedtls_pk_free(&ctx); -#if defined(MBEDTLS_USE_PSA_CRYPTO) - PSA_DONE(); -#endif + USE_PSA_DONE(); } /* END_CASE */