pub unsafe extern "C" fn s2n_client_hello_parse_message(
bytes: *const u8,
size: u32,
) -> *mut s2n_client_hello
Expand description
Creates an s2n_client_hello from bytes representing a ClientHello message.
The input bytes should include the message header (message type and length), but not the record header.
Unlike s2n_connection_get_client_hello, the s2n_client_hello returned by this method is owned by the application and must be freed with s2n_client_hello_free.
This method does not support SSLv2 ClientHellos.
@param bytes The raw bytes representing the ClientHello. @param size The size of raw_message. @returns A new s2n_client_hello on success, or NULL on failure.