[Cryptech-Commits] [sw/stm32] branch ksng updated: Don't wrap key number in "keystore show keys".
git at cryptech.is
git at cryptech.is
Fri Dec 23 22:46:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch ksng
in repository sw/stm32.
The following commit(s) were added to refs/heads/ksng by this push:
new b6e02ef Don't wrap key number in "keystore show keys".
b6e02ef is described below
commit b6e02ef2971ebc1dbe67c7417376e3657c47aa13
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Fri Dec 23 17:40:30 2016 -0500
Don't wrap key number in "keystore show keys".
---
projects/hsm/mgmt-keystore.c | 5 +++--
1 file 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);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list