SSL_NEW(3)
β¨ NAME β¨
okay so welcome to SSL_NEW(3) β yes bestie, this is the Library Functions Manual page for SSL_new and SSL_up_ref, and it is literally here to help you create a new SSL structure for a connection. π
SSL_new,SSL_up_refβ create a new SSL structure for a connection
πΈ SYNOPSIS πΈ
here's the exact synopsis, no cap:
library βlibsslβ libcrypto #include <openssl/ssl.h>
SSL *
SSL_new(SSL_CTX *ctx);
int
SSL_up_ref(SSL *ssl);
π DESCRIPTION π
SSL_new() creates a new SSL structure, and you literally need this to hold the data for a TLS/SSL connection. The new structure inherits the settings of the underlying context ctx: connection method, options, verification settings, timeout settings, security level. The reference count of the new structure is set to 1. slay. β¨
SSL_up_ref() increments the reference count of ssl by 1. that's the whole assignment, bestie. π
π¦ RETURN VALUES π¦
The following return values can occur:
NULLβ The creation of a new SSL structure failed. Check the error stack to find out the reason. π- Pointer to an SSL structure β The return value points to an allocated SSL structure. π«Ά
SSL_up_ref()β returns1for success or0for failure.
π SEE ALSO π
go give these a vibe check:
ssl(3)SSL_clear(3)SSL_CTX_set_options(3)SSL_CTX_set_security_level(3)SSL_free(3)SSL_get_SSL_CTX(3)
π HISTORY π
SSL_new() appeared in SSLeay 0.4 or earlier and has been available since OpenBSD 2.4. that's some ancient icon behavior, fr fr. SSL_up_ref() first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 6.3. periodt. π§
xoxo bestie, this page is from Debian, dated June 8, 2025, and it's the SSL_NEW(3) manual page β bye! πβ¨
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2000, 2016 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms