TclPKCS11

Check-in [e1252f4d5b]
Login

Check-in [e1252f4d5b]

Overview
Comment:Removed references to "dllimport"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e1252f4d5b7d27ffa586f8d66924c9d54dfb03292fbc913a5d5a2a3ab4329e81
User & Date: rkeene on 2010-10-12 00:58:50
Other Links: manifest | tags
Context
2010-11-14
10:49
Simplified and made Makefile even more explicit check-in: d1ed4ce5f7 user: rkeene tags: trunk
2010-10-12
00:58
Removed references to "dllimport" check-in: e1252f4d5b user: rkeene tags: trunk
2010-10-11
13:55
Tclpkcs11 0.9.6 Updated test script to not call exit check-in: 00bd99c476 user: rkeene tags: release-0.9.6, trunk
Changes

Modified tclpkcs11.c from [2e5a3ac01f] to [5545ced6e8].

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)