Function s2n_tls_sys::s2n_connection_set_session
source · pub unsafe extern "C" fn s2n_connection_set_session(
conn: *mut s2n_connection,
session: *const u8,
length: usize
) -> c_int
Expand description
De-serializes the session state and updates the connection accordingly.
If this method fails, the connection should not be affected: calling s2n_negotiate with the connection should simply result in a full handshake.
@param conn A pointer to the s2n_connection object
@param session A pointer to a buffer of size length
@param length The size of the session
buffer
@returns The number of copied bytes