(krb5_rd_rep): check if KRB5_AUTH_CONTEXT_DO_TIME set and use that as

a que that timestamp should be checked, DCE-STYLE gssapi needs to be
able to tweek this


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15491 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-17 07:47:16 +00:00
parent 6c9f4bfd65
commit 4372de7bb8

View File

@@ -90,11 +90,13 @@ krb5_rd_rep(krb5_context context,
if (ret)
return ret;
if ((*repl)->ctime != auth_context->authenticator->ctime ||
(*repl)->cusec != auth_context->authenticator->cusec) {
ret = KRB5KRB_AP_ERR_MUT_FAIL;
krb5_clear_error_string (context);
goto out;
if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
if ((*repl)->ctime != auth_context->authenticator->ctime ||
(*repl)->cusec != auth_context->authenticator->cusec) {
ret = KRB5KRB_AP_ERR_MUT_FAIL;
krb5_clear_error_string (context);
goto out;
}
}
if ((*repl)->seq_number)
krb5_auth_con_setremoteseqnumber(context, auth_context,