diff options
author | Stef Walter <stefw@gnome.org> | 2013-01-24 09:30:33 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-02-04 10:55:47 +0100 |
commit | 43a3f5df8124bb85567feb18975d19fa1b639b9f (patch) | |
tree | 1911b6dd6627d91d6fc4a320c73664e280fca35c /p11-kit/tests/mock-module-ep.c | |
parent | 7ddff6795830deff6ec5fb1b8b0c704fbdea2c97 (diff) |
Add more mock-module implementation
* Move mock code into the common/ directory to be used by multiple
components of p11-kit
Diffstat (limited to 'p11-kit/tests/mock-module-ep.c')
-rw-r--r-- | p11-kit/tests/mock-module-ep.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |