shishi_priv_print(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_print ✨

okay so bestie, welcome to the shishi_priv_print(3) page, aka the shishi manual, section 3 πŸ’… this one's short and sweet and honestly? iconic. let's get into it 🫢


🌸 NAME 🌸

shishi_priv_print β€” literally just an API function, no cap. that's the whole name, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

int shishi_priv_print(Shishi * handle, FILE * fh, Shishi_asn1 priv);

yeah she's a C function, she takes three things, she gives you back an int. simple. elegant. main character energy fr fr ✨


πŸ“ ARGUMENTS πŸ“

  • Shishi * handle β€” the shishi handle, and like… you gotta get it from shishi_init(), okay? don't just make one up πŸ’€ that's where it's allocated, that's the rule.
  • FILE * fh β€” a file handle that's open for writing. open for writing, bestie. if it's not open for writing, that's a you problem πŸ™ˆ
  • Shishi_asn1 priv β€” the PRIV you wanna print. that's the thing going on the page. that's the star of the show πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so what does she do? she prints the ASCII armored DER encoding of PRIV to the file. that's it. that's the whole job. she's not doing extra, she's not doing less, she's just out here armoring your DER in ASCII and dropping it in the file you handed her 🌈

lowkey obsessed with how straightforward that is ngl.


⭐ RETURN VALUE ⭐

she returns SHISHI_OK iff it worked. iff!! that's the exact word they used and we're keeping it πŸ’… so like β€” if you get SHISHI_OK, slay, you ate. anything else? not slay, check your stuff.


😭 REPORTING BUGS 😭

found a bug? don't suffer in silence, tell the people:

they wanna hear from you fr fr, that's literally why the address is right there 🫢


Copyright Β© 2002-2022 Simon Josefsson.

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.

like… go off?? that's so generous of them, we love a permissive license moment πŸ’œ (just keep the notice, that's the one condition, that's it, that's all)


🌈 SEE ALSO 🌈

The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command

info shishi

should give you access to the complete manual.

so if you want the whole lore, not just this one page, run that and enjoy the extended universe 🧚✨


and that's the page!! this was shishi version 1.0.3, page shishi_priv_print(3) β€” no date on this one, she's timeless like that πŸ’… mwah, go print some PRIV, you got this πŸŽ€πŸ¦‹πŸ’–