gtpc1m5jTransmission Control Protocol/Internet Protocol

SSL_CTX_new_shared

The SSL_CTX_new_shared function creates a new context (CTX) structure for use by shared Secure Sockets Layer (SSL) sessions.

Format

#include <openssl/ssl.h>
SSL_CTX *SSL_CTX_new_shared(SSL_METHOD *meth, const char *name)

meth
A pointer to the connection method that indicates which SSL versions are supported and whether the new CTX structure is for a client application or a server application.

name
A pointer to the name to look up in the shared SSL configuration file (/etc/sslshared.txt) to determine which SSL daemon processes manage the SSL sessions assigned to the CTX structure created. If you specify a NULL pointer, the TPF system selects an SSL daemon process that has the least number of SSL sessions to manage the sessions for this CTX structure.

Normal Return

Returns a pointer to a CTX token.

Error Return

A NULL pointer indicates an error. The most likely cause of this error is that a name parameter that does not exist in the shared SSL configuration file (/etc/sslshared.txt) was passed in.

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