From 75673abef52e5f8d692dd7ec7b27d266bcdad313 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Wed, 15 Jun 2022 17:39:01 +0200 Subject: [PATCH] Only build ecjpake_do_round() is PSA_WANT_ALG_JPAKE is defined Signed-off-by: Neil Armstrong --- tests/suites/test_suite_psa_crypto.function | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index 67b0dd2ad..29a007792 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -705,6 +705,7 @@ exit: return( test_ok ); } +#if defined(PSA_WANT_ALG_JPAKE) static int ecjpake_do_round( psa_algorithm_t alg, unsigned int primitive, psa_pake_operation_t *server, psa_pake_operation_t *client, @@ -994,6 +995,7 @@ exit: mbedtls_free( buffer1 ); return( ret ); } +#endif /* PSA_WANT_ALG_JPAKE */ /* END_HEADER */