From 29e55d64972fa094b7b55d432767f7d26726d034 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 6 Apr 2017 19:29:26 -0400 Subject: Shake bugs out of hal_rpc_pkey_export(). Among other things, it turns out that this works better if one remembers to write the RPC server dispatch code as well as the client code, doh. --- rpc_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpc_api.c') diff --git a/rpc_api.c b/rpc_api.c index 099ffcd..825afe6 100644 --- a/rpc_api.c +++ b/rpc_api.c @@ -75,7 +75,9 @@ static inline int check_pkey_flags(const hal_key_flags_t flags) return (flags &~ (HAL_KEY_FLAG_USAGE_DIGITALSIGNATURE | HAL_KEY_FLAG_USAGE_KEYENCIPHERMENT | HAL_KEY_FLAG_USAGE_DATAENCIPHERMENT | - HAL_KEY_FLAG_TOKEN)) == 0; + HAL_KEY_FLAG_TOKEN | + HAL_KEY_FLAG_PUBLIC | + HAL_KEY_FLAG_EXPORTABLE)) == 0; } static inline int check_pkey_type_curve_flags(const hal_key_type_t type, -- cgit v1.2.3