Function s2n_tls_sys::s2n_client_hello_get_cipher_suites

source ·
pub unsafe extern "C" fn s2n_client_hello_get_cipher_suites(
    ch: *mut s2n_client_hello,
    out: *mut u8,
    max_length: u32
) -> isize
Expand description

Copies into the out buffer max_length bytes of the cipher_suites on the ClientHello.

Note: SSLv2 ClientHello cipher suites follow a different structure than modern ClientHello messages. See RFC5246. To determine whether a ClientHello is an SSLv2 ClientHello, you will need to use s2n_connection_get_client_hello_version().

@param ch The Client Hello handle @param out The destination buffer for the raw Client Hello cipher suites @param max_length The size of out in bytes @returns The number of copied bytes