/* 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 header file. */ #undef HAVE_SQLITE3_H /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the 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 /* 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)