SSL_CTX_new

Creates a new SSL_CTX object as framework to establish TLS/SSL or DTLS enabled connections.

The object must be freed using SSL_CTX_free. It is reference counted, so it will only be deleted when the reference count drops to zero.

extern (C)
SSL_CTX_new

Parameters

meth const(ssl_method_st)*

the SSL/TLS connection methods to use

Return Value

Type: SSL_CTX*

an allocated SSL_CTX object, or null if creation failed.

Meta