shishi_kdc_check_nonce(3)
π 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 fromshishi_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:
- 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/
π 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. (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. π«Άπ
π¦ 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