aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-10-07 20:29:06 -0400
committerRob Austein <sra@hactrn.net>2016-10-07 20:29:06 -0400
commiteaaf1074fc7e84d7b33b7c130e865bb668a70356 (patch)
tree4a88f1c6c4b98ea05f731f0ebb3d87968755efb0
parentd5f67d098f78db2473df9e877bb2f3781babcfac (diff)
Track changes to libhal RPC pkey API.
-rw-r--r--projects/cli-test/mgmt-keystore.c3
-rw-r--r--projects/hsm/mgmt-keystore.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/projects/cli-test/mgmt-keystore.c b/projects/cli-test/mgmt-keystore.c
index ec2c96a..83aa31a 100644
--- a/projects/cli-test/mgmt-keystore.c
+++ b/projects/cli-test/mgmt-keystore.c
@@ -236,8 +236,9 @@ 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_session_handle_t session = {HAL_HANDLE_NONE};
- if ((status = hal_rpc_pkey_list(keys, &n, sizeof(keys)/sizeof(*keys), HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK) {
+ if ((status = hal_rpc_pkey_list(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 4c1029a..901b8dd 100644
--- a/projects/hsm/mgmt-keystore.c
+++ b/projects/hsm/mgmt-keystore.c
@@ -209,8 +209,9 @@ 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_session_handle_t session = {HAL_HANDLE_NONE};
- if ((status = hal_rpc_pkey_list(keys, &n, sizeof(keys)/sizeof(*keys), 0)) != LIBHAL_OK) {
+ if ((status = hal_rpc_pkey_list(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;
}
@@ -220,7 +221,7 @@ 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(keys, &n, sizeof(keys)/sizeof(*keys), HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK) {
+ if ((status = hal_rpc_pkey_list(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;
}