SSL_SET_SSL_CTX(3)
π SSL_set_SSL_CTX(3) β Library Functions Manual π
okay bestie, this is the Library Functions Manual page for one tiny but iconic function. no cap, let's get into it π
πΈ NAME πΈ
SSL_set_SSL_CTX β modify an SSL connection object to use another context
β¨ SYNOPSIS β¨
#include <openssl/ssl.h>
SSL_CTX *
SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx);
π¦ DESCRIPTION π¦
so SSL_set_SSL_CTX() causes ssl to use the context ctx. it's giving "swap the vibe of this connection" energy β¨
if ctx is NULL, then ssl reverts to using the context that it was initially created from with SSL_new(3). yes bestie, it reverts β no cap π
if ssl already uses ctx, then no action occurs. no action, no drama, periodt π
π RETURN VALUES π
SSL_set_SSL_CTX() returns an internal pointer to the context that ssl is using as a result of the call. iconic.
but if memory allocation fails, it returns NULL. so yeah, watch for that π
π₯ SEE ALSO π₯
π HISTORY π
SSL_set_SSL_CTX() first appeared in OpenSSL 0.9.8f and has been available since OpenBSD 4.5. history really said "I was there" πβ¨
xoxo, Debian β July 13, 2022 β page vibes for SSL_set_SSL_CTX(3) π mwah
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms