shishi_kdcreq_till(3)
π shishi_kdcreq_till β the manual page, bestie edition π
okay so real quick, this is a page from the shishi manual (section 3, the library-functions girlies), and it's all about one lil function that snatches the "till" / endtime field out of a KDC-REQ. let's get into it π¦
β¨ NAME β¨
shishi_kdcreq_till β it's an API function, periodt. π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_kdcreq_till(Shishi * handle, Shishi_asn1 kdcreq, char **
till, size_t * tilllen);
look at her. four arguments. she's serving signature realness π
β¨ ARGUMENTS β¨
Shishi * handleβ the Shishi library handle you got fromshishi_init(). like, you literally cannot do anything without her. she's the main character. πShishi_asn1 kdcreqβ the KDC-REQ variable we're pulling the endtime out of. this is the thing we're snooping through, respectfully. πchar ** tillβ a pointer to a freshly allocated, null-terminated string holding the"till"field as a generalized time. and no cap, you can pass this asNULLif you only wanna populatetilllen. lowkey efficient of you. β¨size_t * tilllenβ pointer to the length oftillfor output, and it does not count the terminating null. also if you set this one toNULL, then onlytillgets populated. pick your fighter, bestie π«Ά
β¨ DESCRIPTION β¨
so what she does is: get the "till" field β aka the "endtime" β in the KDC-REQ, and hand it back to you as a null-terminated string. π
the string is typically 15 characters long and it is allocated by this function. so heads up: it is your responsibility as the caller to deallocate it. don't leave her hanging, free your girl π
also important, don't skip this: the output length tilllen does not include the terminating zero. okay? okay. π§
β¨ RETURN VALUE β¨
returns SHISHI_OK iff successful. that's the vibe check. if it's SHISHI_OK, we ate. π₯
β¨ REPORTING BUGS β¨
found a bug? don't be shy, tell the devs! 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, fr fr π
β¨ 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, generous, we love to see it π
β¨ 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, this command
info shishi
should give you access to the complete manual. go read her, she's worth it πβ¨
and that's the whole page, bestie!! π this was from the shishi manual, version 1.0.3, and yeah the page is literally called shishi_kdcreq_till(3). now go free that string you allocated. i'm so serious. ππ¦π
π¦ 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