mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-13 07:14:28 +02:00
Introduce getter function for disable_renego
This commit is contained in:
@@ -1243,6 +1243,16 @@ static inline int mbedtls_ssl_get_renego_status(
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user