shishi_keys_from_keytab_mem(3)
π shishi_keys_from_keytab_mem β the manual page, but make it cute π
okay bestie, so this is a page from the shishi manual, and it's about shishi_keys_from_keytab_mem(3). it's an API function. yes, we're in the C library section, put your big-girl glasses on, we're doing this π
β¨ NAME β¨
shishi_keys_from_keytab_mem β it's an API function, periodt.
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_keys_from_keytab_mem(Shishi * handle, const char * data,
size_t len, Shishi_keys ** outkeys);
like, that's the whole vibe. include the header, call the thing, get keys. slay.
β¨ ARGUMENTS β¨
Shishi * handleβ the shishi handle, bestie. the one you got fromshishi_init(). you can't just show up with no handle, that's not the energy we're bringing today π«Άconst char * dataβ a constant memory buffer holding a keytab that'slenbytes big. it's just sitting there in memory, being all constant and unbothered β¨size_t lenβ the size of that memory buffer with the keytab data. count your bytes, girl, they matter.Shishi_keys ** outkeysβ a pointer to the key set that will get allocated and populated. heads up though: the caller has to deallocate it on success. it's giving "you break it, you buy it" but make it memory management π
β¨ DESCRIPTION β¨
so basically? you're creating a brand-new key set, and it's gonna be populated with keys from a MIT keytab data structure that's read out of a memory block. yes, from memory. not from a file. we're doing the memory thing today π
now here's the tea: the format of keytabs is proprietary. and this function supports the 0x0501 and 0x0502 formats. those are the two it rides for. if you want the full lore, go read the section The MIT Kerberos Keytab Binary File Format in the Shishi manual β it's a description of the reverse-engineered format, and honestly? iconic. reverse engineering a whole binary format? main character energy fr fr π§
β¨ RETURNS β¨
- it returns
SHISHI_KEYTAB_ERRORif the data does not represent a valid keytab structure. like, if it's not a keytab, it's not a keytab, no cap π - and it returns
SHISHI_OKon success. that's the one you want, bestie. chase thatSHISHI_OKπ
β¨ 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/
ngl, bugs are just features that haven't been peer-reviewed yet. but still, report them π
β¨ 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.
like, you can copy it, you can modify it, no royalty required β just keep the copyright notice and this notice. that's the whole deal, and it's a generous deal honestly π
β¨ 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. so if you're ever lost, girl, just run that and the whole manual opens up like a portal β¨
and that's the page, bestie π this was pulled from shishi version 1.0.3, for shishi_keys_from_keytab_mem(3). go forth, parse those keytabs, and deallocate your keyset on success, i'm literally begging you ππ«Ά
π¦ 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