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 <john.durkop@fermatsoftware.com>
This commit is contained in:
John Durkop 2020-09-24 21:06:35 -07:00
parent 2dfaf9ca23
commit 2542c21ba8

View File

@ -1592,6 +1592,14 @@ int query_config( const char *config )
} }
#endif /* MBEDTLS_USE_PSA_CRYPTO */ #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 defined(MBEDTLS_VERSION_FEATURES)
if( strcmp( "MBEDTLS_VERSION_FEATURES", config ) == 0 ) if( strcmp( "MBEDTLS_VERSION_FEATURES", config ) == 0 )
{ {