libressl-SSL_set_SSL_CTX3
Modify an ssl connection object to use another context
Usage
SSL Library (libssl, -lssl) libcrypto
#include <openssl/ssl.h>
SSL_CTX *
SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx);
Overview
SSL_set_SSL_CTX() causes ssl to use the context ctx.
If ctx is NULL, ssl reverts to using the context that it was initially created from with SSL_new(3).
If ssl already uses ctx, no action occurs.
Return values
SSL_set_SSL_CTX() returns an internal pointer to the context that ssl is using as a result of the call, or NULL if memory allocation fails.