Create database with key version number of 1
authorTheodore Tso <tytso@mit.edu>
Thu, 15 Sep 1994 21:22:10 +0000 (21:22 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 15 Sep 1994 21:22:10 +0000 (21:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4254 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/create/ChangeLog [new file with mode: 0644]
src/tests/create/kdb5_mkdums.c

diff --git a/src/tests/create/ChangeLog b/src/tests/create/ChangeLog
new file mode 100644 (file)
index 0000000..0bedb8d
--- /dev/null
@@ -0,0 +1,5 @@
+Thu Sep 15 17:16:46 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * kdb5_mkdums.c (add_princ): Initialize key version number to be 1.
+
+
index 429d39ccafda28840696f3135079cbf033b2416f..f2bf5fc0f59e97cf28bf406d08182da27f6bf724 100644 (file)
@@ -53,7 +53,7 @@ struct mblock {
     KRB5_KDB_MAX_RLIFE,
     KRB5_KDB_EXPIRATION,
     KRB5_KDB_DEF_FLAGS,
-    0
+    1
 };
 
 int set_dbname_help PROTOTYPE((char *, char *));
@@ -280,7 +280,7 @@ OLDDECLARG(char *, str_newprinc)
     free(key.contents);
 
     newentry.principal = newprinc;
-    newentry.kvno = 0;
+    newentry.kvno = 1;
     newentry.max_life = mblock.max_life;
     newentry.max_renewable_life = mblock.max_rlife;
     newentry.mkvno = mblock.mkvno;