From 2542c21ba8984ce69c86c413a5c365e3a9d0dae1 Mon Sep 17 00:00:00 2001 From: John Durkop Date: Thu, 24 Sep 2020 21:06:35 -0700 Subject: [PATCH] Add MBEDTLS_PSA_CRYPTO_CONFIG to test program Since the recent changes required the addition of a new definition in mbedtls/config.h, we also need to update query_config.c to account for the new MBEDTLS_PSA_CRYPTO_CONFIG setting. Signed-off-by: John Durkop --- programs/test/query_config.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/programs/test/query_config.c b/programs/test/query_config.c index 887373434..c35502fa4 100644 --- a/programs/test/query_config.c +++ b/programs/test/query_config.c @@ -1592,6 +1592,14 @@ int query_config( const char *config ) } #endif /* MBEDTLS_USE_PSA_CRYPTO */ +#if defined(MBEDTLS_PSA_CRYPTO_CONFIG) + if( strcmp( "MBEDTLS_PSA_CRYPTO_CONFIG", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_CONFIG ); + return( 0 ); + } +#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */ + #if defined(MBEDTLS_VERSION_FEATURES) if( strcmp( "MBEDTLS_VERSION_FEATURES", config ) == 0 ) {