mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Allow configuring MBEDTLS_TLS_EXT_CID at compile time
The numerical identifier of the CID extension hasn't been settled yet and different implementations use values from different drafts. Allow configuring the value at compile time. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user