shishi_priv_save(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_save(3) β€” the shishi girlies' guide πŸ’–

okay bestie, buckle up, because we're diving into the shishi manual and this one is a whole vibe. it's shishi_priv_save, part of the shishi crew, and she's here to help you write your PRIV out to a file. iconic behaviour, honestly. πŸ¦‹


✨ NAME ✨

shishi_priv_save β€” API function 🌸

(yeah, that's it. she's an API function. mysterious. main character energy. we love her for it.)


πŸŽ€ SYNOPSIS πŸŽ€

#include <shishi.h>

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

look at her. three little args. so clean. so slay. πŸ’…


🫢 ARGUMENTS 🫢

  • Shishi * handle β€” the shishi handle, bestie. the one you got from shishi_init(). no handle, no party. πŸ’œ
  • FILE * fh β€” a file handle that's open for writing. she's gotta be writable, okay? don't come at her with a read-only file, that's not the vibe.
  • Shishi_asn1 priv β€” the PRIV you want to save. yes, literally the PRIV. hand her over and let the function do its thing. ✨

🌈 DESCRIPTION 🌈

Save the DER encoding of PRIV to a file. that's the whole job. she takes your PRIV, encodes it in DER, and drops it into the file you handed her. no drama, no fuss, just a little cryptographic data persistence moment. periodt. πŸ’–


πŸ‘‘ RETURN VALUE πŸ‘‘

Returns SHISHI_OK iff successful. πŸŽ‰

(translation: if everything went off without a hitch, you get SHISHI_OK back. if not… well, it's not SHISHI_OK, and you know what that means. vibe check failed. 😭)


πŸ™ˆ REPORTING BUGS πŸ™ˆ

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

they want to hear from you fr fr. πŸ›βœ¨


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.

(so like… go off? just keep the notice. respect the notice. the notice is sacred. πŸŽ€)


⭐ 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. iykyk β€” that's where the real lore lives. πŸ“–πŸ’«


okay that's the whole page, bestie!! this was shishi version 1.0.3, and the page is shishi_priv_save(3) β€” mwah, go forth and save your PRIVs responsibly. πŸ¦‹πŸ’–βœ¨