diff options
author | Rob Austein <sra@hactrn.net> | 2016-11-01 19:47:50 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-11-01 19:47:50 -0400 |
commit | d844d764a4f0614bf378331b007467de288f74eb (patch) | |
tree | 57b8645d338f1549d2b06c4bc3b22c0a6ef950bc /rpc_api.c | |
parent | d3301ac269431c5aa45061abdb2d4400793b1eee (diff) |
Add hal_rpc_pkey_get_key_curve().
Incidental minor refactoring of hal_rpc_server_dispatch().
Diffstat (limited to 'rpc_api.c')
-rw-r--r-- | rpc_api.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) { |