22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
|
#include <tcl.h>
#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION >= 86
# define TCL_INCLUDES_LOADFILE 1
#endif
/* PKCS#11 Definitions for the local platform */
#ifndef _WIN32
# define CK_PTR *
# define CK_DECLARE_FUNCTION(rv, func) rv func
# define CK_DECLARE_FUNCTION_POINTER(rv, func) rv (CK_PTR func)
# define CK_CALLBACK_FUNCTION(rv, func) rv (CK_PTR func)
# define CK_NULL_PTR ((void *) 0)
#else
# define CK_PTR *
#define CK_PTR *
#define CK_DECLARE_FUNCTION(rv, func) rv func
#define CK_DECLARE_FUNCTION_POINTER(rv, func) rv (CK_PTR func)
#define CK_CALLBACK_FUNCTION(rv, func) rv (CK_PTR func)
#define CK_NULL_PTR ((void *) 0)
#ifdef _WIN32
# define CK_DECLARE_FUNCTION(rv, func) rv __declspec(dllimport) func
# define CK_DECLARE_FUNCTION_POINTER(rv, func) rv __declspec(dllimport) (CK_PTR func)
# define CK_CALLBACK_FUNCTION(rv, func) rv (CK_PTR func)
# define CK_NULL_PTR ((void *) 0)
# pragma pack(push, cryptoki, 1)
#endif
#include "pkcs11.h"
#ifdef _WIN32
# pragma pack(pop, cryptoki)
|