Skip to content

Commit

Permalink
Add missing setter for conf->new_session_tickets_count (#313)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kazurin-775 authored Sep 8, 2023
1 parent 1cc1f47 commit 261150d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mbedtls/src/ssl/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 261150d

Please sign in to comment.