shishi_authenticator_clientrealm(3)
π shishi_authenticator_clientrealm β the girlies' guide π
okay bestie, welcome to the shishi manual, section 3. today we're talking about shishi_authenticator_clientrealm β yes that whole mouthful, i know, but say it with your chest. it's an API function, it's giving utility, it's giving "i extract principal names for a living." let's get into it. β¨
β¨ NAME β¨
shishi_authenticator_clientrealm β API function
no cap, that's the whole name section. short, sweet, iconic.
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_authenticator_clientrealm(Shishi * handle, Shishi_asn1
authenticator, char ** client, size_t * clientlen);
copy that exactly, bestie, do not freestyle the signature. π«Ά
πΈ ARGUMENTS πΈ
Shishi * handleβ the Shishi library handle, and you gotta make it withshishi_init()first. no handle, no service. πShishi_asn1 authenticatorβ the Authenticator variable you're pulling the client name and realm out of. this is the source of truth, the main character of the operation. πchar ** clientβ a pointer to a newly allocated zero terminated string holding the principal name and realm. lowkey flexible: it may beNULLif you only wanna populateclientlen. πsize_t * clientlenβ a pointer to the length ofclienton output, and heads up, that length does not include the terminating zero. also may beNULLif you only wanna populateclient. so basically these two are the duo, and either one can sit this one out. π
π DESCRIPTION π
so what does it actually do? it converts the cname and realm fields from the Authenticator into a printable principal name format. that's the glow-up: raw fields β pretty string. β¨
the string is allocated by this function, which means β listen closely β it is the responsibility of the caller to deallocate it. it's not gonna clean up after itself, bestie. that's your job. don't leave it hanging, that's not the vibe. π
and one more time for the people in the back: the output length clientlen does not include the terminating zero. say it with me. not included. periodt. π
β RETURN VALUE β
returns SHISHI_OK iff successful. that's the only success condition, no extra credit. β
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the devs:
- 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. slay, and legally so. π
π 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, this command:
info shishi
should give you access to the complete manual. go read it, it's giving lore. π
and that's the page, bestie. every flag, every field, every caveat β all accounted for. no detail left behind. π
sign-off time: this page is from shishi version 1.0.3, and it's the manual for shishi_authenticator_clientrealm(3). take care of that allocated string, and stay iconic. πβ¨π¦
π¦ 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