shishi_priv_encprivpart_der(3)
π 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 fromshishi_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:
- bugs go to
<bug-shishi@gnu.org> - GNU Shishi home page:
http://www.gnu.org/software/shishi/ - general help using GNU software:
http://www.gnu.org/gethelp/
they wanna hear from you. the group chat is open. π
π COPYRIGHT π
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 β¨
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms