From 45061e2df746f597195b80376fc405b4538b5420 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 7 Oct 2016 20:23:45 -0400 Subject: Fix session handle arguments in RPC calls. RPC calls which pass a pkey handle don't need to pass a session handle, because the session handle is already in the HSM's pkey slot object; pkey RPC calls which don't pass a pkey argument do need to pass a session handle. This change percolates down to the keystore driver, because only the keystore driver knows whether that particular keystore cares about session handles. --- ks_flash.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ks_flash.c') diff --git a/ks_flash.c b/ks_flash.c index 5b3f718..b14fc6a 100644 --- a/ks_flash.c +++ b/ks_flash.c @@ -1043,6 +1043,7 @@ static hal_error_t ks_match(hal_ks_t *ks, hal_uuid_t *previous_uuid) { #warning NIY + return HAL_ERROR_IMPOSSIBLE; } static hal_error_t ks_set_attribute(hal_ks_t *ks, @@ -1052,6 +1053,7 @@ static hal_error_t ks_set_attribute(hal_ks_t *ks, const size_t value_len) { #warning NIY + return HAL_ERROR_IMPOSSIBLE; } static hal_error_t ks_get_attribute(hal_ks_t *ks, @@ -1062,6 +1064,7 @@ static hal_error_t ks_get_attribute(hal_ks_t *ks, const size_t value_max) { #warning NIY + return HAL_ERROR_IMPOSSIBLE; } static hal_error_t ks_delete_attribute(hal_ks_t *ks, @@ -1069,6 +1072,7 @@ static hal_error_t ks_delete_attribute(hal_ks_t *ks, const uint32_t type) { #warning NIY + return HAL_ERROR_IMPOSSIBLE; } const hal_ks_driver_t hal_ks_token_driver[1] = {{ -- cgit v1.2.3