summaryrefslogtreecommitdiff
path: root/common/mock.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-08-23 15:34:04 +0200
committerStef Walter <stef@thewalter.net>2014-07-08 08:57:30 +0200
commitc785ab66890ad7b73c556d6afdf2bb8a32dd50e2 (patch)
treeb871dc6edf5e0a094fa3736eccdb92ca2a7091a8 /common/mock.c
parent469e75bb8184392cb47b3cb4897589caabe56e70 (diff)
rpc: Implement PKCS#11 messages/client/server code
* This enables passing around bytes which represent PKCS#11 RPC calls. * Caller is responsible for connecting/disconnecting and so on. * Client side caller gets a mixin from p11_rpc_client_init() to call into, which generates callbacks with byte arrays to be transported. * Server side calls p11_rpc_server_handle() with a CK_FUNCTION_LIST_PTR on which relevant methods get called. * Doesn't yet implement the actual daemon or clients etc... https://bugs.freedesktop.org/show_bug.cgi?id=54105
Diffstat (limited to 'common/mock.c')
-rw-r--r--common/mock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/mock.c b/common/mock.c
index 51b32b6..01e095d 100644
--- a/common/mock.c
+++ b/common/mock.c
@@ -458,6 +458,13 @@ mock_C_Initialize__fails (CK_VOID_PTR init_args)
}
CK_RV
+mock_X_Initialize__fails (CK_X_FUNCTION_LIST *self,
+ CK_VOID_PTR init_args)
+{
+ return mock_C_Initialize__fails (init_args);
+}
+
+CK_RV
mock_C_Finalize (CK_VOID_PTR reserved)
{
return_val_if_fail (pkcs11_initialized, CKR_CRYPTOKI_NOT_INITIALIZED);