summaryrefslogtreecommitdiff
path: root/src/p11-tests.h
blob: cf373462ca9c75b8a08eb9bcd2f7922a66edbfea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef P11TESTST_H_
#define P11TESTST_H_

#include "pkcs11/pkcs11.h"

#include <assert.h>
#include <stdarg.h>

/* -------------------------------------------------------------------
 * message.c
 */

const char* p11t_msg_rv(CK_RV rv);

void p11t_msg_va(const char *message, va_list va);
void p11t_msg_print(const char *message, ...);
void p11t_msg_fatal(const char *message, ...);
void p11t_msg_prefix(const char *prefix);

/* -------------------------------------------------------------------
 * module.c
 */

void p11t_module_load(const char *filename);
void p11t_module_initialize(const char *initstr);
void p11t_module_finalize(void);
void p11t_module_unload(void);

#endif /* P11TESTST_H_ */