RFC 4556 requires the KDC to check the PKAuthenticator timestamp in
order to prevent replays after the five-minute clock skew window. (A
replay attack has minimal value; it only causes the KDC to issue a
ticket which an attacker cannot decrypt.)
[ghudson@mit.edu: rewrote commit message; squashed with typo fix;
style fixes]
ticket: 8123 (new)
goto cleanup;
}
+ retval = krb5_check_clockskew(context,
+ auth_pack->pkAuthenticator.ctime);
+ if (retval)
+ goto cleanup;
+
/* check dh parameters */
if (auth_pack->clientPublicValue != NULL) {
retval = server_check_dh(context, plgctx->cryptoctx,