Type Alias s2n_tls_sys::s2n_client_hello_fn

source ·
pub type s2n_client_hello_fn = Option<unsafe extern "C" fn(conn: *mut s2n_connection, ctx: *mut c_void) -> c_int>;
Expand description

The callback function takes a s2n-tls connection as input, which receives the ClientHello and the context previously provided in s2n_config_set_client_hello_cb. The callback can access any ClientHello information from the connection and use the s2n_connection_set_config call to change the config of the connection.

Aliased Type§

enum s2n_client_hello_fn {
    None,
    Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void) -> i32)

Some value of type T.