shishi_kdcreq_forwarded_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_kdcreq_forwarded_p(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3 (that's the library functions girlies ✨). this one's a little baby function that just peeks at one single flag and tells you if it's on. tiny. adorable. let's get into it πŸŽ€


✨ NAME ✨

shishi_kdcreq_forwarded_p β€” it's an API function, and it's here to answer one yes/no question for you πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_kdcreq_forwarded_p(Shishi * handle, Shishi_asn1 kdcreq);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” the shishi handle, and like, it has to be the one you got from shishi_init(). no random handles, no homemade ones, that's not the vibe πŸ™ˆ
  • Shishi_asn1 kdcreq β€” the KDC-REQ variable we're pulling the kdc-options field out of. that's the whole assignment bestie, that's the mission 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so basically: this function determines whether the KDC-Option forwarded flag is set. yes/no. slay or not slay. that's it πŸ’–

now the lore, because it matters:

the FORWARDED option is only specified in a request to the ticket-granting server, and it will only be honored if the ticket-granting ticket in the request has its FORWARDABLE bit set. both conditions, no skipping, it's giving very strict βœ‹

what does this option actually mean tho? it indicates that this is a request for forwarding 🧚 and the address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. so the addresses field is doing the heavy lifting there, don't sleep on it ✨


⭐ RETURN VALUE ⭐

returns non-0 iff the forwarded flag is set in KDC-REQ. non-zero = yes bestie, zero = nope 🌈

ngl, note that "non-0" β€” not necessarily 1. don't go comparing it to 1 in your code, just check truthiness, iykyk πŸ’€

😭 REPORTING BUGS 😭

found a bug? tell the people, don't suffer in silence 🫢


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 behavior honestly πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

the full documentation for shishi is maintained as a Texinfo manual β€” yes it's a whole manual, not just this little page. 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, it's giving encyclopedia energy πŸ“šβœ¨


and that's the whole page!! this was shishi version 1.0.3, from the shishi 1.0.3 era, brought to you by the shishi_kdcreq_forwarded_p(3) girlies πŸ’…βœ¨ no cap, hope your forwarded flag is exactly what you wanted it to be. bye bestie, drink water πŸ“πŸ’–