aboutsummaryrefslogtreecommitdiff
path: root/rpc_client.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-05-31 20:45:14 -0400
committerPaul Selkirk <paul@psgd.org>2016-05-31 20:45:14 -0400
commitc51fa2770ba45837cf3af8576c813b7934cb709f (patch)
treee7502c74976033306df2a03a75453c007d7f4be8 /rpc_client.c
parent9bf115a45d3063ed36d8a4c60f22c9f77de22b80 (diff)
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.
Diffstat (limited to 'rpc_client.c')
-rw-r--r--rpc_client.c5
1 files changed, 4 insertions, 1 deletions
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 */