shishi_priv_encprivpart_der(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_priv_encprivpart_der(3) β€” the shishi girlie's guide πŸ’–

okay bestie, sit down, hydrate, and let's talk about shishi_priv_encprivpart_der, a little function from the shishi manual (section 3, the library section, iykyk). she's not flashy but she's important, and honestly? she ate. ✨


🌸 NAME 🌸

shishi_priv_encprivpart_der β€” it's an API function, bestie. that's the whole vibe.


πŸŽ€ SYNOPSIS πŸŽ€

lowkey the moment you've been waiting for:

#include <shishi.h>

int shishi_priv_encprivpart_der(Shishi_priv * priv, char ** out, size_t
* outlen);

look at her. three args. no drama. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi_priv * priv β€” your priv, bestie. as in, the one you got from shishi_priv(). not a random priv. the priv.
  • char ** out β€” the output array, and it's gonna be filled with a freshly allocated DER encoding of ENCPRIVPART. brand new. fresh out the box. ✨
  • size_t * outlen β€” the length of that output array, aka how many bytes of DER-encoded ENCPRIVPART you're working with. she's telling you how big it is. so thoughtful.

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she DER encodes the ENCPRIVPART structure. that's it, that's the job, and she does it flawlessly, no cap.

but listen, this part matters, okay? out is allocated by this function, which means it is the responsibility of the caller to deallocate it. that's you. you're the caller. you're the main character here. nobody else is gonna free that memory for you, bestie β€” that's your job now. don't ghost your malloc'd memory, it's not cute. 😭


⭐ RETURN VALUE ⭐

returns SHISHI_OK iff successful. that's the good ending. we love a happy ending. 🫢


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me being the one to tell you, but fr fr, report it:

they wanna hear from you. the group chat is open. πŸ’Œ


Copyright Β© 2002-2022 Simon Josefsson.

and here's the licensing tea, verbatim vibe but exact meaning: copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. so like, go off, share it, remix it, just keep the receipts. periodt. πŸŽ€


🌈 SEE ALSO 🌈

the full documentation for shishi is maintained as a Texinfo manual β€” the whole extended lore, not just this one page.

if the info and shishi programs are properly installed at your site, this command:

info shishi

should give you access to the complete manual. go read it, it's giving encyclopedia but make it slay. πŸ“šβœ¨


shishi version 1.0.3, page shishi_priv_encprivpart_der(3) β€” okay that's the whole page bestie, you understood it, I'm so proud of you, now go free that out buffer πŸ’–πŸ¦‹πŸŽ€ mwah, see you in the next man page ✨