From 43a3f5df8124bb85567feb18975d19fa1b639b9f Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 24 Jan 2013 09:30:33 +0100 Subject: Add more mock-module implementation * Move mock code into the common/ directory to be used by multiple components of p11-kit --- p11-kit/tests/mock-module-ep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'p11-kit/tests/mock-module-ep.c') diff --git a/p11-kit/tests/mock-module-ep.c b/p11-kit/tests/mock-module-ep.c index 7440a74..89b31f6 100644 --- a/p11-kit/tests/mock-module-ep.c +++ b/p11-kit/tests/mock-module-ep.c @@ -36,7 +36,8 @@ #define CRYPTOKI_EXPORTS 1 #include "pkcs11.h" -#include "mock-module.h" + +#include "mock.h" #ifdef OS_WIN32 __declspec(dllexport) @@ -45,6 +46,7 @@ CK_RV C_GetFunctionList (CK_FUNCTION_LIST_PTR_PTR list) { mock_module_init (); + mock_module_no_slots.C_GetFunctionList = C_GetFunctionList; if (list == NULL) return CKR_ARGUMENTS_BAD; *list = &mock_module_no_slots; -- cgit v1.1