[Cryptech-Commits] [sw/libhal] branch master updated: Conditionalize "mixed" operations so we can build a clean remote client.
git at cryptech.is
git at cryptech.is
Wed Jun 1 00:46:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository sw/libhal.
The following commit(s) were added to refs/heads/master by this push:
new c51fa27 Conditionalize "mixed" operations so we can build a clean remote client.
c51fa27 is described below
commit c51fa2770ba45837cf3af8576c813b7934cb709f
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue May 31 20:45:14 2016 -0400
Conditionalize "mixed" operations so we can build a clean remote client.
Note that mixed mode doesn't actually work, because aes_keywrap tries to
hal_io_write to the AES core.
---
rpc_client.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/rpc_client.c b/rpc_client.c
index 4a919a3..3ac6d6e 100644
--- a/rpc_client.c
+++ b/rpc_client.c
@@ -733,7 +733,7 @@ static hal_error_t pkey_remote_list(hal_pkey_info_t *result,
return rpc_ret;
}
-
+#if RPC_CLIENT == RPC_CLIENT_MIXED
/*
* "Mixed" mode pkey operations, where the public key operation itself
* takes place on the HSM but the hashing takes place locally. If
@@ -908,6 +908,7 @@ static hal_error_t pkey_mixed_list(hal_pkey_info_t *result,
{
return mixed_flags_dispatch(flags)->list(result, result_len, result_max, flags);
}
+#endif /* RPC_CLIENT == RPC_CLIENT_MIXED */
/*
* Dispatch vectors.
@@ -949,6 +950,7 @@ const hal_rpc_pkey_dispatch_t hal_rpc_remote_pkey_dispatch = {
pkey_remote_list
};
+#if RPC_CLIENT == RPC_CLIENT_MIXED
const hal_rpc_pkey_dispatch_t hal_rpc_mixed_pkey_dispatch = {
pkey_mixed_load,
pkey_mixed_find,
@@ -965,6 +967,7 @@ const hal_rpc_pkey_dispatch_t hal_rpc_mixed_pkey_dispatch = {
pkey_mixed_verify,
pkey_mixed_list
};
+#endif /* RPC_CLIENT == RPC_CLIENT_MIXED */
#endif /* RPC_CLIENT != RPC_CLIENT_LOCAL */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list