diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/mock.c | 9 | ||||
-rw-r--r-- | common/mock.h | 11 |
2 files changed, 11 insertions, 9 deletions
diff --git a/common/mock.c b/common/mock.c index 4dbd674..1a6657c 100644 --- a/common/mock.c +++ b/common/mock.c @@ -474,15 +474,6 @@ mock_X_Finalize (CK_X_FUNCTION_LIST *self, return mock_C_Finalize (reserved); } -static const CK_INFO MOCK_INFO = { - { CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR }, - "MOCK MANUFACTURER ", - 0, - "MOCK LIBRARY ", - { 45, 145 } -}; - - CK_RV mock_C_GetInfo (CK_INFO_PTR info) { 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; |