Changeset View
Changeset View
Standalone View
Standalone View
crypto/heimdal/lib/krb5/rd_safe.c
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | goto failure; | ||||
/* 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 (safe.safe_body.timestamp == NULL || | if (safe.safe_body.timestamp == NULL || | ||||
safe.safe_body.usec == NULL || | safe.safe_body.usec == NULL || | ||||
abs(*safe.safe_body.timestamp - sec) > context->max_skew) { | labs(*safe.safe_body.timestamp - sec) > context->max_skew) { | ||||
ret = KRB5KRB_AP_ERR_SKEW; | ret = KRB5KRB_AP_ERR_SKEW; | ||||
krb5_clear_error_message (context); | krb5_clear_error_message (context); | ||||
goto failure; | goto failure; | ||||
} | } | ||||
} | } | ||||
/* XXX - check replay cache */ | /* XXX - check replay cache */ | ||||
/* check sequence number. since MIT krb5 cannot generate a sequence | /* check sequence number. since MIT krb5 cannot generate a sequence | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |