SSL_DUP(3)
π¦ SSL_DUP(3) π¦
okay bestie, real talk: this page is from the library βlibsslβ libcrypto world, and it's all about SSL_dup β the deep-copy girlie of the SSL object universe. She copies a lot, but she is not doing a full identity theft, and I need you to know that before we proceed. π
β¨
πΈ NAME πΈ
SSL_dup β deep copy of an SSL object π«Ά
β¨ SYNOPSIS β¨
library βlibsslβ libcrypto #include <openssl/ssl.h>
SSL *
SSL_dup(SSL *ssl);
π DESCRIPTION π
SSL_dup() constructs a new SSL object in the same context as ssl and copies much of the contained data from ssl to the new SSL object β but many fields, for example tlsext data, are not copied. it's giving "inspired-by remix," not "1:1 clone," bestie. no cap. π
As an exception from deep copying, if a session is already established, the new object shares ssl->cert with the original object. so yeah, they're sharing that one specific thing like besties sharing a Stanley cup β iconic behavior, but only in that one case. π
π₯ RETURN VALUES π₯
SSL_dup() returns the new SSL object or NULL on failure. that's it. that's the tea. β
π SEE ALSO π
go read these when you're done slaying this page, iykyk. π
β HISTORY β
SSL_dup() first appeared in SSLeay 0.8.0 and has been available since OpenBSD 2.4. she's been around, and she's still doing her little deep-copy thing. periodt. π
mwah π β this cutie was brought to you by Debian, dated June 8, 2025, and the manual page is literally SSL_DUP(3). bye bestie, go copy responsibly! ππ¦π
π¦ 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) 2016 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