shishi_priv_read(3)
π shishi_priv_read β the manual page, bestie edition π
okay so this is a page from the shishi manual (section 3, library functions, iykyk) and it's literally all about one lil function. let's get into it π«Ά
β¨ NAME β¨
shishi_priv_read β API function. that's it, that's the name, she's simple and she knows it π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_priv_read(Shishi * handle, FILE * fh, Shishi_asn1 * priv);
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). she's the main character, everything runs through her β¨FILE * fhβ a file handle that's open for reading. read mode only, bestie, don't get cute.Shishi_asn1 * privβ the output variable, and it's getting a newly allocated PRIV dropped into it. fresh out the box π
π¦ DESCRIPTION π¦
so basically: this function reads a DER encoded PRIV from a file, and then populates the variable you handed it. that's the whole vibe. read the thing, fill the thing. iconic behaviour honestly π
β RETURN VALUE β
returns SHISHI_OK iff it was successful. and yes we said iff, it's giving "if and only if" because we're precise in this house πβ¨
π REPORTING BUGS π
found a bug? don't just suffer in silence, bestie, report it π
- bugs go 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. so like, go forth, share the love, just keep the receipts π§Ύπ
π 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, this command:
info shishi
should give you access to the complete manual. go read it, it's a whole thing π§
mwah okay that's the page!! this was from shishi version 1.0.3, page shishi_priv_read(3) β stay DER-encoded, stay slaying πππ¦
π¦ 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