pub unsafe extern "C" fn s2n_config_set_cache_store_callback(
    config: *mut s2n_config,
    cache_store_callback: Option<unsafe extern "C" fn(_: *mut s2n_connection, _: *mut c_void, _: u64, _: *const c_void, _: u64, _: *const c_void, _: u64) -> i32>,
    data: *mut c_void
) -> i32
Expand description

Allows the caller to set a callback function that will be used to store SSL session data in a cache.

@param config The configuration object being updated @param cache_store_callback The cache store callback function. @param data An opaque context pointer that the callback will be invoked with. @returns S2N_SUCCESS on success. S2N_FAILURE on failure