---
name: "libressl-SSL_get_SSL_CTX"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-SSL_get_SSL_CTX"
---

# libressl-SSL\_get\_SSL\_CTX(3)

get the SSL\_CTX from which an SSL is created

## NAME

**SSL\_get\_SSL\_CTX** – get the SSL\_CTX from which an SSL is created

## SYNOPSIS

SSL Library (libssl, -lssl) libcrypto

**#include \<openssl/ssl.h\>**

*SSL\_CTX* *\**\

**SSL\_get\_SSL\_CTX**(*const SSL \*ssl*);

## DESCRIPTION

**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.

## SEE ALSO

[ssl(3)](/ssl/3.md), SSL\_new(3)

## HISTORY

**SSL\_get\_SSL\_CTX**() first appeared in SSLeay 0.5.1 and has been available since OpenBSD 2.4.
