mbedtls_ssl_cache_get() function
Cache get 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 for the session to load.
session_id_len
The length of \p session_id in bytes.
session
The address at which to store the session associated with \p session_id, if present.
Return value
\c 0 on success. #MBEDTLS_ERR_SSL_CACHE_ENTRY_NOT_FOUND if there is no cache entry with specified session ID found, or any other negative error code for other failures.
mbedtls_ssl_cache_get() calls 2 functions:
![]()
mbedtls_ssl_cache_get()
mbedtls_ssl_cache_get() reads 2 variables:
![]()
mbedtls_ssl_cache_get()