Function s2n_tls_sys::s2n_client_hello_get_raw_message
source · pub unsafe extern "C" fn s2n_client_hello_get_raw_message(
ch: *mut s2n_client_hello,
out: *mut u8,
max_length: u32
) -> isize
Expand description
Copies max_length
bytes of the ClientHello message into the out
buffer.
The ClientHello instrumented using this function will have the Random bytes
zero-ed out. For SSLv2 ClientHello messages, the raw message contains only
the cipher_specs, session_id and members portions of the hello message
(see RFC5246). To access other
members, you may use s2n_connection_get_client_hello_version(),
s2n_connection_get_client_protocol_version() and s2n_connection_get_session_id_length()
accessors functions.
@param ch The Client Hello handle @param out The destination buffer for the raw Client Hello @param max_length The size of out in bytes @returns The number of copied bytes