shishi_krberror_client(3)
π shishi_krberror_client β the manual page, but make it make sense π
okay bestie, so this is a page from the shishi manual, section 3 β aka the library-functions section, the land of #include and "please read the return value, I'm begging you". The star of the show today? shishi_krberror_client. It's giving "let me grab that client principal name for you" energy. β¨
πΈ NAME πΈ
shishi_krberror_client β it's an API function, babes. That's the whole vibe. π
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_krberror_client(Shishi * handle, Shishi_asn1 krberror, char
** client, size_t * clientlen);
like, four things go in, one int comes out. standard. π
β¨ ARGUMENTS β¨
okay so here's who's showing up to the function call:
Shishi * handleβ the shishi handle, and you gotta get it fromshishi_init(). no handcrafting, no vibes-based allocation. π«ΆShishi_asn1 krberrorβ the krberror, and this one comes fromshishi_krberror(). it knows what it is.char ** clientβ a pointer to a newly allocated zero-terminated string holding the principal name. and here's the cute part: it may beNULLβ in which case it just won't be filled, and you only populateclientleninstead. lowkey flexible. πsize_t * clientlenβ a pointer to the length ofclienton output, excluding the terminating zero. and guess what, this one may beNULLtoo β then you only populateclient. pick your fighter, you don't have to take both. β
π DESCRIPTION π
Return the client principal name in KRB-ERROR.
that's it. that's the whole function. it reaches into the KRB-ERROR and hands you the client principal name like a lil gift. no cap. π
π RETURN VALUE π
Returns SHISHI_OK iff successful. literally the only correct outcome, bestie. anything else and something's off. π
π REPORTING BUGS π
found a bug? (rude of it, honestly.) 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. (iconic of them, honestly β go forth and copy. π«Ά)
π 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 β that's where the real lore lives. π
and that's the whole page, bestie!! mwah π
this lil masterpiece is from shishi version 1.0.3, and it's the shishi_krberror_client(3) page β so go forth, populate your client and your clientlen, and slay. periodt. πβ¨π¦
π¦ 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