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

Copies into the out buffer max_length bytes of a given extension type on the ClientHello

ch is a pointer to the s2n_client_hello of the s2n_connection which can be obtained using s2n_connection_get_client_hello().

@param ch A pointer to the Client Hello @param extension_type Indicates the desired extension @param out A pointer to the buffer that s2n will write the client session id to. This buffer MUST be the size of max_length @param max_length The size of out. @returns The number of copied bytes