Function esp_idf_sys::mbedtls_ssl_conf_renegotiation

source ·
pub unsafe extern "C" fn mbedtls_ssl_conf_renegotiation(
    conf: *mut mbedtls_ssl_config,
    renegotiation: c_int,
)
Expand description

\brief Enable / Disable renegotiation support for connection when initiated by peer (Default: MBEDTLS_SSL_RENEGOTIATION_DISABLED)

\warning It is recommended to always disable renegotiation unless you know you need it and you know what you’re doing. In the past, there have been several issues associated with renegotiation or a poor understanding of its properties.

\note Server-side, enabling renegotiation also makes the server susceptible to a resource DoS by a malicious client.

\param conf SSL configuration \param renegotiation Enable or disable (MBEDTLS_SSL_RENEGOTIATION_ENABLED or MBEDTLS_SSL_RENEGOTIATION_DISABLED)