gtpc1m5wTransmission Control Protocol/Internet Protocol

SSL_get_session

The SSL_get_session function returns a copy of the Secure Sockets Layer (SSL) session information for a specific SSL structure.

Format

#include <openssl/ssl.h>
SSL_SESSION *SSL_get_session(SSL *ssl);

ssl
A pointer to a token returned on the SSL_new call.

Normal Return

Returns a pointer to an SSL_SESSION structure that contains information about the SSL session.

Error Return

Returns NULL when no SSL session exists.

Programming Considerations

Examples

For sample SSL applications, go to http://www.ibm.com/tpf/pubs/tpfpubs.htm, click SSL for the TPF 4.1 System: An Online User's Guide, and click Examples from the left navigation bar.

Related Information