aboutsummaryrefslogtreecommitdiff
path: root/rpc_pkey.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-04-24 17:23:17 -0400
committerRob Austein <sra@hactrn.net>2017-04-24 17:23:17 -0400
commit4ee44177c6da04e210a52528763b2c96a8f3d824 (patch)
tree9b5522a53e961f56a9dc13bc00a54d40993851e3 /rpc_pkey.c
parentd008267960337e9e44b270b26555a7a894808746 (diff)
Call a portable entrenching tool a portable entrenching tool.
Diffstat (limited to 'rpc_pkey.c')
-rw-r--r--rpc_pkey.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/rpc_pkey.c b/rpc_pkey.c
index 0da2410..165419e 100644
--- a/rpc_pkey.c
+++ b/rpc_pkey.c
@@ -129,20 +129,18 @@ static inline hal_pkey_slot_t *find_handle(const hal_pkey_handle_t handle)
}
/*
- * Clean up key state associated with a client.
+ * Clean up key state associated with a client when logging out.
*/
-hal_error_t hal_pkey_client_cleanup(const hal_client_handle_t client)
+hal_error_t hal_pkey_logout(const hal_client_handle_t client)
{
if (client.handle == HAL_HANDLE_NONE)
return HAL_OK;
hal_error_t err;
- if ((err = hal_ks_client_cleanup(hal_ks_volatile_driver, client)) != HAL_OK)
- return err;
-
- if ((err = hal_ks_client_cleanup(hal_ks_flash_driver, client)) != HAL_OK)
+ if ((err = hal_ks_logout(hal_ks_volatile_driver, client)) != HAL_OK ||
+ (err = hal_ks_logout(hal_ks_flash_driver, client)) != HAL_OK)
return err;
hal_critical_section_start();