1 /* config.h for WIN32 */
3 /* The default log level */
4 #define DEFAULT_LOG_LEVEL "INFO"
6 /* Default storage backend for token objects */
7 #define DEFAULT_OBJECTSTORE_BACKEND "file"
9 /* The default PKCS#11 library */
10 #define DEFAULT_PKCS11_LIB "softhsm2.dll"
12 /* The default location of softhsm2.conf */
13 #define DEFAULT_SOFTHSM2_CONF "softhsm2.conf"
15 /* The default location of the token directory */
16 #define DEFAULT_TOKENDIR "tokens"
18 /* Define if advanced AES key wrap without pad is supported */
20 #define HAVE_AES_KEY_WRAP 1
22 #undef HAVE_AES_KEY_WRAP
25 /* Define if advanced AES key wrap with pad is supported */
27 #define HAVE_AES_KEY_WRAP_PAD 1
29 #undef HAVE_AES_KEY_WRAP_PAD
32 /* Whether LoadLibrary is available */
33 #define HAVE_LOADLIBRARY 1
35 /* Define to 1 if you have the <sqlite3.h> header file. */
38 /* Define to 1 if you have the <stdlib.h> header file. */
39 #define HAVE_STDLIB_H 1
41 /* Define to 1 if you have the <string.h> header file. */
42 #define HAVE_STRING_H 1
44 /* Define to 1 if you have the <sys/stat.h> header file. */
45 #define HAVE_SYS_STAT_H 1
47 /* Define to 1 if you have the <sys/types.h> header file. */
48 #define HAVE_SYS_TYPES_H 1
50 /* Define to 1 if you have the <unistd.h> header file. */
53 /* Maximum PIN length */
54 #define MAX_PIN_LEN 255
56 /* Minimum PIN length */
60 #define PACKAGE "softhsm"
62 /* Define to the address where bug reports for this package should be sent. */
63 #define PACKAGE_BUGREPORT ""
65 /* Define to the full name of this package. */
66 #define PACKAGE_NAME "SoftHSM"
68 /* Define to the full name and version of this package. */
69 #define PACKAGE_STRING "SoftHSM 2.3.0"
71 /* Define to the one symbol short name of this package. */
72 #define PACKAGE_TARNAME "softhsm"
74 /* Define to the home page for this package. */
75 #define PACKAGE_URL ""
77 /* Define to the version of this package. */
78 #define PACKAGE_VERSION "2.3.0"
80 /* Non-paged memory for secure storage */
82 #define SENSITIVE_NON_PAGE 1
84 #undef SENSITIVE_NON_PAGE
87 /* Define to 1 if you have the ANSI C header files. */
90 /* Version number of package */
91 #define VERSION "2.3.0"
93 /* SoftHSM major version number via PKCS#11 */
94 #define VERSION_MAJOR 2
96 /* SoftHSM minor version number via PKCS#11 */
97 #define VERSION_MINOR 3
99 /* Compile with Botan support */
106 /* Compile with ECC support */
113 /* Compile with GOST support */
120 /* Compile with OpenSSL support */
122 #define WITH_OPENSSL 1
127 /* Compile with raw PSS support */
129 #define WITH_RAW_PSS 1
134 /* Compile with AES GCM support */
136 #define WITH_AES_GCM 1
141 /* Define to 1 if you have getpassphrase(). */
142 #define HAVE_GETPASSPHRASE
144 /* Addition things */
146 char *getpassphrase(const char *prompt);
147 int setenv(const char *name, const char *value, int overwrite);
152 #define _WIN32_WINNT 0x0600
156 #define snprintf _snprintf
158 #define strcasecmp _stricmp
159 #define strncasecmp _strnicmp
161 /* Prevent inclusion of winsock.h in windows.h */
163 #define WIN32_LEAN_AND_MEAN 1
167 /* avoid collision from min and max macros */
175 #pragma warning(disable: 4275 4267)
178 /* Temporary for debug */
180 #undef DEBUG_LOG_STDERR
181 // #define DEBUG_LOG_STDERR 1
183 /* To avoid unsafe warnings (off) */
185 // #pragma warning(disable: 4996)