mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 17:55:37 +00:00
Add #ifs arround ssl_ciphersuite_uses_XXX()
This commit is contained in:
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
|
||||||
|
|
Loading…
Reference in a new issue