Changeset View
Changeset View
Standalone View
Standalone View
crypto/heimdal/lib/krb5/rd_cred.c
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | if(auth_context->local_port && | ||||
/* 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 (enc_krb_cred_part.timestamp == NULL || | if (enc_krb_cred_part.timestamp == NULL || | ||||
enc_krb_cred_part.usec == NULL || | enc_krb_cred_part.usec == NULL || | ||||
abs(*enc_krb_cred_part.timestamp - sec) | labs(*enc_krb_cred_part.timestamp - sec) | ||||
> context->max_skew) { | > context->max_skew) { | ||||
krb5_clear_error_message (context); | krb5_clear_error_message (context); | ||||
ret = KRB5KRB_AP_ERR_SKEW; | ret = KRB5KRB_AP_ERR_SKEW; | ||||
goto out; | goto out; | ||||
} | } | ||||
} | } | ||||
if ((auth_context->flags & | if ((auth_context->flags & | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |