From b1214089088d0321142f64abf2c820da9561bba9 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 9 Sep 2016 00:33:52 -0400 Subject: Simplify hal_rpc_pkey_find() by removing `type` argument. Now that key names are UUIDs generated by the HSM, there's no real need to specify type key type when looking up a key, and removing the `type` argument allows a few simplifications of both the internal keystore API and of client code calling the public RPC API. --- rpc_api.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rpc_api.c') diff --git a/rpc_api.c b/rpc_api.c index 2fe7e63..a8dc89d 100644 --- a/rpc_api.c +++ b/rpc_api.c @@ -230,13 +230,12 @@ hal_error_t hal_rpc_pkey_load(const hal_client_handle_t client, hal_error_t hal_rpc_pkey_find(const hal_client_handle_t client, const hal_session_handle_t session, hal_pkey_handle_t *pkey, - const hal_key_type_t type, const hal_uuid_t * const name, const hal_key_flags_t flags) { - if (pkey == NULL || name == NULL || !check_pkey_type(type)) + if (pkey == NULL || name == NULL) return HAL_ERROR_BAD_ARGUMENTS; - return hal_rpc_pkey_dispatch->find(client, session, pkey, type, name, flags); + return hal_rpc_pkey_dispatch->find(client, session, pkey, name, flags); } hal_error_t hal_rpc_pkey_generate_rsa(const hal_client_handle_t client, -- cgit v1.2.3