Skip to content

Commit

Permalink
fix(bindings): enable session tickets after setting callback (#4292)
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft authored Nov 16, 2023
1 parent 5bc8d63 commit 989a604
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/rust/s2n-tls/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ impl Builder {
&mut self,
handler: T,
) -> Result<&mut Self, Error> {
// enable session tickets automatically
self.enable_session_tickets(true)?;

// Define C callback function that can be set on the s2n_config struct
unsafe extern "C" fn session_ticket_cb(
conn_ptr: *mut s2n_connection,
Expand Down

0 comments on commit 989a604

Please sign in to comment.