Type Alias esp_idf_sys::mbedtls_ssl_cache_get_t
source · pub type mbedtls_ssl_cache_get_t = Option<unsafe extern "C" fn(data: *mut c_void, session_id: *const c_uchar, session_id_len: usize, session: *mut mbedtls_ssl_session) -> c_int>;
Expand description
\brief Callback type: server-side session cache getter
The session cache is logically a key value store, with
keys being session IDs and values being instances of
mbedtls_ssl_session.
This callback retrieves an entry in this key-value store.
\param data The address of the session cache structure to query. \param session_id The buffer holding the session ID to query. \param session_id_len The length of \p session_id in Bytes. \param session The address of the session structure to populate. It is initialized with mbdtls_ssl_session_init(), and the callback must always leave it in a state where it can safely be freed via mbedtls_ssl_session_free() independent of the return code of this function.
\return \c 0 on success \return A non-zero return value on failure.
Aliased Type§
enum mbedtls_ssl_cache_get_t {
None,
Some(unsafe extern "C" fn(_: *mut c_void, _: *const u8, _: usize, _: *mut mbedtls_ssl_session) -> i32),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut c_void, _: *const u8, _: usize, _: *mut mbedtls_ssl_session) -> i32)
Some value of type T
.