shishi_tkt_client(3)
π shishi_tkt_client(3) β the shishi manual, bestie edition π
okay so welcome to the shishi manual page for shishi_tkt_client, and yes this is section 3 because we're in library-call territory π pull up a chair, grab a snack, we're gonna get your client principal name out of a ticket and it's gonna be so clean.
β¨ NAME β¨
shishi_tkt_client β literally an API function, that's the whole name, she's simple and she's iconic π
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_tkt_client(Shishi_tkt * tkt, char ** client, size_t *
clientlen);
yes bestie, that's the whole vibe check right there. three arguments, one int coming back at you π«Ά
πΈ ARGUMENTS πΈ
Shishi_tkt * tktβ the input variable holding your ticket info. this is the ticket we're gonna peek inside, no cap πchar ** clientβ a pointer to a newly allocated, zero-terminated string that's gonna hold the principal name. and listen: it can beNULLif you only want to populateclientlen(yes, you can ghost this one and she won't be mad π).size_t * clientlenβ a pointer that gets the length ofclienton output, and excluding the terminating zero, okay?? also may beNULL(to only populateclient). so basically these two are a duo and either one can sit this one out π«
π DESCRIPTION π
So what does she actually do? She represents the client principal name in the Ticket KDC-REP as a zero-terminated string. Periodt.
The string is allocated by this function β so the memory is on you, babe. It is the responsibility of the caller to deallocate it. Don't forget, we don't leak in this house π
And a lil note that matters: the output length clientlen does not include the terminating zero. so if you're doing math with it, subtract accordingly, iykyk π§
β RETURN VALUE β
Returns SHISHI_OK iff successful. that's it, that's the whole personality. anything else and something went sideways π
π 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 wanna hear from you fr fr π«Ά
π 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. (iconic behavior honestly, slay β¨)
π 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, it's giving scholarly π
and that's the whole page bestie π this was shishi_tkt_client(3) from shishi version 1.0.3 β mwah, go deallocate that string, love you, bye πππ¦
π¦ 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