From b448b28f538517556f3d35dee81dbf07d433df60 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 14 Nov 2016 18:02:07 -0500 Subject: More API cleanup: remove hal_rpc_pkey_list(). hal_rpc_pkey_list() was a simplistic solution that worked when the keystore only supported a handful of keys and we needed a quick temporary solution in time for a workshop. It doesn't handle large numbers of keys well, and while we could fix that, all of its functionality is now available via more robust API functions, so simplifying the API by deleting it seems best. Since this change required mucking with dispatch vectors yet again, it converts them to use C99 "designated initializer" syntax. --- hal.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'hal.h') diff --git a/hal.h b/hal.h index 4e39133..df330ae 100644 --- a/hal.h +++ b/hal.h @@ -759,21 +759,6 @@ extern hal_error_t hal_rpc_pkey_verify(const hal_pkey_handle_t pkey, const uint8_t * const input, const size_t input_len, const uint8_t * const signature, const size_t signature_len); -typedef struct { - hal_key_type_t type; - hal_curve_name_t curve; - hal_key_flags_t flags; - hal_uuid_t name; - /* ... */ -} hal_pkey_info_t; - -extern hal_error_t hal_rpc_pkey_list(const hal_client_handle_t client, - const hal_session_handle_t session, - hal_pkey_info_t *result, - unsigned *result_len, - const unsigned result_max, - hal_key_flags_t flags); - typedef struct { uint32_t type; size_t length; -- cgit v1.2.3