shishi_tkt_server(3)
π shishi_tkt_server(3) π
okay bestie, welcome to the shishi manual, section 3 (that's the library-functions section, iykyk). today's main character is shishi_tkt_server, a whole API function, and she's here to hand you the server principal name out of a ticket. let's get into it π«Ά
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_tkt_server(Shishi_tkt * tkt, char ** server, size_t *
serverlen);
yeah she's a three-argument girlie. no cap. πΈ
π ARGUMENTS π
Shishi_tkt * tktβ your input variable, holding the ticket info. she's the source of the tea, fr fr.char ** serverβ a pointer to a newly allocated zero-terminated string containing the principal name. she may beNULLβ and if you do that, it's giving "only populateserverlen" energy. πsize_t * serverlenβ a pointer to the length of the server on output, and important: that length excludes the terminating zero. she may also beNULLβ in which case, only populateserver. pick your fighter. π¦
π DESCRIPTION π
so what she actually does: she represents the server principal name in the Ticket as a zero-terminated string. iconic behaviour honestly.
the string is allocated by this function, which means β and this is the part you cannot skip, bestie β it is the responsibility of the caller to deallocate it. that's you. you're the caller. you're the main character. you free it. π
also, quick reminder since we love a detail: the output length serverlen does not include the terminating zero. she said what she said. periodt.
β RETURN VALUE β
returns SHISHI_OK iff successful. that's the whole vibe check β SHISHI_OK means slay, anything else means we need to have a conversation. π
π REPORTING BUGS π
found a bug? not to be dramatic but report it 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. (that's the license, and it ate. no notes.) π
πΈ 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 go read it, bestie, the lore is deep. π§
and that's the page!! this was the shishi_tkt_server(3) man page from shishi 1.0.3, section 3, and honestly? she served. go free your strings and hydrate. π
β¨ππ
π¦ 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