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

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

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