mbedtls_ssl_session_save() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferencesCall TreeData Use

Return value

\c 0 if successful. #MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL if \p buf is too small. #MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE if the MBEDTLS_SSL_SESSION_TICKETS configuration option is disabled and the session is a TLS 1.3 session.

Notes

\p olen is updated to the correct value regardless of whether \p buf_len was large enough. This makes it possible to determine the necessary size by calling this function with \p buf set to \c NULL and \p buf_len to \c 0. For TLS 1.3 sessions, this feature is supported only if the MBEDTLS_SSL_SESSION_TICKETS configuration option is enabled, as in TLS 1.3 session resumption is possible only with tickets.

References