aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/win32/config.h.in
blob: f2b56bad29700277b41a6f9e412787f4e7ff52df (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/* config.h for WIN32 */

/* The default log level */
#define DEFAULT_LOG_LEVEL "INFO"

/* Default storage backend for token objects */
#define DEFAULT_OBJECTSTORE_BACKEND "file"

/* The default PKCS#11 library */
#define DEFAULT_PKCS11_LIB "softhsm2.dll"

/* The default location of softhsm2.conf */
#define DEFAULT_SOFTHSM2_CONF "softhsm2.conf"

/* The default location of the token directory */
#define DEFAULT_TOKENDIR "tokens"

/* Define if advanced AES key wrap without pad is supported */
@IF RFC3394
#define HAVE_AES_KEY_WRAP 1
@ELSE RFC3394
#undef HAVE_AES_KEY_WRAP
@END RFC3394

/* Define if advanced AES key wrap with pad is supported */
@IF RFC5649
#define HAVE_AES_KEY_WRAP_PAD 1
@ELSE RFC5649
#undef HAVE_AES_KEY_WRAP_PAD
@END RFC5649

/* Whether LoadLibrary is available */
#define HAVE_LOADLIBRARY 1

/* Define to 1 if you have the <sqlite3.h> header file. */
#undef HAVE_SQLITE3_H

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Maximum PIN length */
#define MAX_PIN_LEN 255

/* Minimum PIN length */
#define MIN_PIN_LEN 4

/* Name of package */
#define PACKAGE "softhsm"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""

/* Define to the full name of this package. */
#define PACKAGE_NAME "SoftHSM"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "SoftHSM 2.3.0"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "softhsm"

/* Define to the home page for this package. */
#define PACKAGE_URL ""

/* Define to the version of this package. */
#define PACKAGE_VERSION  "2.3.0"

/* Non-paged memory for secure storage */
@IF NONPAGE
#define SENSITIVE_NON_PAGE 1
@ELSE NONPAGE
#undef SENSITIVE_NON_PAGE
@END NONPAGE

/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

/* Version number of package */
#define VERSION  "2.3.0"

/* SoftHSM major version number via PKCS#11 */
#define VERSION_MAJOR 2

/* SoftHSM minor version number via PKCS#11 */
#define VERSION_MINOR 3

/* Compile with Botan support */
@IF BOTAN
#define WITH_BOTAN 1
@ELSE BOTAN
#undef WITH_BOTAN
@END BOTAN

/* Compile with ECC support */
@IF ECC
#define WITH_ECC 1
@ELSE ECC
#undef WITH_ECC
@END ECC

/* Compile with GOST support */
@IF GOST
#define WITH_GOST 1
@ELSE GOST
#undef WITH_GOST
@END GOST

/* Compile with OpenSSL support */
@IF OPENSSL
#define WITH_OPENSSL 1
@ELSE OPENSSL
#undef WITH_OPENSSL
@END OPENSSL

/* Compile with raw PSS support */
@IF RAWPSS
#define WITH_RAW_PSS 1
@ELSE RAWPSS
#undef WITH_RAW_PSS
@END RAWPSS

/* Compile with AES GCM support */
@IF AESGCM
#define WITH_AES_GCM 1
@ELSE AESGCM
#undef WITH_AES_GCM
@END AESGCM

/* Define to 1 if you have getpassphrase(). */
#define HAVE_GETPASSPHRASE

/* Addition things */

char *getpassphrase(const char *prompt);
int setenv(const char *name, const char *value, int overwrite);

/* At least Vista */

#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif

#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#define strcasecmp _stricmp
#define strncasecmp _strnicmp

/* Prevent inclusion of winsock.h in windows.h */

#define WIN32_LEAN_AND_MEAN 1

#include <windows.h>

/* avoid collision from min and max macros */

#undef min
#undef max

@IF BOTAN
/* For Botan */

#pragma warning(disable: 4275 4267)
@END BOTAN

/* Temporary for debug */

#undef DEBUG_LOG_STDERR
// #define DEBUG_LOG_STDERR 1

/* To avoid unsafe warnings (off) */

// #pragma warning(disable: 4996)