shishi_kdcrep_to_file(3)
β¨ shishi_kdcrep_to_file β¨
okay bestie, so this is a page from the shishi manual, section 3 β aka the library-functions section, aka where the C girlies live π
. The function we're obsessing over today is shishi_kdcrep_to_file, and yes it does exactly what it says on the tin. Let's get into it π«Ά
π NAME π
shishi_kdcrep_to_file β it's an API function, babes. That's the whole vibe.
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_kdcrep_to_file(Shishi * handle, Shishi_asn1 kdcrep, int
filetype, const char * filename);
literally just include the header and you're in π¦
π ARGUMENTS π
Shishi * handleβ the shishi handle, and no you can't just make one up, it has to be allocated byshishi_init(). That's the source of truth, periodt.Shishi_asn1 kdcrepβ the KDC-REP you wanna save. This is the main character of the whole operation ngl πint filetypeβ an input variable telling everyone what type of file you want written. Which types exist? Go look atShishi_filetype, bestie, that's where the list lives πconst char * filenameβ an input variable holding the filename you're writing to. That's it. That's the destination π
π§ DESCRIPTION π§
So what does it do? It writes the KDC-REP out to a file in the specified TYPE. That's the whole thing. Simple, clean, iconic β¨
β οΈ heads up though β the file will be truncated if it exists. Not "appended to", not "merged with", not "politely asked to make room". Truncated. Gone. So maybe don't point it at something precious ππ
β RETURN VALUE β
It returns SHISHI_OK if and only if it was successful. "Iff"! That's the math girlies' if and only if β no maybes, no vibes-based ambiguity. Anything that isn't SHISHI_OK means something went sideways π
π REPORTING BUGS π
Found a bug? Don't suffer in silence, bestie. 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, take it, share it, remix it, 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. slay π
okay that's the whole page!! every flag, every arg, every default β nothing skipped, nothing invented. you're welcome, go write some KDC-REPs π
this was shishi version 1.0.3, manual page shishi_kdcrep_to_file(3) β mwah, bye bestie πβ¨
π¦ 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