2012-03-01 04:12:12 +08:00
|
|
|
#include <config-msvc-version.h>
|
|
|
|
|
|
|
|
#define CONFIGURE_DEFINES "N/A"
|
|
|
|
|
|
|
|
#define ENABLE_DEF_AUTH 1
|
|
|
|
#define ENABLE_PF 1
|
|
|
|
#define ENABLE_CRYPTO_OPENSSL 1
|
2018-09-28 21:26:49 +08:00
|
|
|
#define HAVE_AEAD_CIPHER_MODES 1
|
2012-03-01 04:12:12 +08:00
|
|
|
#define ENABLE_DEBUG 1
|
|
|
|
#define ENABLE_EUREPHIA 1
|
|
|
|
#define ENABLE_FRAGMENT 1
|
|
|
|
#define ENABLE_HTTP_PROXY 1
|
|
|
|
#define ENABLE_LZO 1
|
2016-02-26 05:14:42 +08:00
|
|
|
#define ENABLE_LZ4 1
|
|
|
|
#define NEED_COMPAT_LZ4 1
|
2012-03-01 04:12:12 +08:00
|
|
|
#define ENABLE_MANAGEMENT 1
|
|
|
|
#define ENABLE_MULTIHOME 1
|
|
|
|
#define ENABLE_PKCS11 1
|
|
|
|
#define ENABLE_PLUGIN 1
|
|
|
|
#define ENABLE_PORT_SHARE 1
|
|
|
|
#define ENABLE_SOCKS 1
|
|
|
|
|
|
|
|
#define HAVE_ERRNO_H 1
|
|
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
#define HAVE_CTYPE_H 1
|
|
|
|
#define HAVE_STDARG_H 1
|
|
|
|
#define HAVE_STDIO_H 1
|
|
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
#define HAVE_STRDUP 1
|
|
|
|
#define HAVE_STRERROR 1
|
|
|
|
#define HAVE_STRINGS_H 1
|
|
|
|
#define HAVE_STRING_H 1
|
2012-03-29 17:16:39 +08:00
|
|
|
#define HAVE_LIMITS_H 1
|
2012-03-01 04:12:12 +08:00
|
|
|
#define HAVE_SYSTEM 1
|
|
|
|
#define HAVE_TIME 1
|
|
|
|
#define HAVE_TIME_H 1
|
|
|
|
#define HAVE_UNLINK 1
|
|
|
|
#define HAVE_VSNPRINTF 1
|
|
|
|
#define HAVE_WINDOWS_H 1
|
|
|
|
#define HAVE_WINSOCK2_H 1
|
|
|
|
#define HAVE_WS2TCPIP_H 1
|
|
|
|
#define HAVE_IO_H 1
|
|
|
|
#define HAVE_DIRECT_H 1
|
|
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
#define HAVE_LZO_LZO1X_H 1
|
|
|
|
#define HAVE_LZO_LZOUTIL_H 1
|
2015-12-30 05:02:37 +08:00
|
|
|
#define HAVE_VERSIONHELPERS_H 1
|
2012-03-01 04:12:12 +08:00
|
|
|
|
|
|
|
#define HAVE_ACCESS 1
|
|
|
|
#define HAVE_CHDIR 1
|
|
|
|
#define HAVE_CHSIZE 1
|
|
|
|
#define HAVE_CPP_VARARG_MACRO_ISO 1
|
|
|
|
#define HAVE_CTIME 1
|
|
|
|
#define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
|
|
|
|
#define HAVE_IN_PKTINFO 1
|
|
|
|
#define HAVE_MEMSET 1
|
|
|
|
#define HAVE_PUTENV 1
|
|
|
|
#define HAVE_STAT 1
|
|
|
|
|
|
|
|
#define HAVE_SOCKET 1
|
|
|
|
#define HAVE_RECV 1
|
|
|
|
#define HAVE_RECVFROM 1
|
|
|
|
#define HAVE_SEND 1
|
|
|
|
#define HAVE_SENDTO 1
|
|
|
|
#define HAVE_LISTEN 1
|
|
|
|
#define HAVE_ACCEPT 1
|
|
|
|
#define HAVE_CONNECT 1
|
|
|
|
#define HAVE_BIND 1
|
|
|
|
#define HAVE_SELECT 1
|
|
|
|
#define HAVE_GETHOSTBYNAME 1
|
|
|
|
#define HAVE_INET_NTOA 1
|
|
|
|
#define HAVE_SETSOCKOPT 1
|
|
|
|
#define HAVE_GETSOCKOPT 1
|
|
|
|
#define HAVE_GETSOCKNAME 1
|
|
|
|
#define HAVE_POLL 1
|
|
|
|
|
|
|
|
#define HAVE_OPENSSL_ENGINE 1
|
2019-10-17 20:23:43 +08:00
|
|
|
/* hardcode usage of OpenSSL 1.1.x */
|
|
|
|
#define HAVE_EVP_MD_CTX_RESET 1
|
|
|
|
#define HAVE_EVP_MD_CTX_FREE 1
|
|
|
|
#define HAVE_EVP_MD_CTX_NEW 1
|
|
|
|
#define HAVE_HMAC_CTX_RESET 1
|
|
|
|
#define HAVE_HMAC_CTX_FREE 1
|
|
|
|
#define HAVE_HMAC_CTX_NEW 1
|
|
|
|
#define HAVE_SSL_CTX_GET_DEFAULT_PASSWD_CB_USERDATA 1
|
|
|
|
#define HAVE_SSL_CTX_GET_DEFAULT_PASSWD_CB 1
|
|
|
|
#define HAVE_X509_GET0_PUBKEY 1
|
|
|
|
#define HAVE_X509_STORE_GET0_OBJECTS 1
|
|
|
|
#define HAVE_X509_OBJECT_FREE 1
|
|
|
|
#define HAVE_X509_OBJECT_GET_TYPE 1
|
|
|
|
#define HAVE_EVP_PKEY_GET0_RSA 1
|
|
|
|
#define HAVE_EVP_PKEY_GET0_EC_KEY 1
|
|
|
|
#define HAVE_EVP_PKEY_ID 1
|
|
|
|
#define HAVE_EVP_PKEY_GET0_DSA 1
|
|
|
|
#define HAVE_RSA_SET_FLAGS 1
|
|
|
|
#define HAVE_RSA_GET0_KEY 1
|
|
|
|
#define HAVE_RSA_SET0_KEY 1
|
|
|
|
#define HAVE_RSA_BITS 1
|
|
|
|
#define HAVE_DSA_GET0_PQG 1
|
|
|
|
#define HAVE_DSA_BITS 1
|
|
|
|
#define HAVE_RSA_METH_NEW 1
|
|
|
|
#define HAVE_RSA_METH_FREE 1
|
|
|
|
#define HAVE_RSA_METH_SET_PUB_ENC 1
|
|
|
|
#define HAVE_RSA_METH_SET_PUB_DEC 1
|
|
|
|
#define HAVE_RSA_METH_SET_PRIV_ENC 1
|
|
|
|
#define HAVE_RSA_METH_SET_PRIV_DEC 1
|
|
|
|
#define HAVE_RSA_METH_SET_INIT 1
|
|
|
|
#define HAVE_RSA_METH_SET_SIGN 1
|
|
|
|
#define HAVE_RSA_METH_SET_FINISH 1
|
|
|
|
#define HAVE_RSA_METH_SET0_APP_DATA 1
|
|
|
|
#define HAVE_RSA_METH_GET0_APP_DATA 1
|
|
|
|
#define HAVE_EC_GROUP_ORDER_BITS 1
|
|
|
|
#define OPENSSL_NO_EC 1
|
|
|
|
#define HAVE_EVP_CIPHER_CTX_RESET 1
|
2012-03-01 04:12:12 +08:00
|
|
|
|
2014-05-09 06:50:35 +08:00
|
|
|
#define PATH_SEPARATOR '\\'
|
|
|
|
#define PATH_SEPARATOR_STR "\\"
|
|
|
|
|
2012-03-01 04:12:12 +08:00
|
|
|
#ifndef __cplusplus
|
|
|
|
#define inline __inline
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define EMPTY_ARRAY_SIZE 0
|
|
|
|
#define TARGET_WIN32 1
|
|
|
|
#define TARGET_ALIAS "Windows-MSVC"
|
|
|
|
|
|
|
|
#define HAVE_DECL_SO_MARK 0
|
|
|
|
|
|
|
|
#define strncasecmp strnicmp
|
|
|
|
#define strcasecmp _stricmp
|
2015-10-02 19:46:41 +08:00
|
|
|
|
|
|
|
#if _MSC_VER<1900
|
2012-03-01 04:12:12 +08:00
|
|
|
#define snprintf _snprintf
|
2015-10-02 19:46:41 +08:00
|
|
|
#endif
|
2014-04-21 15:10:03 +08:00
|
|
|
|
|
|
|
#if _MSC_VER < 1800
|
2012-03-01 04:12:12 +08:00
|
|
|
#define strtoull strtoul
|
2014-04-21 15:10:03 +08:00
|
|
|
#endif
|
2012-03-01 04:12:12 +08:00
|
|
|
|
|
|
|
#define in_addr_t uint32_t
|
|
|
|
#define ssize_t SSIZE_T
|
|
|
|
|
|
|
|
#define S_IRUSR 0
|
|
|
|
#define S_IWUSR 0
|
|
|
|
#define R_OK 4
|
|
|
|
#define W_OK 2
|
|
|
|
#define X_OK 1
|
|
|
|
#define F_OK 0
|
|
|
|
|
|
|
|
#define SIGHUP 1
|
|
|
|
#define SIGINT 2
|
|
|
|
#define SIGUSR1 10
|
|
|
|
#define SIGUSR2 12
|
|
|
|
#define SIGTERM 15
|
|
|
|
|
2016-12-15 05:33:21 +08:00
|
|
|
typedef unsigned __int64 uint64_t;
|
|
|
|
typedef unsigned __int32 uint32_t;
|
|
|
|
typedef unsigned __int16 uint16_t;
|
|
|
|
typedef unsigned __int8 uint8_t;
|
|
|
|
typedef __int64 int64_t;
|
|
|
|
typedef __int32 int32_t;
|
|
|
|
typedef __int16 int16_t;
|
|
|
|
typedef __int8 int8_t;
|
2017-03-16 06:40:31 +08:00
|
|
|
typedef uint16_t in_port_t;
|
2012-03-01 04:12:12 +08:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_MSVC_LOCAL_H
|
|
|
|
#include <config-msvc-local.h>
|
|
|
|
#endif
|
|
|
|
|
2016-12-15 05:33:21 +08:00
|
|
|
/* Vista and above has implementation of inet_ntop / inet_pton */
|
2015-10-06 19:15:13 +08:00
|
|
|
#if _WIN32_WINNT >= _WIN32_WINNT_VISTA
|
|
|
|
#define HAVE_INET_NTOP
|
|
|
|
#define HAVE_INET_PTON
|
|
|
|
#endif
|