mbedtls_ssl_cache_set() function
Cache set callback implementation (Thread-safe if MBEDTLS_THREADING_C is enabled)
Arguments
data
The SSL cache context to use.
session_id
The pointer to the buffer holding the session ID associated to \p session.
session_id_len
The length of \p session_id in bytes.
session
The session to store.
Return value
\c 0 on success. A negative error code on failure.
mbedtls_ssl_cache_set() calls 4 functions:
![]()
mbedtls_ssl_cache_set()
mbedtls_ssl_cache_set() reads 1 variable and writes 3 variables:
![]()
mbedtls_ssl_cache_set()