From 261150d4a26886675240b90e1be7e6c79a0cefe3 Mon Sep 17 00:00:00 2001 From: Kazurin Nanako <71819243+Kazurin-775@users.noreply.github.com> Date: Fri, 8 Sep 2023 23:44:38 +0800 Subject: [PATCH] Add missing setter for `conf->new_session_tickets_count` (#313) This option determines the number of new session tickets generated for each session, and is only present when `MBEDTLS_SSL_PROTO_TLS1_3` is set. We should add a setter for this option when the `tls13` feature is enabled. --- mbedtls/src/ssl/config.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mbedtls/src/ssl/config.rs b/mbedtls/src/ssl/config.rs index 3b709789d..45902857e 100644 --- a/mbedtls/src/ssl/config.rs +++ b/mbedtls/src/ssl/config.rs @@ -371,6 +371,11 @@ impl Config { set_session_tickets(u: UseSessionTickets) = ssl_conf_session_tickets ); + #[cfg(feature = "tls13")] + setter!( + set_new_session_tickets_count(cnt: u16) = ssl_conf_new_session_tickets + ); + setter!(set_renegotiation(u: Renegotiation) = ssl_conf_renegotiation); setter!(