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

Gets the latest session id’s length from the connection.

Use this to query the session id size before copying it into a buffer.

@param conn A pointer to the s2n_connection object

@returns The latest session id length from the connection. Session id length will be 0 for TLS versions >= TLS1.3 as stateful session resumption has not yet been implemented in TLS1.3.