shishi_authenticator_client(3)
π shishi_authenticator_client β the manual page, but make it make sense β¨
okay bestie, so this one lives in the shishi section 3, and it's lowkey one of those little glue functions that does exactly one thing and does it slay. it's giving "get the client principal name out of an Authenticator" and honestly? that's the whole plot. π
πΈ NAME πΈ
shishi_authenticator_client β it's an API function, babes. that's it, that's the name. π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_authenticator_client(Shishi * handle, Shishi_asn1
authenticator, char ** client, size_t * clientlen);
periodt. four things go in, one int comes out. π«Ά
π¦ ARGUMENTS π¦
Shishi * handleβ the Shishi library handle, and you gotta make it withshishi_init(). no handle, no vibes. β¨Shishi_asn1 authenticatorβ the Authenticator variable you're pulling the client name out of. that's the whole mission, bestie.char ** clientβ a pointer to a newly allocated zero-terminated string holding the principal name. and listen β this one can beNULL, which is the move when you only wanna populateclientlen. flexible queen behavior. πsize_t * clientlenβ pointer to the length ofclienton output, and heads up: it does NOT include the terminating zero. also it can beNULLif you only wanna populateclient. so yes, both of them are nullable, iykyk. π§
π DESCRIPTION π
so basically: this function represents the client principal name inside the Authenticator as a zero-terminated string. cute, right?
and here's the part you cannot skip, bestie β the string is allocated by this function, which means the deallocation is your job. the caller's responsibility. nobody's gonna free it for you, that's not the vibe of this function. free your strings, queen. π
also one more time for the people in the back: the output length clientlen does not include the terminating zero. do not count the zero. the zero is not part of the length. we've all been there. π
β RETURN VALUE β
it returns SHISHI_OK iff successful. that's the good one. that's the one you want. β¨
π REPORTING BUGS π
found something cursed? 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 literally want to hear from you, don't be shy. π«Ά
π 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.
(the legal girlies ate with this one, ngl β free to share, just keep the receipts. π)
π 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 if you want the whole lore and not just this one function, that's the door to knock on. πͺβ¨
and that's the page, bestie. shishi_authenticator_client from the shishi manual, version 1.0.3 β go free your strings 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