Merge pull request #4427 from gilles-peskine-arm/tls_ext_cid-config-2.x

Backport 2.x: Allow configuring MBEDTLS_TLS_EXT_CID at compile time
This commit is contained in:
Manuel Pégourié-Gonnard
2021-08-13 10:50:02 +02:00
committed by GitHub
4 changed files with 29 additions and 1 deletions

View File

@@ -2762,6 +2762,14 @@ int query_config( const char *config )
}
#endif /* MBEDTLS_SSL_COOKIE_TIMEOUT */
#if defined(MBEDTLS_TLS_EXT_CID)
if( strcmp( "MBEDTLS_TLS_EXT_CID", config ) == 0 )
{
MACRO_EXPANSION_TO_STR( MBEDTLS_TLS_EXT_CID );
return( 0 );
}
#endif /* MBEDTLS_TLS_EXT_CID */
#if defined(MBEDTLS_X509_MAX_INTERMEDIATE_CA)
if( strcmp( "MBEDTLS_X509_MAX_INTERMEDIATE_CA", config ) == 0 )
{