shishi_keys_to_keytab_mem(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_to_keytab_mem πŸ’–

okay bestie, welcome to the shishi section 3 manual, page shishi_keys_to_keytab_mem(3). this one is a whole little API function and she is serving, so grab a strawberry and let's get into it πŸ“βœ¨


🌸 NAME 🌸

shishi_keys_to_keytab_mem β€” literally just an API function, that's her whole job title πŸ’…


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_keys_to_keytab_mem(Shishi * handle, Shishi_keys * keys, char
** out, size_t * len);

no cap, that's the whole incantation. say it with your chest 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, bestie. you get one from shishi_init() and you do not just make one up, ok?
  • Shishi_keys * keys β€” the key set that's getting converted into keytab format. she's the main character of this whole operation πŸ‘‘
  • char ** out β€” a constant memory buffer holding the keytab, and it's len bytes big. yes, constant. hands off πŸ™ˆ
  • size_t * len β€” the size of that memory buffer with the keytab data in it. the receipts, the measurements, the vibe check πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she does is write keys into a MIT keytab data structure. that's it, that's the gig ✨

now here's the tea, and it's kind of important: the format of keytabs is proprietary. like, not public. not ours. and this function writes the 0x0502 format specifically β€” that's the one, no substitutions πŸ”₯

if you want the full lore, go read the section The MIT Kerberos Keytab Binary File Format in the Shishi manual, where the reverse-engineered format is described in all its unhinged glory. iykyk πŸ’€


🌈 RETURNS 🌈

  • on success? you get SHISHI_OK back. slay πŸ’–
  • otherwise you get an error code. not slay. 😭

⭐ SINCE ⭐

0.0.42 β€” she's been around a minute, an elder actually 🫢


πŸ’œ REPORTING BUGS πŸ’œ

found a bug? don't suffer in silence, tell the people:


Copyright Β© 2002-2022 Simon Josefsson.

and the license, verbatim, because we respect the paperwork: 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. periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

the full documentation for shishi is maintained as a Texinfo manual β€” the whole thing, all of it, not a summary. and 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. go off, read the docs, be informed 🌸


okay that's the whole page bestie, you ate that πŸŽ€ this was shishi version 1.0.3 talking about shishi_keys_to_keytab_mem(3), and honestly? iconic. bye pookie, go write some keytabs πŸ’–βœ¨πŸ¦‹