+Thu Apr 11 21:30:23 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * get_in_tkt.c (stash_as_reply, verify_as_reply): Move time offset
+ code from stash_as_reply to verify_as_reply, and fix it so
+ that it actually works.
+
Wed Apr 3 16:04:36 1996 Theodore Y. Ts'o <tytso@dcl>
* rd_req_dec.c (krb5_rd_req_decoded): Move code which
krb5_kdc_req *request;
krb5_kdc_rep *as_reply;
{
+ krb5_error_code retval;
+
/* check the contents for sanity: */
if (!as_reply->enc_part2->times.starttime)
as_reply->enc_part2->times.starttime =
)
return KRB5_KDCREP_MODIFIED;
- if ((request->from == 0) &&
- (labs(as_reply->enc_part2->times.starttime - time_now)
- > context->clockskew))
- return (KRB5_KDCREP_SKEW);
-
+ if (context->library_options & KRB5_LIBOPT_SYNC_KDCTIME) {
+ retval = krb5_set_real_time(context,
+ as_reply->enc_part2->times.authtime, 0);
+ if (retval)
+ return retval;
+ } else {
+ if ((request->from == 0) &&
+ (labs(as_reply->enc_part2->times.starttime - time_now)
+ > context->clockskew))
+ return (KRB5_KDCREP_SKEW);
+ }
return 0;
}
krb5_error_code retval;
krb5_data * packet;
- if (context->library_options & KRB5_LIBOPT_SYNC_KDCTIME)
- krb5_set_time_offsets(context,
- (as_reply->enc_part2->times.authtime -
- time_now),
- 0);
-
/* XXX issue warning if as_reply->enc_part2->key_exp is nearby */
/* fill in the credentials */