SSL_DUP_CA_LIST(3)

πŸ“¦ version 4.1.0, in opensuse-leap 16.0

πŸ’… SSL_DUP_CA_LIST β€” ok so you wanna deep-copy a whole stack of names ✨

Welcome to the SSL_DUP_CA_LIST(3) page, bestie! This is one of those little library-function girlies from the OpenBSD manual, section 3 (library functions, iykyk). She's small, she's focused, she does exactly one thing and she does it well. Periodt. πŸŽ€


🌸 NAME 🌸

SSL_dup_CA_list β€” literally a deep copy of a stack of X509 Name objects. That's it. That's the whole vibe check. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

STACK_OF(X509_NAME) *
SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk);

Not me just handing you the whole signature, no cap. Take it, it's yours now. πŸ’…


✨ DESCRIPTION ✨

Okay so here's the tea, bestie: SSL_dup_CA_list() constructs a new STACK_OF(X509_NAME) object β€” like, a whole fresh baby stack β€” and then it places copies of all the X509_NAME objects found on sk onto it. 🫢

Deep copy, not shallow. She's doing the real work. Every single name gets its own little duplicate, zero shared vibes between the old stack and the new one. Iconic behaviour, honestly. πŸ‘‘


πŸ”₯ RETURN VALUES πŸ”₯

  • Success β€” SSL_dup_CA_list() returns the new STACK_OF(X509_NAME). Slay, she ate. ✨
  • Failure β€” NULL. 😭 Not the vibe, but at least she's honest about it.
Heads up bestie: if you get NULL back, that's the failure signal β€” don't go dereferencing it like it's fine, fr fr. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

Go read these next, they're all in the same friend group:


🧚 HISTORY 🧚

SSL_dup_CA_list() first appeared in SSLeay 0.8.0 and has been available since OpenBSD 2.4. She's been on the scene for ages and she's still serving. πŸ’œ


πŸ“ SIGN-OFF πŸ“

This lil page comes from the Debian build of the Library Functions Manual, dated June 12, 2019 β€” footnote era, but still cute. Go forth and duplicate your CA lists responsibly, bestie. πŸŒˆπŸ’–πŸ¦‹

mwah πŸ’‹

πŸ“¦ where this page comes from