update to new prototype of krb5_timeofday

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7857 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-06 05:20:51 +00:00
parent 21e02f2046
commit 209565763c
6 changed files with 18 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -131,7 +131,7 @@ _krb5_extract_ticket(krb5_context context,
krb5_principal tmp_principal; krb5_principal tmp_principal;
int tmp; int tmp;
time_t tmp_time; time_t tmp_time;
int32_t sec_now; krb5_timestamp sec_now;
/* compare client */ /* compare client */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -88,7 +88,7 @@ init_cred (krb5_context context,
krb5_error_code ret; krb5_error_code ret;
krb5_realm *client_realm; krb5_realm *client_realm;
int tmp; int tmp;
int32_t now; krb5_timestamp now;
krb5_timeofday (context, &now); krb5_timeofday (context, &now);
@@ -164,7 +164,7 @@ print_expire (krb5_context context,
{ {
int i; int i;
LastReq *lr = &rep->enc_part.last_req; LastReq *lr = &rep->enc_part.last_req;
int32_t sec; krb5_timestamp sec;
time_t t; time_t t;
krb5_timeofday (context, &sec); krb5_timeofday (context, &sec);

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 - 1999 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -122,7 +122,7 @@ krb5_rd_cred (krb5_context context,
/* check timestamp */ /* check timestamp */
if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
int32_t sec; krb5_timestamp sec;
krb5_timeofday (context, &sec); krb5_timeofday (context, &sec);

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -111,15 +111,15 @@ krb5_rd_priv(krb5_context context,
/* check timestamp */ /* check timestamp */
if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
int32_t 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) { abs(*part.timestamp - sec) > context->max_skew) {
ret = KRB5KRB_AP_ERR_SKEW; ret = KRB5KRB_AP_ERR_SKEW;
goto failure_part; goto failure_part;
} }
} }
/* XXX - check replay cache */ /* XXX - check replay cache */

View File

@@ -128,7 +128,7 @@ krb5_decrypt_ticket(krb5_context context,
return ret; return ret;
{ {
int32_t now; krb5_timestamp now;
time_t start = t.authtime; time_t start = t.authtime;
krb5_timeofday (context, &now); krb5_timeofday (context, &now);

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -131,7 +131,7 @@ krb5_rd_safe(krb5_context context,
/* check timestamp */ /* check timestamp */
if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
int32_t sec; krb5_timestamp sec;
krb5_timeofday (context, &sec); krb5_timeofday (context, &sec);