Function s2n_quic_tls::ffi::s2n_connection_serialization_length
source · pub unsafe extern "C" fn s2n_connection_serialization_length(
conn: *mut s2n_connection,
length: *mut u32
) -> i32
Expand description
Retrieves the length of the serialized connection from s2n_connection_serialize()
. Should be
used to allocate enough memory for the serialized connection buffer.
@note The size of the serialized connection changes based on parameters negotiated in the TLS handshake. Do not expect the size to always remain the same.
@param conn A pointer to the connection object. @param length Output parameter where the length will be written. @returns S2N_SUCCESS on success, S2N_FAILURE on error.