pub type s2n_cache_store_callback = Option<unsafe extern "C" fn(conn: *mut s2n_connection, arg1: *mut c_void, ttl_in_seconds: u64, key: *const c_void, key_size: u64, value: *const c_void, value_size: u64) -> c_int>;
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.