mbedtls_ssl_get_session() is only used within mbedTLS.
 
Symbols
loading...
Files
loading (2/5)...
SummarySyntaxArgumentsRelatedReferencesCall TreeData Use

Return value

\c 0 if successful. In this case, \p session can be used for session resumption by passing it to mbedtls_ssl_set_session(), and serialized for storage via mbedtls_ssl_session_save(). Another negative error code on other kinds of failure.

Notes

This function can handle a variety of mechanisms for session resumption: For TLS 1.2, both session ID-based resumption and ticket-based resumption will be considered. For TLS 1.3, sessions equate to tickets, and if session tickets are enabled (see #MBEDTLS_SSL_SESSION_TICKETS configuration option), this function exports the last received ticket and the exported session may be used to resume the TLS 1.3 session. If session tickets are disabled, exported sessions cannot be used to resume a TLS 1.3 session.

References