SSL_CONF_CTX_NEW(3SSL)
π SSL_CONF_CTX_new, SSL_CONF_CTX_free β the SSL configuration allocation functions π
okay so bestie, welcome to the SSL_CONF_CTX_NEW(3SSL) page from the OpenSSL manual π
these two little functions are literally the glow-up station for your SSL config contexts β you make one, you use it, you yeet it. that's the whole vibe. no cap. π
β¨ NAME β¨
SSL_CONF_CTX_new, SSL_CONF_CTX_free β the SSL configuration allocation functions, aka the "make me a context" and "okay bye context" girlies π¦
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
SSL_CONF_CTX *SSL_CONF_CTX_new(void);
void SSL_CONF_CTX_free(SSL_CONF_CTX *cctx);
like. that's it. that's the whole API surface. simple, clean, iconic. π
π« DESCRIPTION π«
so SSL_CONF_CTX_new() is the main character here β it allocates and initialises an SSL_CONF_CTX structure so you can go use it with all the SSL_CONF functions. freshly allocated, freshly initialised, ready to serve πβ¨
and SSL_CONF_CTX_free() is the responsible bestie who frees up the context cctx. one important detail though:
if cctx is NULL, nothing is done. like, literally nothing. it just vibes. no crash, no drama, no problem ππ«Ά
π RETURN VALUES π
SSL_CONF_CTX_new()hands you back either the shiny newly allocatedSSL_CONF_CTXstructure β¨ orNULLif an error occurs π (yes, always check. always. that's the vibe check.)SSL_CONF_CTX_free()does not return a value. it's a void girlie. gives nothing back and that's totally fine π
π SEE ALSO π
all the siblings, the whole squad, the group chat π«Ά:
ssl(7)SSL_CONF_CTX_set_flags(3)SSL_CONF_CTX_set_ssl_ctx(3)SSL_CONF_CTX_set1_prefix(3)SSL_CONF_cmd(3)SSL_CONF_cmd_argv(3)
π¦ HISTORY π¦
these functions were added in OpenSSL 1.0.2. vintage but still eating. π₯
π COPYRIGHT π
Copyright 2012-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>.
k bye ily, go forth and allocate responsibly π§ββοΈ
β OpenSSL 4.0.3, dated 2026-09-29, page SSL_CONF_CTX_NEW(3SSL), signing off πβ¨
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms