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

Name

Description

libctx

Library context for algorithm fetches, or NULL for the default.

propq

Property query string for algorithm fetches, or NULL.

meth

Connection method (e.g. TLS_method()) that selects protocol roles.

Created with MrDocs