shishi_kdcreq_server(3)
β¨ shishi_kdcreq_server β¨
okay bestie, gather round, because we're doing a shishi deep dive and this one is a lil library function called shishi_kdcreq_server π it lives in the shishi manual, section 3 (that's the library-call girlies, not the command-line ones) π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_kdcreq_server(Shishi * handle, Shishi_asn1 kdcreq, char **
server, size_t * serverlen);
like, yes, the signature wraps across two lines, that's just how it's written, we don't question it π
π¦ ARGUMENTS π¦
Shishi * handleβ the Shishi library handle, and you get one by callingshishi_init(). no handle, no vibes π«ΆShishi_asn1 kdcreqβ the KDC-REQ variable we're pulling the server name out of. it's giving "the source material" β¨char ** serverβ a pointer to a newly allocated, zero-terminated string holding the principal name. it can beNULL, but only if you literally just wantserverlenfilled in and nothing else πsize_t * serverlenβ pointer to the length ofserveron output, and heads up, that length excludes the terminating zero. it can also beNULL, in which case you're only populatingserverπ
π DESCRIPTION π
so what this does is represent the server principal name in the KDC-REQ as a zero-terminated string π
this function is the one that allocates that string, and β important, no cap β it is the responsibility of the caller to deallocate it. it's yours now, you own it, you free it π₯
and again, because it matters: the output length serverlen does not include the terminating zero. the zero is a lil ghost that doesn't get counted π
β RETURN VALUE β
returns SHISHI_OK iff successful. that's the whole thing. iff, bestie, iff π
π REPORTING BUGS π
found a bug? don't just scream into the group chat, 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. slay, honestly π
π§ 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 iconic β¨
and that's the whole page, bestie π this was shishi version 1.0.3, filed under shishi_kdcreq_server(3), mwah π«Ά
π¦ 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