shishi_kdc_check_nonce(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_check_nonce β€” the nonce vibe check πŸ’–

ok so bestie, we're in section 3 of the shishi manual, and today's main character is shishi_kdc_check_nonce. it's an API function. it checks nonces. that's it, that's the plot. πŸŽ€


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_kdc_check_nonce(Shishi * handle, Shishi_asn1 kdcreq,
       Shishi_asn1 enckdcreppart);

🌸 ARGUMENTS 🌸

  • Shishi * handle β€” your Shishi handle, and it's gotta be the one you got from shishi_init(). no off-brand handles pls 🫢
  • Shishi_asn1 kdcreq β€” the request, of type KDC-REQ. the ask. the opening move. πŸ’…
  • Shishi_asn1 enckdcreppart β€” the encrypted KDC-REP part. the reply's lil locked-up section. πŸ”

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this actually does: it verifies that kdcreq.req-body.nonce and enckdcreppart.nonce contain matching values. like, do these two numbers agree with each other or not. that's the whole job. πŸ”

and lowkey this is important because it's one of the steps that has to be performed when you're processing an exchange of KDC-REQ and KDC-REP. not optional, not a vibe, it's a required step. periodt. πŸ‘‘


🌈 RETURN VALUE 🌈

here's the tea, and it's giving multiple outcomes:

  • SHISHI_OK β€” slay, it worked, the nonces match, everything's fine ✨
  • SHISHI_NONCE_MISMATCH β€” returned whenever the nonces are of differing lengths. and bestie, apparently that's usually a sign that a buggy server truncates the nonce to 4 bytes 😭 (yes, 4. four. a whole four bytes.)
  • SHISHI_NONCE_MISMATCH β€” also returned, same code, if the nonce values differ. different reason, same energy πŸ’€
  • or an error code otherwise. like, some other error. it happens. πŸ™ˆ

🧚 REPORTING BUGS 🧚

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


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 yes, you can share it, just keep the receipts πŸ’–)


⭐ 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. go read it, it's got lore πŸ“š


and that's the whole page, bestie!! this was the shishi_kdc_check_nonce(3) man page from shishi, version 1.0.3 β€” date energy, source energy, all of it. go check those nonces. mismatch is not the vibe. πŸ«ΆπŸ’œ