[Cryptech-Commits] [sw/stm32] 03/03: Track changes to libhal pkey API.
git at cryptech.is
git at cryptech.is
Sun Oct 16 20:23:16 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.
commit 002f019f8c6db7e3e8a2f1517de7693878f975be
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sun Oct 9 23:07:25 2016 -0400
Track changes to libhal pkey API.
---
projects/cli-test/mgmt-keystore.c | 4 +++-
projects/hsm/mgmt-keystore.c | 7 +++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/projects/cli-test/mgmt-keystore.c b/projects/cli-test/mgmt-keystore.c
index 83aa31a..3b36edb 100644
--- a/projects/cli-test/mgmt-keystore.c
+++ b/projects/cli-test/mgmt-keystore.c
@@ -236,9 +236,11 @@ static int cmd_keystore_show_keys(struct cli_def *cli, const char *command, char
hal_pkey_info_t keys[64];
unsigned n;
hal_error_t status;
+ hal_client_handle_t client = {HAL_HANDLE_NONE};
hal_session_handle_t session = {HAL_HANDLE_NONE};
- if ((status = hal_rpc_pkey_list(session, keys, &n, sizeof(keys)/sizeof(*keys), HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK) {
+ if ((status = hal_rpc_pkey_list(client, session, keys, &n, sizeof(keys)/sizeof(*keys),
+ HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK) {
cli_print(cli, "Could not fetch key info: %s", hal_error_string(status));
return CLI_ERROR;
}
diff --git a/projects/hsm/mgmt-keystore.c b/projects/hsm/mgmt-keystore.c
index 901b8dd..e9f27af 100644
--- a/projects/hsm/mgmt-keystore.c
+++ b/projects/hsm/mgmt-keystore.c
@@ -209,9 +209,11 @@ static int cmd_keystore_show_keys(struct cli_def *cli, const char *command, char
hal_pkey_info_t keys[64];
unsigned n;
hal_error_t status;
+ hal_client_handle_t client = {HAL_HANDLE_NONE};
hal_session_handle_t session = {HAL_HANDLE_NONE};
- if ((status = hal_rpc_pkey_list(session, keys, &n, sizeof(keys)/sizeof(*keys), 0)) != LIBHAL_OK) {
+ if ((status = hal_rpc_pkey_list(client, session, keys, &n, sizeof(keys)/sizeof(*keys),
+ 0)) != LIBHAL_OK) {
cli_print(cli, "Could not fetch memory key info: %s", hal_error_string(status));
return CLI_ERROR;
}
@@ -221,7 +223,8 @@ static int cmd_keystore_show_keys(struct cli_def *cli, const char *command, char
if (show_keys(cli, keys, n) != CLI_OK)
return CLI_ERROR;
- if ((status = hal_rpc_pkey_list(session, keys, &n, sizeof(keys)/sizeof(*keys), HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK) {
+ if ((status = hal_rpc_pkey_list(client, session, keys, &n, sizeof(keys)/sizeof(*keys),
+ HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK) {
cli_print(cli, "Could not fetch token key info: %s", hal_error_string(status));
return CLI_ERROR;
}
More information about the Commits
mailing list