From e2a77f21ea79063a1e9dd025447cf927283ff222 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 1 Feb 2024 20:50:24 +0100 Subject: [PATCH] Use PSA_INIT with test that requires PSA USE_PSA_INIT is for test code that doesn't use PSA functions when USE_PSA_CRYPTO is disabled. Signed-off-by: Gilles Peskine --- tests/suites/test_suite_pk.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function index 706bb7086e..7969d22b0e 100644 --- a/tests/suites/test_suite_pk.function +++ b/tests/suites/test_suite_pk.function @@ -1867,7 +1867,7 @@ void pk_get_psa_attributes_opaque(int o_type_arg, int o_bits_arg, psa_key_usage_t usage = usage_arg; psa_key_usage_t expected_usage = expected_usage_arg; - USE_PSA_INIT(); + PSA_INIT(); psa_set_key_type(&attributes, o_type); psa_set_key_bits(&attributes, bits); @@ -1899,6 +1899,6 @@ exit: mbedtls_pk_free(&pk); psa_destroy_key(key_id); psa_reset_key_attributes(&attributes); - USE_PSA_DONE(); + PSA_DONE(); } /* END_CASE */