Type Alias s2n_quic::provider::tls::default::ffi::s2n_cache_store_callback

source ·
pub type s2n_cache_store_callback = Option<unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void, _: u64, _: *const c_void, _: u64, _: *const c_void, _: u64) -> i32>;
Expand description

Cache callback function that allows the caller to store SSL session data in a cache.

The callback function takes seven arguments: a pointer to the s2n_connection object, a pointer to arbitrary data for use within the callback, a 64-bit unsigned integer specifying the number of seconds the session data may be stored for, a pointer to a key which can be used to retrieve the cached entry, a 64 bit unsigned integer specifying the size of this key, a pointer to a value which should be stored, and a 64 bit unsigned integer specified the size of this value.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.