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. --- rpc_hash.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rpc_hash.c') diff --git a/rpc_hash.c b/rpc_hash.c index 4b0f8c6..0811e81 100644 --- a/rpc_hash.c +++ b/rpc_hash.c @@ -303,12 +303,12 @@ static hal_error_t finalize(const hal_hash_handle_t handle, } const hal_rpc_hash_dispatch_t hal_rpc_local_hash_dispatch = { - get_digest_length, - get_digest_algorithm_id, - get_algorithm, - initialize, - update, - finalize + .get_digest_length = get_digest_length, + .get_digest_algorithm_id = get_digest_algorithm_id, + .get_algorithm = get_algorithm, + .initialize = initialize, + .update = update, + .finalize = finalize }; /* -- cgit v1.2.3