shishi_kdc_sendrecv_hint(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_kdc_sendrecv_hint πŸ’–

okay bestie, so this is a page from the shishi manual, section 3 β€” it's a library function, not a command you type in your shell, so no cap, you're calling this from C code. it's called shishi_kdc_sendrecv_hint and it's literally the "go talk to the KDC and come back with the tea" function. let's get into it 🫢


✨ NAME ✨

shishi_kdc_sendrecv_hint β€” it's an API function, periodt.


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_kdc_sendrecv_hint(Shishi * handle, const char * realm, const
char * indata, size_t inlen, char ** outdata, size_t * outlen,
Shishi_tkts_hint * hint);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the Shishi library handle, and you gotta make it with shishi_init() first, bestie, don't skip that step πŸ’…
  • const char * realm β€” a string holding the realm name.
  • const char * indata β€” the packet you're sending over to the KDC.
  • size_t inlen β€” how long indata is.
  • char ** outdata β€” a newly allocated string with the data that came back from the KDC. fresh out the oven ✨
  • size_t * outlen β€” how long outdata is.
  • Shishi_tkts_hint * hint β€” a Shishi_tkts_hint structure with flags in it.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does is: it sends a packet to the KDC for the realm, and receives the response back. that's the whole vibe. πŸ’–

and the way it hunts down KDC addresses? it's giving detective energy, in this exact order:

  1. it finds KDC addresses from the configuration file,
  2. then by querying for SRV records for the realm,
  3. and finally by just using the realm name as a hostname.

like, plan A, plan B, plan C. she's resourceful. πŸ‘‘


⭐ RETURNS ⭐

  • SHISHI_OK on success β€” we love a happy ending 😭
  • SHISHI_KDC_TIMEOUT if a timeout was reached β€” rip, she waited and nobody answered πŸ’€
  • or other errors.

πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report it to <bug-shishi@gnu.org>.


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.

(so like, keep the receipt, that's all she asks 🧾)


🌈 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, then this command:

info shishi

should give you access to the complete manual. iykyk πŸ“–βœ¨


and that's the whole page, bestie!! this was pulled from shishi version 1.0.3 β€” that's the source and version, so you know exactly which era of the manual you're reading. slay, go forth, send those packets πŸŽ€πŸ’œ