From 0cb1132469c1e13be64f85cd6566e6617bfe32cc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 15 Feb 2013 21:34:20 +0100 Subject: Update the proxy module to use managed PKCS#11 modules Each time C_GetFunctionList is called on the proxy module, a new managed PKCS#11 set of functions is returned. These are all cleaned up when the module is unloaded. We want the proxy module to continue to work even without the highly recommended libffi. For that reason we still keep the old behavior of sharing state in the proxy module. --- common/mock.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/mock.h') diff --git a/common/mock.h b/common/mock.h index 5691fe0..9128a63 100644 --- a/common/mock.h +++ b/common/mock.h @@ -87,6 +87,17 @@ enum { MOCK_SLOT_ONE_ID = 52, MOCK_SLOT_TWO_ID = 134, + + MOCK_SLOTS_PRESENT = 1, + MOCK_SLOTS_ALL = 2, +}; + +static const CK_INFO MOCK_INFO = { + { CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR }, + "MOCK MANUFACTURER ", + 0, + "MOCK LIBRARY ", + { 45, 145 } }; extern CK_FUNCTION_LIST mock_module; -- cgit v1.1