mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-02 02:30:27 +00:00
Introduce getter function for disable_renego
This commit is contained in:
parent
14e2a8ac06
commit
b3bb31bd90
|
@ -1243,6 +1243,16 @@ static inline int mbedtls_ssl_get_renego_status(
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int mbedtls_ssl_conf_get_disable_renego(
|
||||||
|
const mbedtls_ssl_config *conf )
|
||||||
|
{
|
||||||
|
#if defined(MBEDTLS_SSL_RENEGOTIATION)
|
||||||
|
return( conf->disable_renegotiation );
|
||||||
|
#else
|
||||||
|
(void) conf;
|
||||||
|
return( MBEDTLS_SSL_RENEGOTIATION_DISABLED );
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Getter functions for fields in mbedtls_ssl_config which may
|
* Getter functions for fields in mbedtls_ssl_config which may
|
||||||
|
|
|
@ -10855,10 +10855,8 @@ int mbedtls_ssl_context_save( mbedtls_ssl_context *ssl,
|
||||||
/* ... with an AEAD ciphersuite. */
|
/* ... with an AEAD ciphersuite. */
|
||||||
mbedtls_ssl_transform_uses_aead( ssl->transform ) != 1 ||
|
mbedtls_ssl_transform_uses_aead( ssl->transform ) != 1 ||
|
||||||
/* Renegotation is disabled. */
|
/* Renegotation is disabled. */
|
||||||
#if defined(MBEDTLS_SSL_RENEGOTIATION)
|
mbedtls_ssl_conf_get_disable_renego( ssl->conf )
|
||||||
ssl->conf->disable_renegotiation != MBEDTLS_SSL_RENEGOTIATION_DISABLED ||
|
!= MBEDTLS_SSL_RENEGOTIATION_DISABLED )
|
||||||
#endif
|
|
||||||
0 )
|
|
||||||
{
|
{
|
||||||
return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
||||||
}
|
}
|
||||||
|
@ -11081,10 +11079,8 @@ static int ssl_context_load( mbedtls_ssl_context *ssl,
|
||||||
MBEDTLS_SSL_MINOR_VERSION_3 ||
|
MBEDTLS_SSL_MINOR_VERSION_3 ||
|
||||||
mbedtls_ssl_conf_get_min_minor_ver( ssl->conf ) >
|
mbedtls_ssl_conf_get_min_minor_ver( ssl->conf ) >
|
||||||
MBEDTLS_SSL_MINOR_VERSION_3 ||
|
MBEDTLS_SSL_MINOR_VERSION_3 ||
|
||||||
#if defined(MBEDTLS_SSL_RENEGOTIATION)
|
mbedtls_ssl_conf_get_disable_renego( ssl->conf )
|
||||||
ssl->conf->disable_renegotiation != MBEDTLS_SSL_RENEGOTIATION_DISABLED ||
|
!= MBEDTLS_SSL_RENEGOTIATION_DISABLED )
|
||||||
#endif
|
|
||||||
0 )
|
|
||||||
{
|
{
|
||||||
return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue