From 6855d1a4572f3bcffee6dddcfe248d035bd72068 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 17 Feb 2021 17:20:00 +0000 Subject: [PATCH] Add MBEDTLS_TEST_HOOKS to query_config.c Signed-off-by: Chris Jones --- programs/ssl/query_config.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/programs/ssl/query_config.c b/programs/ssl/query_config.c index 798c9178f..0a7eb1aec 100644 --- a/programs/ssl/query_config.c +++ b/programs/ssl/query_config.c @@ -1475,6 +1475,14 @@ int query_config( const char *config ) } #endif /* MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT */ +#if defined(MBEDTLS_TEST_HOOKS) + if( strcmp( "MBEDTLS_TEST_HOOKS", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_TEST_HOOKS ); + return( 0 ); + } +#endif /* MBEDTLS_TEST_HOOKS */ + #if defined(MBEDTLS_THREADING_ALT) if( strcmp( "MBEDTLS_THREADING_ALT", config ) == 0 ) {