aboutsummaryrefslogtreecommitdiff
path: root/rpc_api.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-04-06 19:29:26 -0400
committerRob Austein <sra@hactrn.net>2017-04-06 19:29:26 -0400
commit29e55d64972fa094b7b55d432767f7d26726d034 (patch)
treed423e3294cc1b7e9bf264c174b621eb94cd7e17b /rpc_api.c
parent07f5d9d00f62c53ee28b28965e65f7ea9a05152e (diff)
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.
Diffstat (limited to 'rpc_api.c')
-rw-r--r--rpc_api.c4
1 files changed, 3 insertions, 1 deletions
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,