From: Tom Yu Date: Mon, 9 Oct 2000 23:23:37 +0000 (+0000) Subject: * kinit.c (k4_kinit): Call time_to_life() X-Git-Tag: krb5-1.3-alpha1~1849 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2263c71c10fd52ce4f1b56d722f94b2edba0c195;p=krb5.git * kinit.c (k4_kinit): Call time_to_life() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12745 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog index 129cace91..ffb8d961d 100644 --- a/src/clients/kinit/ChangeLog +++ b/src/clients/kinit/ChangeLog @@ -1,3 +1,7 @@ +2000-10-09 Tom Yu + + * kinit.c (k4_kinit): Call time_to_life(). + 2000-10-03 Ezra Peisach * kinit.c: Include krb524.h if suport desired. Clean up diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 3ca2de29b..1a60d41d3 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -895,11 +895,7 @@ k4_kinit(opts, k4, ctx) if (!k4->lifetime) k4->lifetime = KRB4_BACKUP_DEFAULT_LIFE_SECS; - k4->lifetime /= (5 * 60); - if (k4->lifetime < 1) - k4->lifetime = 1; - if (k4->lifetime > 255) - k4->lifetime = 255; + k4->lifetime = krb_time_to_life(0, k4->lifetime); switch (opts->action) {