diff options
author | Rob Austein <sra@hactrn.net> | 2016-12-23 17:40:30 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-12-23 17:40:30 -0500 |
commit | b6e02ef2971ebc1dbe67c7417376e3657c47aa13 (patch) | |
tree | 6c121303e0752689f733bbe3bd08cef0adcbcfb4 /projects | |
parent | 4d0b433281e1189d3d26d6aaf0cdc06705694882 (diff) |
Don't wrap key number in "keystore show keys".
Diffstat (limited to 'projects')
-rw-r--r-- | projects/hsm/mgmt-keystore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/projects/hsm/mgmt-keystore.c b/projects/hsm/mgmt-keystore.c index 6ee6cf3..d04099b 100644 --- a/projects/hsm/mgmt-keystore.c +++ b/projects/hsm/mgmt-keystore.c @@ -183,8 +183,9 @@ static int show_keys(struct cli_def *cli, const char *title, const hal_key_flags hal_key_type_t type; hal_error_t status; hal_uuid_t uuids[50]; - unsigned n; + int count = 0; int done = 0; + unsigned n; cli_print(cli, title); @@ -248,7 +249,7 @@ static int show_keys(struct cli_def *cli, const char *title, const hal_key_flags } cli_print(cli, "Key %2i, name %s, type %s, curve %s, flags 0x%lx", - i, key_name, type_name, curve_name, (unsigned long) flags); + count++, key_name, type_name, curve_name, (unsigned long) flags); } } |