Function s2n_tls_sys::s2n_session_ticket_get_data

source ·
pub unsafe extern "C" fn s2n_session_ticket_get_data(
    ticket: *mut s2n_session_ticket,
    max_data_len: usize,
    data: *mut u8
) -> c_int
Expand description

Gets the session ticket data from a session ticket object.

§Safety

The entire session ticket will be copied into data on success. Therefore, data MUST have enough memory to store the session ticket data.

@param ticket Pointer to the session ticket object. @param max_data_len Maximum length of data that can be written to the ‘data’ pointer. @param data Pointer to where the session ticket data will be stored.