From d844d764a4f0614bf378331b007467de288f74eb Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 1 Nov 2016 19:47:50 -0400 Subject: Add hal_rpc_pkey_get_key_curve(). Incidental minor refactoring of hal_rpc_server_dispatch(). --- rpc_api.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rpc_api.c') diff --git a/rpc_api.c b/rpc_api.c index 28bc73e..d337eeb 100644 --- a/rpc_api.c +++ b/rpc_api.c @@ -283,6 +283,14 @@ hal_error_t hal_rpc_pkey_get_key_type(const hal_pkey_handle_t pkey, return hal_rpc_pkey_dispatch->get_key_type(pkey, type); } +hal_error_t hal_rpc_pkey_get_key_curve(const hal_pkey_handle_t pkey, + hal_curve_name_t *curve) +{ + if (curve == NULL) + return HAL_ERROR_BAD_ARGUMENTS; + return hal_rpc_pkey_dispatch->get_key_curve(pkey, curve); +} + hal_error_t hal_rpc_pkey_get_key_flags(const hal_pkey_handle_t pkey, hal_key_flags_t *flags) { -- cgit v1.2.3