Type Definition s2n_tls_sys::s2n_session_ticket_fn

source ·
pub type s2n_session_ticket_fn = Option<unsafe extern "C" fn(conn: *mut s2n_connection, ctx: *mut c_void, ticket: *mut s2n_session_ticket) -> c_int>;
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.