Skip to content

Commit e2e94a0

Browse files
committed
Merge branch 'bugfix/enable_mbedtls_renegotiation' into 'master'
esp-tls: enable TLS renegotiation using explicit API call See merge request espressif/esp-idf!9456
2 parents 7bcf7f6 + 52469c8 commit e2e94a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/esp-tls/esp_tls_mbedtls.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ esp_err_t set_client_config(const char *hostname, size_t hostlen, esp_tls_cfg_t
410410
return ESP_ERR_MBEDTLS_SSL_CONFIG_DEFAULTS_FAILED;
411411
}
412412

413+
#ifdef CONFIG_MBEDTLS_SSL_RENEGOTIATION
414+
mbedtls_ssl_conf_renegotiation(&tls->conf, MBEDTLS_SSL_RENEGOTIATION_ENABLED);
415+
#endif
413416

414417
if (cfg->alpn_protos) {
415418
#ifdef CONFIG_MBEDTLS_SSL_ALPN

0 commit comments

Comments
 (0)