pub unsafe extern "C" fn s2n_config_set_session_ticket_cb(
    config: *mut s2n_config,
    callback: s2n_session_ticket_fn,
    ctx: *mut c_void
) -> c_int
Expand description

Sets a session ticket callback to be called when a client receives a new session ticket.

Safety

callback MUST cast ctx into the same type of pointer that was originally created. ctx MUST be valid for the lifetime of the config, or until a different context is set.

@param config A pointer to the config object. @param callback The function that should be called when the callback is triggered. @param ctx The context to be passed when the callback is called.