Changeset View
Changeset View
Standalone View
Standalone View
crypto/heimdal/lib/krb5/rd_priv.c
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | goto failure_part; | ||||
/* check timestamp */ | /* check timestamp */ | ||||
if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { | if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { | ||||
krb5_timestamp sec; | krb5_timestamp sec; | ||||
krb5_timeofday (context, &sec); | krb5_timeofday (context, &sec); | ||||
if (part.timestamp == NULL || | if (part.timestamp == NULL || | ||||
part.usec == NULL || | part.usec == NULL || | ||||
abs(*part.timestamp - sec) > context->max_skew) { | labs(*part.timestamp - sec) > context->max_skew) { | ||||
krb5_clear_error_message (context); | krb5_clear_error_message (context); | ||||
ret = KRB5KRB_AP_ERR_SKEW; | ret = KRB5KRB_AP_ERR_SKEW; | ||||
goto failure_part; | goto failure_part; | ||||
} | } | ||||
} | } | ||||
/* XXX - check replay cache */ | /* XXX - check replay cache */ | ||||
Show All 37 Lines |