shishi_keys_from_keytab_file(3)
π shishi_keys_from_keytab_file β the manual page, but make it make sense π
okay bestie, so this is the page for shishi_keys_from_keytab_file(3) β it lives in the shishi manual (section 3, the library-call girlies), and it's literally just an API function. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
shishi_keys_from_keytab_file β it's an API function. that's the whole name section, she's lowkey mysterious but we love her.
πΈ SYNOPSIS πΈ
the way you pull this into your code:
#include <shishi.h>
int shishi_keys_from_keytab_file(Shishi * handle, const char * filename,
Shishi_keys ** outkeys);
periodt. three arguments, one int coming back at you. π
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). she's the main character, everything needs her.const char * filenameβ the name of the file you wanna read. yeah, just the file name. iconic.Shishi_keys ** outkeysβ a pointer to the key set that's gonna get allocated and populated for you. β οΈ heads up bestie: the caller has to deallocate it on success. it's yours now, you take care of it, no ghosting.
π¦ DESCRIPTION π¦
so what does she actually do? she creates a brand new key set, and fills it up with keys pulled from a MIT keytab data structure that she read from a file. like, a whole glow-up for your empty key set. β¨
now, the keytab format? proprietary, ngl. π but this function has your back β she supports the 0x0501 and 0x0502 formats. if you wanna know what's actually going on in there, go read the section The MIT Kerberos Keytab Binary File Format in the Shishi manual β it describes the whole reverse-engineered format. reverse engineering ate, fr fr. π₯
π RETURNS π
she gives back an int, and here's the vibe check:
SHISHI_IO_ERRORβ if the file cannot be read. π tragic, the file said no.SHISHI_KEYTAB_ERRORβ if the data cannot be parsed as a valid keytab structure. it's giving "this is not a keytab, bestie."SHISHI_OKβ on success. slay! π the good ending.
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
Report bugs 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/
they literally want to hear from you, no cap. π«Ά
π 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 basically: 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. iykyk β go read the full thing, it's the director's cut. ππ
and that's the page, bestie!! π source is shishi, version 1.0.3, and it's the shishi_keys_from_keytab_file(3) page β shoutout to the whole shishi fam, ily, go populate some key sets. π
π¦β
π¦ 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