SSL_DUP(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

πŸ¦‹ 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