[Cryptech-Commits] [sw/stm32] 01/02: hal_rpc_pkey_find() -> hal_rpc_pkey_open().

git at cryptech.is git at cryptech.is
Mon Nov 14 23:30:36 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 c6d3a52cffd3f4360f400286ceb0cdbf48f11f6a
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Nov 14 15:16:32 2016 -0500

    hal_rpc_pkey_find() -> hal_rpc_pkey_open().
---
 projects/cli-test/mgmt-keystore.c | 2 +-
 projects/hsm/mgmt-keystore.c      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/projects/cli-test/mgmt-keystore.c b/projects/cli-test/mgmt-keystore.c
index 3b36edb..1fb720b 100644
--- a/projects/cli-test/mgmt-keystore.c
+++ b/projects/cli-test/mgmt-keystore.c
@@ -198,7 +198,7 @@ static int cmd_keystore_delete_key(struct cli_def *cli, const char *command, cha
 	return CLI_ERROR;
     }
 
-    if ((status = hal_rpc_pkey_find(client, session, &pkey, &name, HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK ||
+    if ((status = hal_rpc_pkey_open(client, session, &pkey, &name, HAL_KEY_FLAG_TOKEN)) != LIBHAL_OK ||
 	(status = hal_rpc_pkey_delete(pkey)) != LIBHAL_OK) {
 	cli_print(cli, "Failed deleting key: %s", hal_error_string(status));
 	return CLI_ERROR;
diff --git a/projects/hsm/mgmt-keystore.c b/projects/hsm/mgmt-keystore.c
index 6f20fdd..9c1d427 100644
--- a/projects/hsm/mgmt-keystore.c
+++ b/projects/hsm/mgmt-keystore.c
@@ -156,10 +156,10 @@ static int cmd_keystore_delete_key(struct cli_def *cli, const char *command, cha
 	return CLI_ERROR;
     }
 
-    status = hal_rpc_pkey_find(client, session, &pkey, &name, HAL_KEY_FLAG_TOKEN);
+    status = hal_rpc_pkey_open(client, session, &pkey, &name, HAL_KEY_FLAG_TOKEN);
 
     if (status == HAL_ERROR_KEY_NOT_FOUND)
-	status = hal_rpc_pkey_find(client, session, &pkey, &name, 0);
+	status = hal_rpc_pkey_open(client, session, &pkey, &name, 0);
 
     if (status != LIBHAL_OK || (status = hal_rpc_pkey_delete(pkey)) != LIBHAL_OK) {
 	cli_print(cli, "Failed deleting key: %s", hal_error_string(status));



More information about the Commits mailing list