aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/rcache
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2017-05-17 15:14:15 -0400
committerGreg Hudson <ghudson@mit.edu>2017-05-18 12:03:39 -0400
commitae25f6ec5558140a546db34fea389412d81c0631 (patch)
tree7dc6aaf0d10dfc407fae448a7554951e1979ccd7 /src/lib/krb5/rcache
parenta60db180211a383bd382afe729e9309acb8dcf53 (diff)
downloadkrb5-ae25f6ec5558140a546db34fea389412d81c0631.zip
krb5-ae25f6ec5558140a546db34fea389412d81c0631.tar.gz
krb5-ae25f6ec5558140a546db34fea389412d81c0631.tar.bz2
Use krb5_timestamp where appropriate
Where krb5_int32 is used to hold the number of seconds since the epoch, use krb5_timestamp instead.
Diffstat (limited to 'src/lib/krb5/rcache')
-rw-r--r--src/lib/krb5/rcache/rc_dfl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/krb5/rcache/rc_dfl.c b/src/lib/krb5/rcache/rc_dfl.c
index 33f3c14..1e0cb22 100644
--- a/src/lib/krb5/rcache/rc_dfl.c
+++ b/src/lib/krb5/rcache/rc_dfl.c
@@ -93,7 +93,7 @@ cmp(krb5_donot_replay *old, krb5_donot_replay *new1, krb5_deltat t)
}
static int
-alive(krb5_int32 mytime, krb5_donot_replay *new1, krb5_deltat t)
+alive(krb5_timestamp mytime, krb5_donot_replay *new1, krb5_deltat t)
{
if (mytime == 0)
return CMP_HOHUM; /* who cares? */
@@ -129,7 +129,7 @@ struct authlist
static int
rc_store(krb5_context context, krb5_rcache id, krb5_donot_replay *rep,
- krb5_int32 now, krb5_boolean fromfile)
+ krb5_timestamp now, krb5_boolean fromfile)
{
struct dfl_data *t = (struct dfl_data *)id->data;
unsigned int rephash;
@@ -536,7 +536,7 @@ krb5_rc_dfl_recover_locked(krb5_context context, krb5_rcache id)
krb5_error_code retval;
long max_size;
int expired_entries = 0;
- krb5_int32 now;
+ krb5_timestamp now;
if ((retval = krb5_rc_io_open(context, &t->d, t->name))) {
return retval;
@@ -706,7 +706,7 @@ krb5_rc_dfl_store(krb5_context context, krb5_rcache id, krb5_donot_replay *rep)
{
krb5_error_code ret;
struct dfl_data *t;
- krb5_int32 now;
+ krb5_timestamp now;
ret = krb5_timeofday(context, &now);
if (ret)
@@ -762,7 +762,7 @@ krb5_rc_dfl_expunge_locked(krb5_context context, krb5_rcache id)
struct authlist **qt;
struct authlist *r;
struct authlist *rt;
- krb5_int32 now;
+ krb5_timestamp now;
if (krb5_timestamp(context, &now))
now = 0;