shishi_keys_add_keytab_file(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_keys_add_keytab_file(3) πŸ’–

okay bestie, welcome to the shishi manual β€” this page lives in section 3, it's a lil API function, and it's here to help you slurp keys out of a keytab file and yeet them into a key set. no cap. let's go ✨


🌸 NAME 🌸

shishi_keys_add_keytab_file β€” literally just an API function, that's the whole name, she's lowkey mysterious like that πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

int shishi_keys_add_keytab_file(Shishi * handle, const char * filename,
Shishi_keys * keys);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). she's the main character here, everything runs through her ✨
  • const char * filename β€” the name of the file you wanna read. yes, the actual filename, go off πŸ—‚οΈ
  • Shishi_keys * keys β€” an already-allocated key set, aka the lil basket where the keys are gonna get stored. she's pre-made, don't forget to allocate her first 🧺

🌈 DESCRIPTION 🌈

so basically? you read keys out of a MIT keytab data structure sitting in a file, and then you add those keys into the key set. that's it. that's the whole vibe. 🫢

the tea on keytab formats: the format is proprietary 😭 but this function supports the 0x0501 and 0x0502 formats, so you're covered for those two. if you wanna know how the reverse-engineered format actually works, go read the section The MIT Kerberos Keytab Binary File Format in the Shishi manual. it's giving detective work, iykyk πŸ”


⭐ RETURNS ⭐

  • returns SHISHI_IO_ERROR if the file cannot be read 😭 (like, the file said "not today")
  • returns SHISHI_KEYTAB_ERROR if the data cannot be parsed as a valid keytab structure πŸ’€ (she's not shaped like a keytab, bestie)
  • and SHISHI_OK on success πŸ‘‘ periodt

πŸ› REPORTING BUGS πŸ›

found a bug? do NOT suffer in silence, tell the people fr fr. report bugs to <bug-shishi@gnu.org>.


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. slay, that's a very chill license ngl 🌸


πŸ‘‘ 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. iconic behavior, honestly πŸŽ€


and that's the whole page, bestie!! this was shishi_keys_add_keytab_file(3) from the shishi manual, version 1.0.3. mwah, go read some keytabs πŸ’…βœ¨πŸ’–