shishi_encticketpart_client(3)
β¨ shishi_encticketpart_client β¨
okay bestie, gather round, because we're cracking open a page from the shishi manual (section 3, the library-functions girlies π
) and it's literally called shishi_encticketpart_client. yes. that's the whole name. it's a lot. we're gonna get through it together π«Ά
πΈ NAME πΈ
shishi_encticketpart_client β it's an API function, bestie. that's the whole job description. iconic of her honestly π
π SYNOPSIS π
#include <shishi.h>
int shishi_encticketpart_client(Shishi * handle, Shishi_asn1
encticketpart, char ** client, size_t * clientlen);
that's the vibe. one include, one function call, four arguments, zero drama (okay a little drama, there's pointer-to-pointer in there π).
π¦ ARGUMENTS π¦
Shishi * handleβ your Shishi library handle, the one you made withshishi_init(). this is like... your whole Shishi situation. your girl. your home base πShishi_asn1 encticketpartβ the EncTicketPart variable you wanna pull the client name out of. it's the thing we're reading from, not writing to. hands off, we're just looking β¨char ** clientβ a pointer to a newly allocated zero-terminated string that's gonna hold the principal name. and listen β this one may beNULL, and if you do that, it only populatesclientleninstead. so you can ask for just the length if that's your thing. no judgment πsize_t * clientlenβ pointer to the length ofclienton output, and it does not include the terminating zero. also may beNULL, in which case it only populatesclient. so you got options, queen π
π DESCRIPTION π
so what does she do. she represents the client principal name inside an EncTicketPart as a zero-terminated string. that's it. that's the whole thing.
and now the part you actually need to remember, bestie, because this is the part that bites people:
the string is allocated by this function, and it is the responsibility of the caller to deallocate it. so like... you asked for the string, the string is yours now. you free it. no cap, if you leak it that's on you π
also note (and this is important, don't skip it): the output length clientlen does not include the terminating zero. so don't go off-by-one-ing yourself, babe π
β RETURN VALUE β
returns SHISHI_OK iff successful. that's it. that's the contract. if it's SHISHI_OK, you're slaying. if it isn't... it's not. π«Ά
π REPORTING BUGS π
found a bug? first of all, relatable. second of all, 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/
go forth and file, bestie. you're doing great π
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
and the licensing bit, which we keep exactly as stated: 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. periodt. π
π SEE ALSO π
the full documentation for shishi is maintained as a Texinfo manual. so if the info and shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. iykyk πβ¨
and that's the page, bestie!! that was shishi's shishi_encticketpart_client(3), version 1.0.3, straight from the shishi manual. go free your strings and stay hydrated ππ¦πΈπβ¨
π¦ 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