pub unsafe extern "C" fn mbedtls_ssl_cache_set(
data: *mut c_void,
session_id: *const c_uchar,
session_id_len: usize,
session: *const mbedtls_ssl_session,
) -> c_intExpand description
\brief Cache set callback implementation (Thread-safe if MBEDTLS_THREADING_C is enabled)
\param data The SSL cache context to use. \param session_id The pointer to the buffer holding the session ID associated to \p session. \param session_id_len The length of \p session_id in bytes. \param session The session to store.
\return \c 0 on success. \return A negative error code on failure.