Function s2n_quic::provider::tls::default::ffi::s2n_config_set_early_data_cb

source ·
pub unsafe extern "C" fn s2n_config_set_early_data_cb(
    config: *mut s2n_config,
    cb: Option<unsafe extern "C" fn(_: *mut s2n_connection, _: *mut s2n_offered_early_data) -> i32>
) -> i32
Expand description

Set a callback to accept or reject early data.

@param config A pointer to the connection config @param cb A pointer to the implementation of the callback. @returns A POSIX error signal. If successful, the callback was set.