Function s2n_tls_sys::s2n_client_hello_has_extension
source · pub unsafe extern "C" fn s2n_client_hello_has_extension(
ch: *mut s2n_client_hello,
extension_iana: u16,
exists: *mut bool
) -> c_int
Expand description
Used to check if a particular extension exists in the client hello.
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 object @param extension_iana The iana value of the extension @param exists A pointer that will be set to whether or not the extension exists