- code = gssEapVerify(krbContext, ctx->checksumType, 0,
+ /* For MIC tokens, the GSS header and checksum are in the same buffer.
+ * Fake up an RRC so that the checksum is expected in the header. */
+ rrc = (trailer != NULL) ? 0 : header->buffer.length - 16;
+ code = gssEapVerify(krbContext, ctx->checksumType, rrc,