shishi_priv_key(3)

πŸ“¦
version 1.0.3 Β· 3 versions
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute

✨ shishi_priv_key(3) ✨

okay bestie, welcome to the shishi manual, section 3 (that's the library-functions girlies πŸ’…). today's main character is shishi_priv_key, and she is so much simpler than she sounds, i promise 🫢


🌸 NAME 🌸

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


πŸŽ€ SYNOPSIS πŸŽ€

#include <shishi.h>

Shishi_key * shishi_priv_key(Shishi_priv * priv);

like. one include, one function, one little pointer going in, one little pointer coming out. slay ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi_priv * priv β€” the structure that holds all the info about the PRIV exchange πŸ’– she's the container, she's holding the receipts.

πŸ’œ DESCRIPTION πŸ’œ

Get the key from the PRIV exchange. that's it. that's the whole plot. she reaches into the PRIV exchange and hands you the key πŸ”‘

no cap, sometimes the simplest functions are the ones you end up calling at 2am. iykyk.


πŸ‘‘ RETURN VALUE πŸ‘‘

Returns the key used in the PRIV exchange. πŸ’«

BUT β€” and listen closely bestie, this part matters β€” she returns NULL if it's not yet set, or if an error occured 😭 so please, please, check your return value before you go dereferencing her. the way that NULL will humble you fr fr.


πŸ“ REPORTING BUGS πŸ“

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

they literally want to hear from you, no gatekeeping here 🫢


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. πŸ’– (yes bestie, she's free, she's open, she's generous, we love that for her.)


🌈 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. go read it, it's giving lore πŸ“šβœ¨


🌟 also quick vibe check: the whole PRIV exchange thing is very "trust the process" energy. get the key, check for NULL, move on. periodt. πŸ’…

that's the whole page bestie, you ate that πŸŽ€ this was brought to you by shishi 1.0.3 β€” thanks for reading, mwah πŸ’‹πŸ¦‹