OpenBSD Handbook Manuals
Search

SSL_get_SSL_CTX(3)

Canonical URL: /SSL_get_SSL_CTX.3/

SSL_GET_SSL_CTX(3) Library Functions Manual SSL_GET_SSL_CTX(3)

SSL_get_SSL_CTXget the SSL_CTX from which an SSL is created

/* -lssl -lcrypto */
#include <openssl/ssl.h>

SSL_CTX *
SSL_get_SSL_CTX(const SSL *ssl);

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

The pointer to the SSL_CTX object is returned.

ssl(3), SSL_new(3)

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

OpenBSD 7.8 June 8, 2025 SSL_GET_SSL_CTX(3)

Need conceptual guidance? Continue in the OpenBSD Handbook.