From b22e64045b81f677aea3ca115df66e1a5fd2b44d Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 7 Dec 2020 09:30:54 -0500 Subject: [PATCH] Update generated files Signed-off-by: Andrzej Kurek --- library/version_features.c | 12 ++++++++++++ programs/ssl/query_config.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/library/version_features.c b/library/version_features.c index ea072ac25..26bade403 100644 --- a/library/version_features.c +++ b/library/version_features.c @@ -33,6 +33,9 @@ static const char *features[] = { #if defined(MBEDTLS_VERSION_FEATURES) +#if defined(MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION) + "MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION", +#endif /* MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION */ #if defined(MBEDTLS_HAVE_ASM) "MBEDTLS_HAVE_ASM", #endif /* MBEDTLS_HAVE_ASM */ @@ -489,6 +492,15 @@ static const char *features[] = { #if defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE) "MBEDTLS_SSL_KEEP_PEER_CERTIFICATE", #endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */ +#if defined(MBEDTLS_SSL_FREE_SERVER_CERTIFICATE) + "MBEDTLS_SSL_FREE_SERVER_CERTIFICATE", +#endif /* MBEDTLS_SSL_FREE_SERVER_CERTIFICATE */ +#if defined(MBEDTLS_IMMEDIATE_TRANSMISSION) + "MBEDTLS_IMMEDIATE_TRANSMISSION", +#endif /* MBEDTLS_IMMEDIATE_TRANSMISSION */ +#if defined(MBEDTLS_EARLY_KEY_COMPUTATION) + "MBEDTLS_EARLY_KEY_COMPUTATION", +#endif /* MBEDTLS_EARLY_KEY_COMPUTATION */ #if defined(MBEDTLS_SSL_HW_RECORD_ACCEL) "MBEDTLS_SSL_HW_RECORD_ACCEL", #endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */ diff --git a/programs/ssl/query_config.c b/programs/ssl/query_config.c index 0711703fe..baf513b33 100644 --- a/programs/ssl/query_config.c +++ b/programs/ssl/query_config.c @@ -130,6 +130,14 @@ int query_config( const char *config ) { +#if defined(MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION) + if( strcmp( "MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION ); + return( 0 ); + } +#endif /* MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION */ + #if defined(MBEDTLS_HAVE_ASM) if( strcmp( "MBEDTLS_HAVE_ASM", config ) == 0 ) { @@ -1346,6 +1354,30 @@ int query_config( const char *config ) } #endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */ +#if defined(MBEDTLS_SSL_FREE_SERVER_CERTIFICATE) + if( strcmp( "MBEDTLS_SSL_FREE_SERVER_CERTIFICATE", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_FREE_SERVER_CERTIFICATE ); + return( 0 ); + } +#endif /* MBEDTLS_SSL_FREE_SERVER_CERTIFICATE */ + +#if defined(MBEDTLS_IMMEDIATE_TRANSMISSION) + if( strcmp( "MBEDTLS_IMMEDIATE_TRANSMISSION", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_IMMEDIATE_TRANSMISSION ); + return( 0 ); + } +#endif /* MBEDTLS_IMMEDIATE_TRANSMISSION */ + +#if defined(MBEDTLS_EARLY_KEY_COMPUTATION) + if( strcmp( "MBEDTLS_EARLY_KEY_COMPUTATION", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_EARLY_KEY_COMPUTATION ); + return( 0 ); + } +#endif /* MBEDTLS_EARLY_KEY_COMPUTATION */ + #if defined(MBEDTLS_SSL_HW_RECORD_ACCEL) if( strcmp( "MBEDTLS_SSL_HW_RECORD_ACCEL", config ) == 0 ) {