shishi_encticketpart_clientrealm(3)
β¨ shishi_encticketpart_clientrealm β¨
okay bestie, gather round, because this one is a GNU Shishi API function and it's literally here to turn your EncTicketPart's cname and realm fields into a cute lil' printable principal name π it's giving glow-up for raw ASN.1.
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_encticketpart_clientrealm(Shishi * handle, Shishi_asn1
encticketpart, char ** client, size_t * clientlen);
π ARGUMENTS π
Shishi * handleβ your Shishi library handle, the one you got fromshishi_init(). yes, that one. the main character.Shishi_asn1 encticketpartβ the EncTicketPart variable we're stealing the client name and realm out of. our source of truth.char ** clientβ a pointer to a freshly allocated, zero terminated string holding the principal name AND the realm together π«Ά. it's allowed to beNULLβ in which case we only populateclientlen, no cap.size_t * clientlenβ a pointer to the length ofclienton output, and not counting the terminating zero, bestie. it's also allowed to beNULLβ in which case we only populateclient. see the pattern? they're each other's backup π
π DESCRIPTION π
so basically: this function converts the cname and realm fields from an EncTicketPart into a printable principal name format β¨.
the string is allocated by this function, and β important, don't skip this β it is the responsibility of the caller to deallocate it. you allocated it, you free it, that's the vibe check π.
also, just so we're clear: the output length clientlen does not include the terminating zero. it's not invited to the party. periodt.
π RETURN VALUE π
Returns SHISHI_OK iff successful. that's it, that's the whole energy.
π¦ REPORTING BUGS π¦
found a bug? not me being dramatic but please tell the people: 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/
π 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, honestly, we love a permissive license πΈ
β 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, bestie, it ate π₯
and that's a wrap on the shishi_encticketpart_clientrealm page from shishi 1.0.3, manual section 3 π§ take care of those allocated strings, free your memory, and stay slay πππ¦
π¦ 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