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

# SSL\_get\_SSL\_CTX(3ssl)

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

```
 #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**(7)](/ssl/7.md), **SSL\_new**(3)

## COPYRIGHT

Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License").  You may not use this file except in compliance with the License.  You can obtain a copy in the file LICENSE in the source distribution or at \<https://www.openssl.org/source/license.html\>.
