Initialize key version numbers to be 1
authorTheodore Tso <tytso@mit.edu>
Thu, 15 Sep 1994 21:16:07 +0000 (21:16 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 15 Sep 1994 21:16:07 +0000 (21:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4253 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/convert/ChangeLog [new file with mode: 0644]
src/admin/convert/kdb5_convert.c

diff --git a/src/admin/convert/ChangeLog b/src/admin/convert/ChangeLog
new file mode 100644 (file)
index 0000000..8a9c2e3
--- /dev/null
@@ -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.
+
index cd7d199a05f41b21e36e6809efaf86ec5dba2208..66228779dae1b503d2d75e88ef2d24c491cbde7b 100644 (file)
@@ -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;