shishi_ticket_server(3)
β¨ shishi_ticket_server β¨
okay bestie, welcome to shishi_ticket_server(3) β it's a lil API function from the shishi manual (section 3, library calls, you know the vibe π
) and it's here to pull a server principal name out of a Ticket. very demure, very mindful, let's get into it π
πΈ NAME πΈ
shishi_ticket_server β an API function, periodt. that's the whole name, no notes π
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_ticket_server(Shishi * handle, Shishi_asn1 ticket, char **
server, size_t * serverlen);
literally just copy that into your file and you're so back π«Ά
π ARGUMENTS π
Shishi * handleβ the Shishi library handle, and you get it fromshishi_init(). it's the main character of your whole session, no cap πShishi_asn1 ticketβ the ASN.1 Ticket variable you're stealing the server name out of. the source of truth, the blueprint, the moment π₯char ** serverβ a pointer to a newly allocated zero-terminated string holding the principal name. and listen, you can passNULLhere if you only want to populateserverlenβ it's giving "I only need the length bestie" πsize_t * serverlenβ pointer to the length ofserveron output, and that length does not include the terminating zero. also can beNULL(so you only populateserver). the duality, the flexibility, we love to see it π
π DESCRIPTION π
so basically: this function represents the server principal name in Ticket as a zero-terminated string. slay β¨
the string is allocated by this function, which means β and I need you to hear me on this β it is the caller's responsibility to deallocate it. that's your job, not shishi's. free it. don't leak it. leaking is not the vibe π
also important, tiny detail but it matters: the output length serverlen does not include the terminating zero. like, it's the length of the actual content, not content-plus-null. noted π
π RETURN VALUE π
returns SHISHI_OK iff successful. that's it. that's the whole condition. iff. successful. iconic β
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, 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 tell them, they wanna know π«Ά
π 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. like, go off, redistribute responsibly, no royalty required π
π 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're nosy (respectfully), that's where the deep lore lives π§
and that's the whole page, bestie!! π this was shishi version 1.0.3, page shishi_ticket_server(3). mwah, go free your strings, stay hydrated, and don't forget the terminating zero is never in serverlen π
β¨π¦
π¦ 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