gtpc1m69Transmission Control Protocol/Internet Protocol

SSL_set_session

The SSL_set_session function sets up Secure Sockets Layer (SSL) session information for use by the SSL_connect function when reusing an SSL session.

Format

#include <openssl/ssl.h>
int SSL_set_session(SSL *ssl, SSL_SESSION *session);

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

session
A pointer to the SSL_SESSION structure.

Normal Return

Return code 1 indicates that the function was successful.

Error Return

A return code equal to 0 indicates an error.

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