Type Alias s2n_tls_sys::s2n_cache_delete_callback

source ·
pub type s2n_cache_delete_callback = Option<unsafe extern "C" fn(conn: *mut s2n_connection, arg1: *mut c_void, key: *const c_void, key_size: u64) -> c_int>;
Expand description

Cache callback function that allows the caller to set a callback function that will be used to delete SSL session data from a cache.

The callback function takes four arguments: a pointer to s2n_connection object, a pointer to arbitrary data for use within the callback, a pointer to a key which can be used to delete the cached entry, and a 64 bit unsigned integer specifying the size of this key.

Aliased Type§

enum s2n_cache_delete_callback {
    None,
    Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void, _: *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, _: *const c_void, _: u64) -> i32)

Some value of type T.