shishi_safe_read(3)
β¨ NAME β¨
shishi_safe_read β it's an API function bestie, that's the whole vibe π
Okay so real talk, this little cutie lives in the shishi manual, section 3, and its whole job is reading a SAFE off a file. Iconic.
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_safe_read(Shishi * handle, FILE * fh, Shishi_asn1 * safe);
π ARGUMENTS π
Shishi * handleβ the shishi handle, and no you can't just make one up, it's gotta be allocated byshishi_init(). That's its origin story fr.FILE * fhβ a file handle that's open for reading. Just reading. Don't get weird with it.Shishi_asn1 * safeβ an output variable that ends up holding a newly allocated SAFE. It's giving "surprise, here's your SAFE." π
π¦ DESCRIPTION π¦
So what it does is: read a DER encoded SAFE from the file, and populate the variable you handed it. That's it, that's the function. Simple, clean, slays. β¨
β RETURN VALUE β
Returns SHISHI_OK iff it was successful. If you see SHISHI_OK you ate. If you don'tβ¦ well. π
π REPORTING BUGS π
Found a bug? (not me manifesting one π) Report it 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 off, 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, the command
info shishi
should give you access to the complete manual. Iykyk, info is lowkey underrated.
Okay that's the whole page bestie!! This was shishi 1.0.3, from the shishi_safe_read(3) manual β mwah, go read some SAFEs, periodt ππ§π
π¦ 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