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.NOTES
The Fa ssl session contains all information required to re-establish the connection without a new handshake.RETURN VALUES
The following return values can occur:- NULL
- There is no session available in ssl.
- Pointer to an SSL
- The return value points to the data of an SSL session.