mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add #ifs arround ssl_ciphersuite_uses_XXX()
This commit is contained in:
committed by
Paul Bakker
parent
7cfdcb8c7f
commit
280f95bd00
@ -1650,6 +1650,7 @@ pk_type_t ssl_get_ciphersuite_sig_pk_alg( const ssl_ciphersuite_t *info )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
|
||||||
int ssl_ciphersuite_uses_ec( const ssl_ciphersuite_t *info )
|
int ssl_ciphersuite_uses_ec( const ssl_ciphersuite_t *info )
|
||||||
{
|
{
|
||||||
switch( info->key_exchange )
|
switch( info->key_exchange )
|
||||||
@ -1665,7 +1666,9 @@ int ssl_ciphersuite_uses_ec( const ssl_ciphersuite_t *info )
|
|||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
||||||
int ssl_ciphersuite_uses_psk( const ssl_ciphersuite_t *info )
|
int ssl_ciphersuite_uses_psk( const ssl_ciphersuite_t *info )
|
||||||
{
|
{
|
||||||
switch( info->key_exchange )
|
switch( info->key_exchange )
|
||||||
@ -1680,5 +1683,6 @@ int ssl_ciphersuite_uses_psk( const ssl_ciphersuite_t *info )
|
|||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user