shishi_aprep_read(3)
π shishi_aprep_read(3) β the shishi manual, section 3 β¨
okay bestie, gather round, because today we're reading a whole entire function together and it's gonna be so good π«Ά
πΈ NAME πΈ
shishi_aprep_read β it's an API function, babe. that's the whole vibe. π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_aprep_read(Shishi * handle, FILE * fh, Shishi_asn1 * aprep);
there it is. three arguments, one int coming back at you. iconic behavior fr fr π₯
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). it's literally the main character of this whole library, no cap πFILE * fhβ a file handle that's open for reading. yes bestie, open for reading, don't come at it with a write mode, that's not the assignment πShishi_asn1 * aprepβ this is an output variable, and it comes out holding a newly allocated AP-REP. so like, you hand it a pointer, it hands you back a whole freshly allocated AP-REP. slay π
π¦ DESCRIPTION π¦
so the way this works is: it reads a DER encoded AP-REP from the file, and then it populates the variable you gave it. that's it. that's the function. read the thing, fill the thing, done. lowkey elegant honestly π
β RETURN VALUE β
it returns SHISHI_OK iff successful. and yes we said iff, meaning if and only if, so if you got SHISHI_OK you ATE, and if you didn'tβ¦ well. π
π REPORTING BUGS π
found a bug? don't just scream into the group chat, actually report it to <bug-shishi@gnu.org>. that's the move, bestie π«Ά
- 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: you can copy and share this freely, just keep the copyright notice and this notice with it. be a good citizen about it π)
π 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, then this command:
info shishi
should give you access to the complete manual. go read it, it's giving knowledge πβ¨
and that's the whole page, bestie!! you understood every single word of it, I'm so proud, genuinely π
this was shishi 1.0.3, dated the shishi shishi_aprep_read(3) era β mwah, bye, go read some DER ππ§
π¦ 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