summaryrefslogtreecommitdiff
path: root/src/p11-tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/p11-tests.h')
-rw-r--r--src/p11-tests.h31
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_ */