SSL_CTX_new_ex

Create an SSL_CTX using an explicit library context and property query.

Synopsis

Declared in <openssl/ssl.h>

SSL_CTX*
SSL_CTX_new_ex(
    OSSL_LIB_CTX* libctx,
    char const* propq,
    SSL_METHOD const* meth);

Return Value

New SSL_CTX on success, or NULL on failure.

Parameters

NameDescription
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query string for algorithm fetches, or NULL.
methConnection method (e.g. TLS_method()) that selects protocol roles.