From c785ab66890ad7b73c556d6afdf2bb8a32dd50e2 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 23 Aug 2012 15:34:04 +0200 Subject: 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 --- common/mock.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/mock.h') diff --git a/common/mock.h b/common/mock.h index 9128a63..6253386 100644 --- a/common/mock.h +++ b/common/mock.h @@ -133,6 +133,9 @@ CK_RV mock_C_Initialize__fails (CK_VOID_PTR init_args) CK_RV mock_X_Initialize (CK_X_FUNCTION_LIST *self, CK_VOID_PTR init_args); +CK_RV mock_X_Initialize__fails (CK_X_FUNCTION_LIST *self, + CK_VOID_PTR init_args); + CK_RV mock_C_Finalize (CK_VOID_PTR reserved); CK_RV mock_X_Finalize (CK_X_FUNCTION_LIST *self, -- cgit v1.1