gtpc1m5iTransmission Control Protocol/Internet Protocol

SSL_CTX_new

The SSL_CTX_new function creates a new context (CTX) structure for use by one or more Secure Sockets Layer (SSL) sessions that are not shared. Use the SSL_CTX_new_shared function to create a CTX structure for shared SSL sessions.

Format

#include <openssl/ssl.h>
SSL_CTX *SSL_CTX_new(SSL_METHOD *meth)

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.

Normal Return

Returns a pointer to the new CTX token.

Error Return

A NULL pointer 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