From 0f902b71a82f376eca8270c89b2c8f7dc73890a9 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 14 Jun 2019 09:47:45 +0100 Subject: [PATCH] Add new compile-time options to programs/ssl/query_config.c --- programs/ssl/query_config.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/programs/ssl/query_config.c b/programs/ssl/query_config.c index 574d4d7a5..6a1cb1bb7 100644 --- a/programs/ssl/query_config.c +++ b/programs/ssl/query_config.c @@ -2754,6 +2754,38 @@ int query_config( const char *config ) } #endif /* MBEDTLS_SSL_CONF_RNG */ +#if defined(MBEDTLS_SSL_CONF_MIN_MINOR_VER) + if( strcmp( "MBEDTLS_SSL_CONF_MIN_MINOR_VER", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CONF_MIN_MINOR_VER ); + return( 0 ); + } +#endif /* MBEDTLS_SSL_CONF_MIN_MINOR_VER */ + +#if defined(MBEDTLS_SSL_CONF_MAX_MINOR_VER) + if( strcmp( "MBEDTLS_SSL_CONF_MAX_MINOR_VER", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CONF_MAX_MINOR_VER ); + return( 0 ); + } +#endif /* MBEDTLS_SSL_CONF_MAX_MINOR_VER */ + +#if defined(MBEDTLS_SSL_CONF_MIN_MAJOR_VER) + if( strcmp( "MBEDTLS_SSL_CONF_MIN_MAJOR_VER", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CONF_MIN_MAJOR_VER ); + return( 0 ); + } +#endif /* MBEDTLS_SSL_CONF_MIN_MAJOR_VER */ + +#if defined(MBEDTLS_SSL_CONF_MAX_MAJOR_VER) + if( strcmp( "MBEDTLS_SSL_CONF_MAX_MAJOR_VER", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CONF_MAX_MAJOR_VER ); + return( 0 ); + } +#endif /* MBEDTLS_SSL_CONF_MAX_MAJOR_VER */ + #if defined(MBEDTLS_SSL_CONF_EXTENDED_MASTER_SECRET) if( strcmp( "MBEDTLS_SSL_CONF_EXTENDED_MASTER_SECRET", config ) == 0 ) {