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.