shishi_kdcreq_client(3)
π shishi_kdcreq_client(3) π
okay bestie, welcome to the shishi manual, section 3. yes we're in the library pages now, it's giving very "i read header files for fun" energy and honestly? iconic. this one's about shishi_kdcreq_client and it's a little API function that pulls a client principal name out of a KDC-REQ. let's go π¦
β¨ NAME β¨
shishi_kdcreq_client β an API function, fr fr
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_kdcreq_client(Shishi * handle, Shishi_asn1 kdcreq, char **
client, size_t * clientlen);
π ARGUMENTS π
Shishi * handleβ the Shishi library handle, which you make withshishi_init(). she's the main character, everything runs through her πShishi_asn1 kdcreqβ the KDC-REQ variable you want the client name from. yes we're getting it out of there. slay.char ** clientβ a pointer to a newly allocated zero-terminated string holding the principal name. lowkey flexible: this may beNULLif you only wanna populateclientlen. no cap.size_t * clientlenβ pointer to the length ofclienton output, and note that this does not count the terminating zero. also may beNULLif you only wanna populateclient. pick your fighter π«Ά
π DESCRIPTION π
so basically: represent the client principal name in KDC-REQ as a zero-terminated string. that's the vibe. β¨
the string is allocated by this function, and β listen carefully bestie β it is the responsibility of the caller to deallocate it. not me, not shishi, not the universe. you. π
also, clientlen output does not include the terminating zero. the way that zero is just out here living its life uncounted... anyway.
π₯ RETURN VALUE π₯
Returns SHISHI_OK iff successful. that's it, that's the whole condition. if it's not SHISHI_OK, it was not, in fact, successful π
π REPORTING BUGS π
found a bug? report it to <bug-shishi@gnu.org>. GNU Shishi home page: http://www.gnu.org/software/shishi/ β general help using GNU software lives at http://www.gnu.org/gethelp/. go tell them, they wanna know π
π 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, bestie, it's very generous, we love that for us π)
π 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. iykyk πβ¨
and that's the whole page, bestie!! this one shipped as part of shishi 1.0.3, and the manual page is shishi_kdcreq_client(3) β go forth and deallocate your strings, i believe in you π§π
π¦ 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