Skip to content

Commit 261150d

Browse files
authored
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.
1 parent 1cc1f47 commit 261150d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mbedtls/src/ssl/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ impl Config {
371371
set_session_tickets(u: UseSessionTickets) = ssl_conf_session_tickets
372372
);
373373

374+
#[cfg(feature = "tls13")]
375+
setter!(
376+
set_new_session_tickets_count(cnt: u16) = ssl_conf_new_session_tickets
377+
);
378+
374379
setter!(set_renegotiation(u: Renegotiation) = ssl_conf_renegotiation);
375380

376381
setter!(

0 commit comments

Comments
 (0)