mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 03:51:00 +00:00
Use helper macro to detect whether some ciphersuite uses CRTs
This commit is contained in:
parent
6bdfab2ccc
commit
2148993900
|
@ -5557,13 +5557,7 @@ int mbedtls_ssl_send_alert_message( mbedtls_ssl_context *ssl,
|
||||||
/*
|
/*
|
||||||
* Handshake functions
|
* Handshake functions
|
||||||
*/
|
*/
|
||||||
#if !defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED) && \
|
#if !defined(MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED)
|
||||||
!defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED) && \
|
|
||||||
!defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) && \
|
|
||||||
!defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) && \
|
|
||||||
!defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) && \
|
|
||||||
!defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED) && \
|
|
||||||
!defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
|
|
||||||
/* No certificate support -> dummy functions */
|
/* No certificate support -> dummy functions */
|
||||||
int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl )
|
int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
@ -5605,7 +5599,7 @@ int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl )
|
||||||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else /* MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED */
|
||||||
/* Some certificate support -> implement write and parse */
|
/* Some certificate support -> implement write and parse */
|
||||||
|
|
||||||
int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl )
|
int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl )
|
||||||
|
@ -6189,13 +6183,7 @@ exit:
|
||||||
ssl->state++;
|
ssl->state++;
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
#endif /* !MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
|
#endif /* MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED */
|
||||||
!MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
|
|
||||||
!MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
|
|
||||||
!MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
|
||||||
!MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
|
|
||||||
!MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
|
||||||
!MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
|
|
||||||
|
|
||||||
int mbedtls_ssl_write_change_cipher_spec( mbedtls_ssl_context *ssl )
|
int mbedtls_ssl_write_change_cipher_spec( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue