shishi_priv_parse(3)
π 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 fromshishi_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>.
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
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 πβ¨ππ¦πΈπ
π¦ 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