pub unsafe extern "C" fn s2n_connection_get_session_ticket_lifetime_hint(
    conn: *mut s2n_connection
) -> c_int
Expand description

Retrieves a hint from the server indicating how long this ticket’s lifetime is.

@note This function is not recommended for > TLS 1.2 because in TLS1.3 servers can send multiple session tickets and this function will only return the most recently received ticket lifetime hint.

@param conn A pointer to the s2n_connection object

@returns The session ticket lifetime hint in seconds from the server or -1 when session ticket was not used for resumption.