shishi_safe_parse(3)
π shishi_safe_parse(3) β the shishi girlies' guide π
okay so bestie, welcome to the shishi manual, section 3 (that's the library-functions girlies, we're not a command, we're a vibe). this page is all about shishi_safe_parse, and honestly? it's giving "small function, big responsibility". let's get into it π«Ά
β¨ NAME β¨
shishi_safe_parse β it's an API function, periodt. that's the whole name tag, no notes π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_safe_parse(Shishi * handle, FILE * fh, Shishi_asn1 * safe);
yeah she takes three args and gives you back an int. simple. iconic. no cap π
π ARGUMENTS π
Shishi * handleβ this is your shishi handle, and you gotta have it allocated byshishi_init()first, okay? no handle, no service. she's the main character here fr fr.FILE * fhβ a file handle that's open for reading. so like, don't hand her a file you opened for writing, that's not the vibe πShishi_asn1 * safeβ this one's the output variable, and it comes back holding a newly allocated SAFE. it's a pointer, so she's writing into your thing. she's a giver, lowkey π
π¦ DESCRIPTION π¦
okay so here's the tea: this function reads an ASCII armored, DER encoded SAFE from a file, and then populates the variable you gave it. that's it. that's the whole job. she reads, she fills in, she slays β¨
(it's a safe, bestie β the file format. she's parsing it out of ASCII armor like unwrapping a little present π)
π« RETURN VALUE π«
she returns SHISHI_OK iff successful. and yes, that's a fancy way of saying "only if it worked, bestie". anything else means something went sideways and you should probably check on her π
π REPORTING BUGS π
found a bug? do NOT gatekeep it. report bugs to <bug-shishi@gnu.org>. they literally want to hear from you.
- 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. (translation: share it, remix it, just keep the receipts β the copyright notice and this notice β attached. that's the whole deal, no strings, no royalty, iconic behaviour π)
π₯ 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. iykyk πβ¨
okay that's the whole page bestie!! you just read shishi version 1.0.3, page shishi_safe_parse(3). go forth, parse your SAFEs, and remember: ASCII armored DER encoded files are just data in a cute little outfit ππ mwah, bye!! π¦πΈ
π¦ 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