shishi_priv_parse(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_parse(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3, and today's main character is shishi_priv_parse. it's an API function and it's honestly so useful, no cap. let's get into it πŸ¦‹


✨ NAME ✨

shishi_priv_parse β€” API function


🌸 SYNOPSIS 🌸

#include <shishi.h>

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

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, bestie. the one you got from shishi_init().
  • FILE * fh β€” a file handle that's open for reading. read mode only, we're not writing anything here.
  • Shishi_asn1 * priv β€” an output variable that gets a newly allocated</> PRIV. yes, it's an output param, so it's gonna hand you back a fresh PRIV, slay.

πŸ’… DESCRIPTION πŸ’…

so basically: it reads ASCII armored DER encoded PRIV from the file, and then it populates the variable you gave it. that's the whole vibe. read the PRIV, fill in the variable, done. 🫢


πŸ”₯ RETURN VALUE πŸ”₯

it returns SHISHI_OK iff it was successful. and yes, "iff" means if and only if β€” no partial credit, it's giving all-or-nothing energy πŸ’€


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, tell the devs. report bugs to <bug-shishi@gnu.org>.


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.

periodt. keep the copyright notice, keep this notice, and you're golden ✨

🌈 SEE ALSO 🌈

the full documentation for shishi lives in a Texinfo manual. if the info and shishi programs are properly installed at your site, then this command:

info shishi

should give you access to the complete manual. iykyk πŸ“–πŸ’œ


and that's the whole page, bestie!! this one came from shishi, version 1.0.3, and it's the shishi_priv_parse(3) manual page β€” go read some ASCII armored DER encoded PRIV and have the best day ever πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’