Add kvno for all keys to kadmin's get command's output
authorNicolas Williams <nico@cryptonector.com>
Tue, 20 Sep 2011 21:28:59 +0000 (16:28 -0500)
committerLove Hornquist Astrand <lha@h5l.org>
Thu, 22 Sep 2011 13:13:27 +0000 (15:13 +0200)
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
kadmin/get.c

index 466a8d88b3f66268a99560a0f7adf9f4cb77ab86..6c2bc78d0f40b7e19784d53a10423982db2580aa 100644 (file)
@@ -154,8 +154,11 @@ format_keytype(krb5_key_data *k, krb5_salt *def_salt, char *buf, size_t buf_len)
                  (char *)k->key_data_contents[1]);
     strlcat(buf, s, buf_len);
     free(s);
-
+    asprintf (&s, "[%d]", k->key_data_kvno);
     strlcat(buf, ")", buf_len);
+
+    strlcat(buf, s, buf_len);
+    free(s);
 }
 
 static void