From: Theodore Tso Date: Thu, 15 Sep 1994 21:16:07 +0000 (+0000) Subject: Initialize key version numbers to be 1 X-Git-Tag: krb5-1.0-beta4.3~110 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5f959d0173d0af692a70c0cdec06ba3ad67f300;p=krb5.git Initialize key version numbers to be 1 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4253 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/convert/ChangeLog b/src/admin/convert/ChangeLog new file mode 100644 index 000000000..8a9c2e3f0 --- /dev/null +++ b/src/admin/convert/ChangeLog @@ -0,0 +1,5 @@ +Thu Sep 15 17:11:30 1994 Theodore Y. Ts'o (tytso@dcl) + + * kdb5_convert.c (add_principal, enter_in_v5_db): Make the key + version numbers entered into the database be 1. + diff --git a/src/admin/convert/kdb5_convert.c b/src/admin/convert/kdb5_convert.c index cd7d199a0..66228779d 100644 --- a/src/admin/convert/kdb5_convert.c +++ b/src/admin/convert/kdb5_convert.c @@ -516,7 +516,7 @@ Principal *princ; entry.kvno = princ->key_version; entry.max_life = princ->max_life * 60 * 5; entry.max_renewable_life = rblock.max_rlife; - entry.mkvno = 0; + entry.mkvno = 1; entry.expiration = princ->exp_date; entry.mod_date = princ->mod_date; entry.attributes = rblock.flags; /* XXX is there a way to convert @@ -576,10 +576,10 @@ struct realm_info *pblock; memset((char *) &entry, 0, sizeof(entry)); entry.principal = princ; - entry.kvno = 0; + entry.kvno = 1; entry.max_life = pblock->max_life; entry.max_renewable_life = pblock->max_rlife; - entry.mkvno = 0; + entry.mkvno = 1; entry.expiration = pblock->expiration; entry.mod_name = &db_create_princ;