Type Alias s2n_quic_tls::ffi::s2n_session_ticket_fn
source · pub type s2n_session_ticket_fn = Option<unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void, _: *mut s2n_session_ticket) -> i32>;
Expand description
Callback function for receiving a session ticket.
This function will be called each time a session ticket is received, which may be multiple times for TLS1.3.
§Safety
ctx
is a void pointer and the caller is responsible for ensuring it is cast to the correct type.
ticket
is valid only within the scope of this callback.
@param conn A pointer to the connection object. @param ctx Context for the session ticket callback function. @param ticket Pointer to the received session ticket object.
Aliased Type§
enum s2n_session_ticket_fn {
None,
Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void, _: *mut s2n_session_ticket) -> i32),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void, _: *mut s2n_session_ticket) -> i32)
Some value of type T
.