Function s2n_tls_sys::s2n_connection_get_tickets_sent

source ·
pub unsafe extern "C" fn s2n_connection_get_tickets_sent(
    conn: *mut s2n_connection,
    num: *mut u16
) -> c_int
Expand description

Returns the number of session tickets issued by the server.

In TLS1.3, this number can be up to the limit configured by s2n_config_set_initial_ticket_count and s2n_connection_add_new_tickets_to_send. In earlier versions of TLS, this number will be either 0 or 1.

This method only works for server connections.

@param conn A pointer to the connection object. @param num The number of additional session tickets sent. @returns S2N_SUCCESS on success. S2N_FAILURE on failure