aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-14 02:59:32 -0400
committerRob Austein <sra@hactrn.net>2016-05-14 02:59:32 -0400
commit598e75956634f33ede687da796d5b6c583048a5e (patch)
treea62d1c9dbe2ea1d559be3d7ec80fb4d6a4f3e193 /hal.h
parenta0d2fb9dd44af6315f4373956655bb665f86b774 (diff)
Add mixed-mode key support, for PKCS #11 "session" (ie, not "token") keys.
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/hal.h b/hal.h
index 9f25e62..6fbfb9f 100644
--- a/hal.h
+++ b/hal.h
@@ -648,6 +648,7 @@ typedef uint32_t hal_key_flags_t;
#define HAL_KEY_FLAG_USAGE_DIGITALSIGNATURE (1 << 0)
#define HAL_KEY_FLAG_USAGE_KEYENCIPHERMENT (1 << 1)
#define HAL_KEY_FLAG_USAGE_DATAENCIPHERMENT (1 << 2)
+#define HAL_KEY_FLAG_PROXIMATE (1 << 3)
extern hal_error_t hal_rpc_pkey_load(const hal_client_handle_t client,
const hal_session_handle_t session,
@@ -662,7 +663,8 @@ extern hal_error_t hal_rpc_pkey_find(const hal_client_handle_t client,
const hal_session_handle_t session,
hal_pkey_handle_t *pkey,
const hal_key_type_t type,
- const uint8_t * const name, const size_t name_len);
+ const uint8_t * const name, const size_t name_len,
+ const hal_key_flags_t flags);
extern hal_error_t hal_rpc_pkey_generate_rsa(const hal_client_handle_t client,
const hal_session_handle_t session,
@@ -717,7 +719,8 @@ typedef struct {
extern hal_error_t hal_rpc_pkey_list(hal_pkey_info_t *result,
unsigned *result_len,
- const unsigned result_max);
+ const unsigned result_max,
+ hal_key_flags_t flags);
extern hal_error_t hal_rpc_client_init(void);
extern hal_error_t hal_rpc_client_close(void);