From 989a604b9e127c45b1e2fe9712b9916a2a98476f Mon Sep 17 00:00:00 2001 From: Cameron Bytheway Date: Wed, 15 Nov 2023 20:33:24 -0700 Subject: [PATCH] fix(bindings): enable session tickets after setting callback (#4292) --- bindings/rust/s2n-tls/src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/rust/s2n-tls/src/config.rs b/bindings/rust/s2n-tls/src/config.rs index 06ce7336435..673102acbd8 100644 --- a/bindings/rust/s2n-tls/src/config.rs +++ b/bindings/rust/s2n-tls/src/config.rs @@ -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,