pub unsafe extern "C" fn s2n_client_hello_get_server_name(
ch: *mut s2n_client_hello,
server_name: *mut u8,
length: u16,
out_length: *mut u16,
) -> i32
Expand description
Gets the first server name in a Client Hello.
Use s2n_client_hello_get_server_name_length()
to get the amount of memory needed for the buffer.
@param ch A pointer to the ClientHello
@param server_name A pointer to the memory which will be populated with the server name
@param length The maximum amount of data that can be written to server_name
@param out_length A pointer which will be populated with the size of the server name