shishi_keys_add_keytab_mem(3)
π shishi_keys_add_keytab_mem π
okay bestie, welcome to the shishi manual, section 3, and today's main character is shishi_keys_add_keytab_mem(3). she's a lil API function and she's literally just here to slurp keys out of a memory buffer and drop them into your key set. no cap. π
β¨ NAME β¨
shishi_keys_add_keytab_mem β API function
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_keys_add_keytab_mem(Shishi * handle, const char * data,
size_t len, Shishi_keys * keys);
πΈ ARGUMENTS πΈ
Shishi * handleβ the shishi handle, bestie. the one you got fromshishi_init(). she's the whole vibe.const char * dataβ a constant memory buffer holding a keytab oflensize. it's giving "raw bytes, don't touch".size_t lenβ the size of that memory buffer with the keytab data. yes, the length. periodt.Shishi_keys * keysβ an allocated key set, and she's where the keys are gonna live. this is the destination, the home, the main character of the operation.
π DESCRIPTION π
So basically: this function reads keys from a MIT keytab data structure and adds them to the key set. that's it. that's the job. lowkey iconic. β¨
Now the tea: the format of keytabs is proprietary, and this function supports the 0x0501 and 0x0502 formats. only those two, okay? don't come at her with anything else.
If you wanna know how the format actually works under the hood, go read the section The MIT Kerberos Keytab Binary File Format in the Shishi manual β it's a whole description of the reverse-engineered format. iykyk. π΅οΈβοΈ
π«Ά RETURNS π«Ά
- Returns
SHISHI_KEYTAB_ERRORif the data does not represent a valid keytab structure. (basically: if it's not a keytab, she's gonna say so. π) - Returns
SHISHI_OKon success. slay. π
π REPORTING BUGS π
Found a bug? Not me manifesting that but okay β 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/
π 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.
fr fr, just keep the notice. that's the whole ask. π
π 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. go read it, bestie, it's good for you π
and that's the whole page, no notes. this was shishi version 1.0.3, and we out here on shishi_keys_add_keytab_mem(3). take care of her, she's doing her best. π
β¨π¦
π¦ 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