shishi_tkt_initial_p(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ shishi_tkt_initial_p ✨

okay bestie, gather round πŸ’– this is a page from the shishi manual, section 3 β€” and today's main character is shishi_tkt_initial_p, an API function that's literally just here to answer one (1) very specific question for you. no cap.


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_tkt_initial_p(Shishi_tkt * tkt);

like, that's the whole thing. short king energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi_tkt * tkt β€” your input variable with ticket info in it. that's the tea you're handing over for inspection πŸ“

πŸ’… DESCRIPTION πŸ’…

so what does it actually do? it figures out whether the ticket was issued using the AS exchange. periodt.

now let's talk about the INITIAL flag, because this is the part that matters and it's giving very much "important lore" πŸ”₯

the INITIAL flag says that a ticket was issued using the AS protocol, rather than issued based on a ticket-granting ticket. two very different origin stories, bestie 🌈

and why do we care?? because application servers that want to require the demonstrated knowledge of a client's secret key β€” think, like, a password-changing program as the classic example β€” can insist that this flag be set in any tickets they accept. and by doing that, they get to be assured that the client's key was recently presented to the application client. so it's not just a vibe check, it's an actual security vibe check 🫢


⭐ RETURN VALUE ⭐

returns non-0 iff the initial flag is set in the ticket. so:

  • non-0 β†’ yep, flag's set, it's initial πŸ’–
  • 0 β†’ nope, not initial πŸ™ˆ

😭 REPORTING BUGS 😭

found a bug? don't be shy, tell the shishi girlies:


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 behaviour fr fr πŸ’œ


πŸ¦‹ 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 ✨


so yeah, that's the whole page β€” shishi_tkt_initial_p, section 3, from shishi version 1.0.3. go off, check your flags, stay initial πŸ’…πŸŽ€πŸ¦‹

slay πŸ’–