libressl-SSL_get_SSL_CTX(3)

libressl-SSL_get_SSL_CTX3

Get the ssl_ctx from which an ssl is created

Usage

SSL Library (libssl, -lssl) libcrypto

#include <openssl/ssl.h>

SSL_CTX *

SSL_get_SSL_CTX(const SSL *ssl);

Overview

SSL_get_SSL_CTX() returns a pointer to the SSL_CTX object from which ssl was created with SSL_new(3).

Return values

The pointer to the SSL_CTX object is returned.

History

SSL_get_SSL_CTX() first appeared in SSLeay 0.5.1 and has been available since OpenBSD 2.4.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.