Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
SSL_get_session, SSL_get0_session, SSL_get1_session — retrieve TLS/SSL session dataSYNOPSIS
#include <openssl/ssl.h>SSL_get_session(const SSL *ssl);
SSL_get0_session(const SSL *ssl);
SSL_get1_session(SSL *ssl);
DESCRIPTION
SSL_get_session() returns a pointer to the SSL_SESSION actually used in ssl. The reference count of the SSL_SESSION is not incremented, so that the pointer can become invalid by other operations.RETURN VALUES
The following return values can occur:- NULL
- There is no session available in ssl.
- Pointer to an SSL_SESSION
- The return value points to the data of an SSL session.