gss_krb5_verify_mic(9)
π gss_krb5_verify_mic β like, the Kernel API Manual (section 9) girlies know β¨
okay so bestie, gather round π«Ά this is gss_krb5_verify_mic, and she's a whole vibe β she's the verify_mic for the Kerberos GSS mechanism. no cap, that's literally her job description π
πΈ SYNOPSIS πΈ
u32 gss_krb5_verify_mic (struct gss_ctx *gctx , struct xdr_buf
*message_buffer , struct xdr_netobj *read_token );
like, look at her signature. she ate. π₯
π ARGUMENTS π
gctxβ the GSS context, aka the main character of this whole operation πmessage_bufferβ the plaintext you wanna check, fr frread_tokenβ the received checksum you're checking, iykyk π
π¦ DESCRIPTION π¦
okay so this function returns a status, and ngl the return values are the whole plot. here's the vibe check π:
GSS_S_COMPLETEβ slay!! π the computed checksum and the received checksum match. iconic behavior, no notes.GSS_S_DEFECTIVE_TOKENβ the received checksum is not valid π absolutely not, it's giving defective token energy, throw the whole thing away.GSS_S_BAD_SIGβ computed and received checksums do not match π they're beefing. it's not giving matched. it's giving BAD SIG.GSS_S_FAILUREβ the received checksum could not be checked π like she simply didn't get to do her job, we don't know why.GSS_S_CONTEXT_EXPIREDβ the Kerberos context is no longer valid π₯ rest in peace, context, you had a good run. your time is up, bestie.
β οΈ heads up boo: each of these statuses is a distinct outcome and they are NOT the same thing. matching =GSS_S_COMPLETE, mismatching =GSS_S_BAD_SIG, invalid token =GSS_S_DEFECTIVE_TOKEN, couldn't even check =GSS_S_FAILURE, context gone =GSS_S_CONTEXT_EXPIRED. memorize them or perish π
β¨ SEE ALSO β¨
- Kernel file
./net/sunrpc/auth_gss/gss_krb5_mech.cβ go read her source, she's gorgeous π gss_krb5_errno_to_status(9)gss_krb5_get_mic(9)gss_krb5_wrap(9)gss_krb5_unwrap(9)
basically the whole friend group π«Ά they're all linked, go say hi β
mwah π that's the whole page β courtesy of the source tree at ./net/sunrpc/auth_gss, dated October 2026, from your favorite Kernel API Manual π§β¨ bestie signing off, ily, go verify those MICs ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms