diff options
author | Stef Walter <stef@memberwebs.com> | 2008-12-05 01:25:45 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-12-05 01:25:45 +0000 |
commit | 8184a9487d71af2eb7af2bd0bab3022d39995633 (patch) | |
tree | 95cf1fda6cb525793749af38d9e2396374c4bf51 /src/p11-tests.h | |
parent | fb19dad45d9961903b947d77af52d12e928df342 (diff) |
Add basic session tests.
Diffstat (limited to 'src/p11-tests.h')
-rw-r--r-- | src/p11-tests.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/p11-tests.h b/src/p11-tests.h index 4a79ffd..21b6064 100644 --- a/src/p11-tests.h +++ b/src/p11-tests.h @@ -6,6 +6,8 @@ #include <assert.h> #include <stdarg.h> +#define CK_INVALID ((CK_ULONG)-1) +\ /* ------------------------------------------------------------------- * msg.c */ @@ -40,6 +42,24 @@ int p11t_check_flag(const char *message, CK_ULONG flags, CK_ULONG flag); int p11t_check_nflag(const char *message, CK_ULONG flags, CK_ULONG nflag); /* ------------------------------------------------------------------- + * module.c + */ + +extern CK_FUNCTION_LIST_PTR p11t_module_funcs; + +void p11t_module_load(const char *filename); +void p11t_module_unload(void); + +void p11t_module_initialize(const char *initstr); +void p11t_module_finalize(void); + +/* ------------------------------------------------------------------- + * session.c + */ + +void p11t_session_tests(void); + +/* ------------------------------------------------------------------- * slot.c */ @@ -55,16 +75,5 @@ extern CK_MECHANISM_INFO_PTR* p11t_slot_mech_info; void p11t_slot_tests(void); -/* ------------------------------------------------------------------- - * module.c - */ - -extern CK_FUNCTION_LIST_PTR p11t_module_funcs; - -void p11t_module_load(const char *filename); -void p11t_module_unload(void); - -void p11t_module_initialize(const char *initstr); -void p11t_module_finalize(void); #endif /* P11TESTST_H_ */ |