Rather than displaying the master key version twice, display the actual
authorRichard Basch <probe@mit.edu>
Tue, 24 Oct 1995 01:19:13 +0000 (01:19 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 24 Oct 1995 01:19:13 +0000 (01:19 +0000)
key version for the "Key version" field.  (It only displays the version
for the first key in the database.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6990 dc483132-0cff-0310-8789-dd5450dbe970

src/admin/edit/kdb5_edit.c

index 3d80a9c2bcfc03f782945110c4ee1f22c3d74322..9c7c202d00a0469a9b7ee7d31b5118446d0541bf 100644 (file)
@@ -1089,7 +1089,7 @@ void show_principal(argc, argv)
     }
 
     printf("Name: %s\n", pr_name);
-    printf("Key version: %d\n", entry.mkvno); 
+    printf("Key version: %d\n", entry.key_data[0].key_data_kvno); 
     printf("Maximum life: %s\n", strdur(entry.max_life));
     printf("Maximum renewable life: %s\n", strdur(entry.max_renewable_life));
     printf("Master key version: %d\n", entry.mkvno);