pub unsafe extern "C" fn s2n_client_hello_get_compression_methods(
ch: *mut s2n_client_hello,
list: *mut u8,
list_length: u32,
out_length: *mut u32,
) -> i32
Expand description
Retrieves the list of compression methods sent in the Client Hello.
Use s2n_client_hello_get_compression_methods_length()
to retrieve how much memory should be allocated for the buffer in advance.
@note Compression methods were removed in TLS1.3 and therefore the only valid value in this list is the “null” compression method when TLS1.3 is negotiated.
@note s2n-tls has never supported compression methods in any TLS version and therefore a compression method will never be negotiated or used.
@param ch A pointer to the Client Hello
@param list A pointer to some memory that s2n will write the compression methods to. This memory MUST be the size of list_length
@param list_length The size of list
.
@param out_length An out pointer. s2n will set its value to the size of the compression methods list in bytes.
@returns S2N_SUCCESS on success. S2N_FAILURE on failure