1933707f3Ssthen/* config.h.in. Generated from configure.ac by autoheader. */ 2933707f3Ssthen 3452a1548Ssthen/* apply the noreturn attribute to a function that exits the program */ 4452a1548Ssthen#undef ATTR_NORETURN 5452a1548Ssthen 6452a1548Ssthen/* apply the weak attribute to a symbol */ 7452a1548Ssthen#undef ATTR_WEAK 8452a1548Ssthen 9933707f3Ssthen/* Directory to chroot to */ 10933707f3Ssthen#undef CHROOT_DIR 11933707f3Ssthen 122be9e038Ssthen/* Define this to enable client subnet option. */ 132be9e038Ssthen#undef CLIENT_SUBNET 142be9e038Ssthen 1598f3ca02Sbrad/* Do sha512 definitions in config.h */ 1698f3ca02Sbrad#undef COMPAT_SHA512 1798f3ca02Sbrad 188240c1b9Ssthen/* Command line arguments used with configure */ 198240c1b9Ssthen#undef CONFCMDLINE 208240c1b9Ssthen 21933707f3Ssthen/* Pathname to the Unbound configuration file */ 22933707f3Ssthen#undef CONFIGFILE 23933707f3Ssthen 24933707f3Ssthen/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 25933707f3Ssthen */ 26933707f3Ssthen#undef DARWIN_BROKEN_SETREUID 27933707f3Ssthen 28933707f3Ssthen/* Whether daemon is deprecated */ 29933707f3Ssthen#undef DEPRECATED_DAEMON 30933707f3Ssthen 31191f22c6Ssthen/* Deprecate RSA 1024 bit length, makes that an unsupported key */ 32191f22c6Ssthen#undef DEPRECATE_RSA_1024 33191f22c6Ssthen 34a3167c07Ssthen/* Define this to enable kernel based UDP source port randomization. */ 35a3167c07Ssthen#undef DISABLE_EXPLICIT_PORT_RANDOMISATION 36a3167c07Ssthen 3798f3ca02Sbrad/* default dnstap socket path */ 3898f3ca02Sbrad#undef DNSTAP_SOCKET_PATH 3998f3ca02Sbrad 40933707f3Ssthen/* Define if you want to use debug lock checking (slow). */ 41933707f3Ssthen#undef ENABLE_LOCK_CHECKS 42933707f3Ssthen 43933707f3Ssthen/* Define this if you enabled-allsymbols from libunbound to link binaries to 44933707f3Ssthen it for smaller install size, but the libunbound export table is polluted by 45933707f3Ssthen internal symbols */ 46933707f3Ssthen#undef EXPORT_ALL_SYMBOLS 47933707f3Ssthen 4820237c55Ssthen/* Define to 1 if you have the `accept4' function. */ 4920237c55Ssthen#undef HAVE_ACCEPT4 5020237c55Ssthen 5198f3ca02Sbrad/* Define to 1 if you have the `arc4random' function. */ 5298f3ca02Sbrad#undef HAVE_ARC4RANDOM 5398f3ca02Sbrad 5498f3ca02Sbrad/* Define to 1 if you have the `arc4random_uniform' function. */ 5598f3ca02Sbrad#undef HAVE_ARC4RANDOM_UNIFORM 5698f3ca02Sbrad 57933707f3Ssthen/* Define to 1 if you have the <arpa/inet.h> header file. */ 58933707f3Ssthen#undef HAVE_ARPA_INET_H 59933707f3Ssthen 60933707f3Ssthen/* Whether the C compiler accepts the "format" attribute */ 61933707f3Ssthen#undef HAVE_ATTR_FORMAT 62933707f3Ssthen 63452a1548Ssthen/* Whether the C compiler accepts the "noreturn" attribute */ 64452a1548Ssthen#undef HAVE_ATTR_NORETURN 65452a1548Ssthen 66933707f3Ssthen/* Whether the C compiler accepts the "unused" attribute */ 67933707f3Ssthen#undef HAVE_ATTR_UNUSED 68933707f3Ssthen 692ee382b6Ssthen/* Whether the C compiler accepts the "weak" attribute */ 702ee382b6Ssthen#undef HAVE_ATTR_WEAK 712ee382b6Ssthen 72eaf2578eSsthen/* If we have be64toh */ 73eaf2578eSsthen#undef HAVE_BE64TOH 74eaf2578eSsthen 75e21c60efSsthen/* Define to 1 if you have the `BIO_set_callback_ex' function. */ 76e21c60efSsthen#undef HAVE_BIO_SET_CALLBACK_EX 77e21c60efSsthen 78eaf2578eSsthen/* Define to 1 if you have the <bsd/stdlib.h> header file. */ 79eaf2578eSsthen#undef HAVE_BSD_STDLIB_H 80eaf2578eSsthen 81eaf2578eSsthen/* Define to 1 if you have the <bsd/string.h> header file. */ 82eaf2578eSsthen#undef HAVE_BSD_STRING_H 83eaf2578eSsthen 84b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */ 85933707f3Ssthen#undef HAVE_CHOWN 86933707f3Ssthen 87933707f3Ssthen/* Define to 1 if you have the `chroot' function. */ 88933707f3Ssthen#undef HAVE_CHROOT 89933707f3Ssthen 9077079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ 9177079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 9277079be7Ssthen 93c3b38330Ssthen/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */ 94c3b38330Ssthen#undef HAVE_CRYPTO_THREADID_SET_CALLBACK 95c3b38330Ssthen 96933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */ 97933707f3Ssthen#undef HAVE_CTIME_R 98933707f3Ssthen 99933707f3Ssthen/* Define to 1 if you have the `daemon' function. */ 100933707f3Ssthen#undef HAVE_DAEMON 101933707f3Ssthen 10298f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you 10398f3ca02Sbrad don't. */ 10498f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM 10598f3ca02Sbrad 10698f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 10798f3ca02Sbrad if you don't. */ 10898f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM 10998f3ca02Sbrad 110550cf4a9Ssthen/* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if 111550cf4a9Ssthen you don't. */ 112550cf4a9Ssthen#undef HAVE_DECL_EVSIGNAL_ASSIGN 113550cf4a9Ssthen 11477079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 11577079be7Ssthen don't. */ 11677079be7Ssthen#undef HAVE_DECL_INET_NTOP 11777079be7Ssthen 11877079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you 11977079be7Ssthen don't. */ 12077079be7Ssthen#undef HAVE_DECL_INET_PTON 12177079be7Ssthen 1222c144df0Ssthen/* Define to 1 if you have the declaration of `nghttp2_session_server_new', 1232c144df0Ssthen and to 0 if you don't. */ 1242c144df0Ssthen#undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW 1252c144df0Ssthen 1262be9e038Ssthen/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you 1272be9e038Ssthen don't. */ 1282be9e038Ssthen#undef HAVE_DECL_NID_ED25519 1292be9e038Ssthen 13020237c55Ssthen/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you 13120237c55Ssthen don't. */ 13220237c55Ssthen#undef HAVE_DECL_NID_ED448 13320237c55Ssthen 134d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 135d8d14d0cSsthen don't. */ 136d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1 137d8d14d0cSsthen 138d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 139d8d14d0cSsthen if you don't. */ 140d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1 141d8d14d0cSsthen 142fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 143fdfb4ba6Ssthen don't. */ 144fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY 145fdfb4ba6Ssthen 14620237c55Ssthen/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you 14720237c55Ssthen don't. */ 14820237c55Ssthen#undef HAVE_DECL_REDISCONNECT 14920237c55Ssthen 150933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 151933707f3Ssthen if you don't. */ 152933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE 153933707f3Ssthen 154933707f3Ssthen/* Define to 1 if you have the declaration of 155933707f3Ssthen `SSL_COMP_get_compression_methods', and to 0 if you don't. */ 156933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 157933707f3Ssthen 158a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 159a961b961Ssthen 0 if you don't. */ 160a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 161a961b961Ssthen 16298f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you 16398f3ca02Sbrad don't. */ 16498f3ca02Sbrad#undef HAVE_DECL_STRLCAT 16598f3ca02Sbrad 16698f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you 16798f3ca02Sbrad don't. */ 16898f3ca02Sbrad#undef HAVE_DECL_STRLCPY 16998f3ca02Sbrad 17024893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if 17124893edcSsthen you don't. */ 17224893edcSsthen#undef HAVE_DECL_XML_STOPPARSER 17324893edcSsthen 174933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */ 175933707f3Ssthen#undef HAVE_DLFCN_H 176933707f3Ssthen 17777079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */ 17877079be7Ssthen#undef HAVE_DSA_SIG_SET0 17977079be7Ssthen 18098f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */ 18198f3ca02Sbrad#undef HAVE_ENDIAN_H 18298f3ca02Sbrad 1835d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */ 1845d76a658Ssthen#undef HAVE_ENDPROTOENT 1855d76a658Ssthen 18677079be7Ssthen/* Define to 1 if you have the `endpwent' function. */ 18777079be7Ssthen#undef HAVE_ENDPWENT 18877079be7Ssthen 1895d76a658Ssthen/* Define to 1 if you have the `endservent' function. */ 1905d76a658Ssthen#undef HAVE_ENDSERVENT 1915d76a658Ssthen 192a3167c07Ssthen/* Define to 1 if you have the `ENGINE_cleanup' function. */ 193a3167c07Ssthen#undef HAVE_ENGINE_CLEANUP 194a3167c07Ssthen 19577079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */ 19677079be7Ssthen#undef HAVE_ERR_FREE_STRINGS 19777079be7Ssthen 19877079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 19977079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 20077079be7Ssthen 201550cf4a9Ssthen/* Define to 1 if you have the `event_assign' function. */ 202550cf4a9Ssthen#undef HAVE_EVENT_ASSIGN 203550cf4a9Ssthen 204933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */ 205933707f3Ssthen#undef HAVE_EVENT_BASE_FREE 206933707f3Ssthen 207933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */ 208933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD 209933707f3Ssthen 210933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */ 211933707f3Ssthen#undef HAVE_EVENT_BASE_NEW 212933707f3Ssthen 213933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */ 214933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE 215933707f3Ssthen 216933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */ 217933707f3Ssthen#undef HAVE_EVENT_H 218933707f3Ssthen 219f6b99bafSsthen/* Define to 1 if you have the `EVP_aes_256_cbc' function. */ 220f6b99bafSsthen#undef HAVE_EVP_AES_256_CBC 221f6b99bafSsthen 22277079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */ 22377079be7Ssthen#undef HAVE_EVP_CLEANUP 22477079be7Ssthen 225d1e2768aSsthen/* Define to 1 if you have the `EVP_default_properties_is_fips_enabled' 226d1e2768aSsthen function. */ 227d1e2768aSsthen#undef HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED 228d1e2768aSsthen 2292be9e038Ssthen/* Define to 1 if you have the `EVP_DigestVerify' function. */ 2302be9e038Ssthen#undef HAVE_EVP_DIGESTVERIFY 2312be9e038Ssthen 23277079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */ 23377079be7Ssthen#undef HAVE_EVP_DSS1 23477079be7Ssthen 235f6b99bafSsthen/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */ 236f6b99bafSsthen#undef HAVE_EVP_ENCRYPTINIT_EX 237f6b99bafSsthen 2382c144df0Ssthen/* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */ 2392c144df0Ssthen#undef HAVE_EVP_MAC_CTX_SET_PARAMS 2402c144df0Ssthen 2412ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 2422ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW 2432ee382b6Ssthen 244933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */ 245933707f3Ssthen#undef HAVE_EVP_SHA1 246933707f3Ssthen 247933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */ 248933707f3Ssthen#undef HAVE_EVP_SHA256 249933707f3Ssthen 250933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */ 251933707f3Ssthen#undef HAVE_EVP_SHA512 252933707f3Ssthen 253933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */ 254933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP 255933707f3Ssthen 256933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */ 257933707f3Ssthen#undef HAVE_EV_LOOP 258933707f3Ssthen 259933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */ 260933707f3Ssthen#undef HAVE_EXPAT_H 261933707f3Ssthen 262452a1548Ssthen/* Define to 1 if you have the `explicit_bzero' function. */ 263452a1548Ssthen#undef HAVE_EXPLICIT_BZERO 264452a1548Ssthen 265933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */ 266933707f3Ssthen#undef HAVE_FCNTL 267933707f3Ssthen 2683dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */ 2693dcb24b8Ssthen#undef HAVE_FIPS_MODE 2703dcb24b8Ssthen 271933707f3Ssthen/* Define to 1 if you have the `fork' function. */ 272933707f3Ssthen#undef HAVE_FORK 273933707f3Ssthen 274933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 275933707f3Ssthen#undef HAVE_FSEEKO 276933707f3Ssthen 27724893edcSsthen/* Define to 1 if you have the `fsync' function. */ 27824893edcSsthen#undef HAVE_FSYNC 27924893edcSsthen 280933707f3Ssthen/* Whether getaddrinfo is available */ 281933707f3Ssthen#undef HAVE_GETADDRINFO 282933707f3Ssthen 283b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */ 284b2cdf21fSsthen#undef HAVE_GETAUXVAL 285b2cdf21fSsthen 28698f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */ 28798f3ca02Sbrad#undef HAVE_GETENTROPY 28898f3ca02Sbrad 2892c144df0Ssthen/* Define to 1 if you have the `getifaddrs' function. */ 2902c144df0Ssthen#undef HAVE_GETIFADDRS 2912c144df0Ssthen 292933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */ 293933707f3Ssthen#undef HAVE_GETOPT_H 294933707f3Ssthen 295933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */ 296933707f3Ssthen#undef HAVE_GETPWNAM 297933707f3Ssthen 298933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */ 299933707f3Ssthen#undef HAVE_GETRLIMIT 300933707f3Ssthen 30145872187Ssthen/* Define to 1 if you have the `gettid' function. */ 30245872187Ssthen#undef HAVE_GETTID 30345872187Ssthen 304933707f3Ssthen/* Define to 1 if you have the `glob' function. */ 305933707f3Ssthen#undef HAVE_GLOB 306933707f3Ssthen 307933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */ 308933707f3Ssthen#undef HAVE_GLOB_H 309933707f3Ssthen 310933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */ 311933707f3Ssthen#undef HAVE_GMTIME_R 312933707f3Ssthen 313933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */ 314933707f3Ssthen#undef HAVE_GRP_H 315933707f3Ssthen 31620237c55Ssthen/* Define to 1 if you have the <hiredis/hiredis.h> header file. */ 31720237c55Ssthen#undef HAVE_HIREDIS_HIREDIS_H 31820237c55Ssthen 319f6b99bafSsthen/* Define to 1 if you have the `HMAC_Init_ex' function. */ 320f6b99bafSsthen#undef HAVE_HMAC_INIT_EX 321f6b99bafSsthen 322eaf2578eSsthen/* If we have htobe64 */ 323eaf2578eSsthen#undef HAVE_HTOBE64 324eaf2578eSsthen 3252c144df0Ssthen/* Define to 1 if you have the <ifaddrs.h> header file. */ 3262c144df0Ssthen#undef HAVE_IFADDRS_H 3272c144df0Ssthen 3286eb11800Sflorian/* Define to 1 if you have the `if_nametoindex' function. */ 3296eb11800Sflorian#undef HAVE_IF_NAMETOINDEX 3306eb11800Sflorian 331933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */ 332933707f3Ssthen#undef HAVE_INET_ATON 333933707f3Ssthen 334933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */ 335933707f3Ssthen#undef HAVE_INET_NTOP 336933707f3Ssthen 337933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */ 338933707f3Ssthen#undef HAVE_INET_PTON 339933707f3Ssthen 340933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */ 341933707f3Ssthen#undef HAVE_INITGROUPS 342933707f3Ssthen 343933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */ 344933707f3Ssthen#undef HAVE_INTTYPES_H 345933707f3Ssthen 346933707f3Ssthen/* if the function 'ioctlsocket' is available */ 347933707f3Ssthen#undef HAVE_IOCTLSOCKET 348933707f3Ssthen 349933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */ 350933707f3Ssthen#undef HAVE_IPHLPAPI_H 351933707f3Ssthen 35224893edcSsthen/* Define to 1 if you have the `isblank' function. */ 35324893edcSsthen#undef HAVE_ISBLANK 35424893edcSsthen 355933707f3Ssthen/* Define to 1 if you have the `kill' function. */ 356933707f3Ssthen#undef HAVE_KILL 357933707f3Ssthen 358eaf2578eSsthen/* Use portable libbsd functions */ 359eaf2578eSsthen#undef HAVE_LIBBSD 360eaf2578eSsthen 36120237c55Ssthen/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */ 36220237c55Ssthen#undef HAVE_LIBKERN_OSBYTEORDER_H 36320237c55Ssthen 36498f3ca02Sbrad/* Define if we have LibreSSL */ 36598f3ca02Sbrad#undef HAVE_LIBRESSL 36698f3ca02Sbrad 367*8b7325afSsthen/* Define to 1 if you have the <linux/net_tstamp.h> header file. */ 368*8b7325afSsthen#undef HAVE_LINUX_NET_TSTAMP_H 369*8b7325afSsthen 370933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */ 371933707f3Ssthen#undef HAVE_LOCALTIME_R 372933707f3Ssthen 373933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */ 374933707f3Ssthen#undef HAVE_LOGIN_CAP_H 375933707f3Ssthen 376933707f3Ssthen/* If have GNU libc compatible malloc */ 377933707f3Ssthen#undef HAVE_MALLOC 378933707f3Ssthen 379933707f3Ssthen/* Define to 1 if you have the `memmove' function. */ 380933707f3Ssthen#undef HAVE_MEMMOVE 381933707f3Ssthen 382933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */ 383933707f3Ssthen#undef HAVE_MEMORY_H 384933707f3Ssthen 385933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */ 386933707f3Ssthen#undef HAVE_NETDB_H 387933707f3Ssthen 388933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */ 389933707f3Ssthen#undef HAVE_NETINET_IN_H 390933707f3Ssthen 39132e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */ 39232e31f52Ssthen#undef HAVE_NETINET_TCP_H 39332e31f52Ssthen 394e21c60efSsthen/* Define to 1 if you have the <netioapi.h> header file. */ 395e21c60efSsthen#undef HAVE_NETIOAPI_H 396e21c60efSsthen 39724893edcSsthen/* Use libnettle for crypto */ 39824893edcSsthen#undef HAVE_NETTLE 39924893edcSsthen 40077079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */ 40177079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H 40277079be7Ssthen 4037191de28Ssthen/* Define to 1 if you have the <nettle/eddsa.h> header file. */ 4047191de28Ssthen#undef HAVE_NETTLE_EDDSA_H 4057191de28Ssthen 4062c144df0Ssthen/* Define to 1 if you have the <net/if.h> header file. */ 4072c144df0Ssthen#undef HAVE_NET_IF_H 4082c144df0Ssthen 4092c144df0Ssthen/* Define this to use nghttp2 client. */ 4102c144df0Ssthen#undef HAVE_NGHTTP2 4112c144df0Ssthen 4122c144df0Ssthen/* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */ 4132c144df0Ssthen#undef HAVE_NGHTTP2_NGHTTP2_H 4142c144df0Ssthen 4153dcb24b8Ssthen/* Use libnss for crypto */ 4163dcb24b8Ssthen#undef HAVE_NSS 4173dcb24b8Ssthen 41877079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ 41977079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS 42077079be7Ssthen 42177079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */ 42277079be7Ssthen#undef HAVE_OPENSSL_BN_H 42377079be7Ssthen 424933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */ 425933707f3Ssthen#undef HAVE_OPENSSL_CONFIG 426933707f3Ssthen 427933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */ 428933707f3Ssthen#undef HAVE_OPENSSL_CONF_H 429933707f3Ssthen 430a3167c07Ssthen/* Define to 1 if you have the <openssl/core_names.h> header file. */ 431a3167c07Ssthen#undef HAVE_OPENSSL_CORE_NAMES_H 432a3167c07Ssthen 43377079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */ 43477079be7Ssthen#undef HAVE_OPENSSL_DH_H 43577079be7Ssthen 43677079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */ 43777079be7Ssthen#undef HAVE_OPENSSL_DSA_H 43877079be7Ssthen 439933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */ 440933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H 441933707f3Ssthen 442933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */ 443933707f3Ssthen#undef HAVE_OPENSSL_ERR_H 444933707f3Ssthen 44577079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 44677079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO 44777079be7Ssthen 44877079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 44977079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL 45077079be7Ssthen 451191f22c6Ssthen/* Define to 1 if you have the <openssl/param_build.h> header file. */ 452191f22c6Ssthen#undef HAVE_OPENSSL_PARAM_BUILD_H 453191f22c6Ssthen 454933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */ 455933707f3Ssthen#undef HAVE_OPENSSL_RAND_H 456933707f3Ssthen 45777079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */ 45877079be7Ssthen#undef HAVE_OPENSSL_RSA_H 45977079be7Ssthen 460933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */ 461933707f3Ssthen#undef HAVE_OPENSSL_SSL_H 462933707f3Ssthen 463191f22c6Ssthen/* Define to 1 if you have the `OSSL_PARAM_BLD_new' function. */ 464191f22c6Ssthen#undef HAVE_OSSL_PARAM_BLD_NEW 465191f22c6Ssthen 46645872187Ssthen/* Define to 1 if you have the `poll' function. */ 46745872187Ssthen#undef HAVE_POLL 46845872187Ssthen 46945872187Ssthen/* Define to 1 if you have the <poll.h> header file. */ 47045872187Ssthen#undef HAVE_POLL_H 47145872187Ssthen 472933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */ 473933707f3Ssthen#undef HAVE_PTHREAD 474933707f3Ssthen 475229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */ 476229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT 477229e174cSsthen 478933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */ 479933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T 480933707f3Ssthen 481933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */ 482933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T 483933707f3Ssthen 484933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */ 485933707f3Ssthen#undef HAVE_PWD_H 486933707f3Ssthen 487933707f3Ssthen/* Define if you have Python libraries and header files. */ 488933707f3Ssthen#undef HAVE_PYTHON 489933707f3Ssthen 490933707f3Ssthen/* Define to 1 if you have the `random' function. */ 491933707f3Ssthen#undef HAVE_RANDOM 492933707f3Ssthen 49377079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */ 49477079be7Ssthen#undef HAVE_RAND_CLEANUP 49577079be7Ssthen 496550cf4a9Ssthen/* If we have reallocarray(3) */ 497fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY 498fdfb4ba6Ssthen 499933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */ 500933707f3Ssthen#undef HAVE_RECVMSG 501933707f3Ssthen 502933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */ 503933707f3Ssthen#undef HAVE_SENDMSG 504933707f3Ssthen 505933707f3Ssthen/* Define to 1 if you have the `setregid' function. */ 506933707f3Ssthen#undef HAVE_SETREGID 507933707f3Ssthen 508933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */ 509933707f3Ssthen#undef HAVE_SETRESGID 510933707f3Ssthen 511933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */ 512933707f3Ssthen#undef HAVE_SETRESUID 513933707f3Ssthen 514933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */ 515933707f3Ssthen#undef HAVE_SETREUID 516933707f3Ssthen 517933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */ 518933707f3Ssthen#undef HAVE_SETRLIMIT 519933707f3Ssthen 520933707f3Ssthen/* Define to 1 if you have the `setsid' function. */ 521933707f3Ssthen#undef HAVE_SETSID 522933707f3Ssthen 523933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */ 524933707f3Ssthen#undef HAVE_SETUSERCONTEXT 525933707f3Ssthen 52698f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */ 52798f3ca02Sbrad#undef HAVE_SHA512_UPDATE 52898f3ca02Sbrad 5292be9e038Ssthen/* Define to 1 if you have the `shmget' function. */ 5302be9e038Ssthen#undef HAVE_SHMGET 5312be9e038Ssthen 532933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */ 533933707f3Ssthen#undef HAVE_SIGPROCMASK 534933707f3Ssthen 535933707f3Ssthen/* Define to 1 if you have the `sleep' function. */ 536933707f3Ssthen#undef HAVE_SLEEP 537933707f3Ssthen 538933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */ 539933707f3Ssthen#undef HAVE_SNPRINTF 540933707f3Ssthen 541933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */ 542933707f3Ssthen#undef HAVE_SOCKETPAIR 543933707f3Ssthen 544933707f3Ssthen/* Using Solaris threads */ 545933707f3Ssthen#undef HAVE_SOLARIS_THREADS 546933707f3Ssthen 547933707f3Ssthen/* Define to 1 if you have the `srandom' function. */ 548933707f3Ssthen#undef HAVE_SRANDOM 549933707f3Ssthen 550933707f3Ssthen/* Define if you have the SSL libraries installed. */ 551933707f3Ssthen#undef HAVE_SSL 552933707f3Ssthen 553191f22c6Ssthen/* Define to 1 if you have the `SSL_CTX_set_alpn_protos' function. */ 554191f22c6Ssthen#undef HAVE_SSL_CTX_SET_ALPN_PROTOS 555191f22c6Ssthen 5562c144df0Ssthen/* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */ 5572c144df0Ssthen#undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB 5582c144df0Ssthen 559f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */ 560f6b99bafSsthen#undef HAVE_SSL_CTX_SET_CIPHERSUITES 561f6b99bafSsthen 56277079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 56377079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL 56477079be7Ssthen 565a3167c07Ssthen/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb' 566a3167c07Ssthen function. */ 567a3167c07Ssthen#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 568f6b99bafSsthen 569191f22c6Ssthen/* Define to 1 if you have the `SSL_get0_alpn_selected' function. */ 570191f22c6Ssthen#undef HAVE_SSL_GET0_ALPN_SELECTED 571191f22c6Ssthen 572938a3a5eSflorian/* Define to 1 if you have the `SSL_get0_peername' function. */ 573938a3a5eSflorian#undef HAVE_SSL_GET0_PEERNAME 574938a3a5eSflorian 575191f22c6Ssthen/* Define to 1 if you have the `SSL_get1_peer_certificate' function. */ 576191f22c6Ssthen#undef HAVE_SSL_GET1_PEER_CERTIFICATE 577191f22c6Ssthen 578938a3a5eSflorian/* Define to 1 if you have the `SSL_set1_host' function. */ 579938a3a5eSflorian#undef HAVE_SSL_SET1_HOST 580938a3a5eSflorian 581933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */ 582933707f3Ssthen#undef HAVE_STDARG_H 583933707f3Ssthen 584933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */ 585933707f3Ssthen#undef HAVE_STDBOOL_H 586933707f3Ssthen 587933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */ 588933707f3Ssthen#undef HAVE_STDINT_H 589933707f3Ssthen 590933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */ 591933707f3Ssthen#undef HAVE_STDLIB_H 592933707f3Ssthen 593933707f3Ssthen/* Define to 1 if you have the `strftime' function. */ 594933707f3Ssthen#undef HAVE_STRFTIME 595933707f3Ssthen 596933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */ 597933707f3Ssthen#undef HAVE_STRINGS_H 598933707f3Ssthen 599933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */ 600933707f3Ssthen#undef HAVE_STRING_H 601933707f3Ssthen 6025d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */ 6035d76a658Ssthen#undef HAVE_STRLCAT 6045d76a658Ssthen 605933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */ 606933707f3Ssthen#undef HAVE_STRLCPY 607933707f3Ssthen 608933707f3Ssthen/* Define to 1 if you have the `strptime' function. */ 609933707f3Ssthen#undef HAVE_STRPTIME 610933707f3Ssthen 6112ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */ 6122ee382b6Ssthen#undef HAVE_STRSEP 6132ee382b6Ssthen 614d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ 615d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 616d8d14d0cSsthen 617b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 618b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 619b2cdf21fSsthen 620933707f3Ssthen/* Define if you have Swig libraries and header files. */ 621933707f3Ssthen#undef HAVE_SWIG 622933707f3Ssthen 623933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */ 624933707f3Ssthen#undef HAVE_SYSLOG_H 625933707f3Ssthen 62677079be7Ssthen/* Define to 1 if systemd should be used */ 62777079be7Ssthen#undef HAVE_SYSTEMD 62877079be7Ssthen 62920237c55Ssthen/* Define to 1 if you have the <sys/endian.h> header file. */ 63020237c55Ssthen#undef HAVE_SYS_ENDIAN_H 63120237c55Ssthen 6322be9e038Ssthen/* Define to 1 if you have the <sys/ipc.h> header file. */ 6332be9e038Ssthen#undef HAVE_SYS_IPC_H 6342be9e038Ssthen 635933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */ 636933707f3Ssthen#undef HAVE_SYS_PARAM_H 637933707f3Ssthen 638933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */ 639933707f3Ssthen#undef HAVE_SYS_RESOURCE_H 640933707f3Ssthen 6412c144df0Ssthen/* Define to 1 if you have the <sys/select.h> header file. */ 6422c144df0Ssthen#undef HAVE_SYS_SELECT_H 6432c144df0Ssthen 64498f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */ 64598f3ca02Sbrad#undef HAVE_SYS_SHA2_H 64698f3ca02Sbrad 6472be9e038Ssthen/* Define to 1 if you have the <sys/shm.h> header file. */ 6482be9e038Ssthen#undef HAVE_SYS_SHM_H 6492be9e038Ssthen 650933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */ 651933707f3Ssthen#undef HAVE_SYS_SOCKET_H 652933707f3Ssthen 653933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */ 654933707f3Ssthen#undef HAVE_SYS_STAT_H 655933707f3Ssthen 65698f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */ 65798f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H 65898f3ca02Sbrad 659933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */ 660933707f3Ssthen#undef HAVE_SYS_TYPES_H 661933707f3Ssthen 662933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */ 663933707f3Ssthen#undef HAVE_SYS_UIO_H 664933707f3Ssthen 665b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */ 666b2cdf21fSsthen#undef HAVE_SYS_UN_H 667b2cdf21fSsthen 668933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */ 669933707f3Ssthen#undef HAVE_SYS_WAIT_H 670933707f3Ssthen 671a3167c07Ssthen/* Define to 1 if you have the <TargetConditionals.h> header file. */ 672a3167c07Ssthen#undef HAVE_TARGETCONDITIONALS_H 673a3167c07Ssthen 674933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */ 675933707f3Ssthen#undef HAVE_TIME_H 676933707f3Ssthen 677933707f3Ssthen/* Define to 1 if you have the `tzset' function. */ 678933707f3Ssthen#undef HAVE_TZSET 679933707f3Ssthen 680933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */ 681933707f3Ssthen#undef HAVE_UNISTD_H 682933707f3Ssthen 683933707f3Ssthen/* Define to 1 if you have the `usleep' function. */ 684933707f3Ssthen#undef HAVE_USLEEP 685933707f3Ssthen 686933707f3Ssthen/* Define to 1 if you have the `vfork' function. */ 687933707f3Ssthen#undef HAVE_VFORK 688933707f3Ssthen 689933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */ 690933707f3Ssthen#undef HAVE_VFORK_H 691933707f3Ssthen 692933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */ 693933707f3Ssthen#undef HAVE_WINDOWS_H 694933707f3Ssthen 695933707f3Ssthen/* Using Windows threads */ 696933707f3Ssthen#undef HAVE_WINDOWS_THREADS 697933707f3Ssthen 698933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */ 699933707f3Ssthen#undef HAVE_WINSOCK2_H 700933707f3Ssthen 701933707f3Ssthen/* Define to 1 if `fork' works. */ 702933707f3Ssthen#undef HAVE_WORKING_FORK 703933707f3Ssthen 704933707f3Ssthen/* Define to 1 if `vfork' works. */ 705933707f3Ssthen#undef HAVE_WORKING_VFORK 706933707f3Ssthen 707933707f3Ssthen/* Define to 1 if you have the `writev' function. */ 708933707f3Ssthen#undef HAVE_WRITEV 709933707f3Ssthen 710933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */ 711933707f3Ssthen#undef HAVE_WS2TCPIP_H 712933707f3Ssthen 713f6b99bafSsthen/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */ 714f6b99bafSsthen#undef HAVE_X509_VERIFY_PARAM_SET1_HOST 715f6b99bafSsthen 716933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */ 717933707f3Ssthen#undef HAVE__BEGINTHREADEX 718933707f3Ssthen 719ebf5bb73Ssthen/* If HMAC_Init_ex() returns void */ 720ebf5bb73Ssthen#undef HMAC_INIT_EX_RETURNS_VOID 721ebf5bb73Ssthen 722933707f3Ssthen/* if lex has yylex_destroy */ 723933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY 724933707f3Ssthen 72532e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */ 726933707f3Ssthen#undef LT_OBJDIR 727933707f3Ssthen 728933707f3Ssthen/* Define to the maximum message length to pass to syslog. */ 729933707f3Ssthen#undef MAXSYSLOGMSGLEN 730933707f3Ssthen 731933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */ 732933707f3Ssthen#undef MEMCMP_IS_BROKEN 733933707f3Ssthen 734933707f3Ssthen/* Define if mkdir has one argument. */ 735933707f3Ssthen#undef MKDIR_HAS_ONE_ARG 736933707f3Ssthen 737933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes 738933707f3Ssthen lower performance). */ 739933707f3Ssthen#undef NONBLOCKING_IS_BROKEN 740933707f3Ssthen 741933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */ 742933707f3Ssthen#undef OMITTED__D_ALL_SOURCE 743933707f3Ssthen 744933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */ 745933707f3Ssthen#undef OMITTED__D_BSD_SOURCE 746933707f3Ssthen 74732e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */ 74832e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE 74932e31f52Ssthen 750933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */ 751933707f3Ssthen#undef OMITTED__D_GNU_SOURCE 752933707f3Ssthen 753933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */ 754933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1 755933707f3Ssthen 756933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */ 757933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112 758933707f3Ssthen 759933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */ 760933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600 761933707f3Ssthen 762933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ 763933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 764933707f3Ssthen 765933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */ 766933707f3Ssthen#undef OMITTED__D__EXTENSIONS__ 767933707f3Ssthen 768933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */ 769933707f3Ssthen#undef PACKAGE_BUGREPORT 770933707f3Ssthen 771933707f3Ssthen/* Define to the full name of this package. */ 772933707f3Ssthen#undef PACKAGE_NAME 773933707f3Ssthen 774933707f3Ssthen/* Define to the full name and version of this package. */ 775933707f3Ssthen#undef PACKAGE_STRING 776933707f3Ssthen 777933707f3Ssthen/* Define to the one symbol short name of this package. */ 778933707f3Ssthen#undef PACKAGE_TARNAME 779933707f3Ssthen 780933707f3Ssthen/* Define to the home page for this package. */ 781933707f3Ssthen#undef PACKAGE_URL 782933707f3Ssthen 783933707f3Ssthen/* Define to the version of this package. */ 784933707f3Ssthen#undef PACKAGE_VERSION 785933707f3Ssthen 786933707f3Ssthen/* default pidfile location */ 787933707f3Ssthen#undef PIDFILE 788933707f3Ssthen 789933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on 790933707f3Ssthen your system. */ 791933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE 792933707f3Ssthen 7939982a05dSsthen/* Return type of signal handlers, but autoconf 2.70 says 'your code may 7949982a05dSsthen safely assume C89 semantics that RETSIGTYPE is void.' */ 795933707f3Ssthen#undef RETSIGTYPE 796933707f3Ssthen 7973150e5f6Ssthen/* if REUSEPORT is enabled by default */ 7983150e5f6Ssthen#undef REUSEPORT_DEFAULT 7993150e5f6Ssthen 800933707f3Ssthen/* default rootkey location */ 801933707f3Ssthen#undef ROOT_ANCHOR_FILE 802933707f3Ssthen 803933707f3Ssthen/* default rootcert location */ 804933707f3Ssthen#undef ROOT_CERT_FILE 805933707f3Ssthen 806933707f3Ssthen/* version number for resource files */ 807933707f3Ssthen#undef RSRC_PACKAGE_VERSION 808933707f3Ssthen 809933707f3Ssthen/* Directory to chdir to */ 810933707f3Ssthen#undef RUN_DIR 811933707f3Ssthen 812933707f3Ssthen/* Shared data */ 813933707f3Ssthen#undef SHARE_DIR 814933707f3Ssthen 81545872187Ssthen/* The size of `pthread_t', as computed by sizeof. */ 81645872187Ssthen#undef SIZEOF_PTHREAD_T 81745872187Ssthen 818ebf5bb73Ssthen/* The size of `size_t', as computed by sizeof. */ 819ebf5bb73Ssthen#undef SIZEOF_SIZE_T 820ebf5bb73Ssthen 8215d76a658Ssthen/* The size of `time_t', as computed by sizeof. */ 8225d76a658Ssthen#undef SIZEOF_TIME_T 8235d76a658Ssthen 82445872187Ssthen/* The size of `unsigned long', as computed by sizeof. */ 82545872187Ssthen#undef SIZEOF_UNSIGNED_LONG 82645872187Ssthen 82724893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */ 82824893edcSsthen#undef SNPRINTF_RET_BROKEN 82924893edcSsthen 830bdfc4d55Sflorian/* Define to 1 if libsodium supports sodium_set_misuse_handler */ 831bdfc4d55Sflorian#undef SODIUM_MISUSE_HANDLER 832bdfc4d55Sflorian 833933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */ 834933707f3Ssthen#undef STDC_HEADERS 835933707f3Ssthen 836933707f3Ssthen/* use default strptime. */ 837933707f3Ssthen#undef STRPTIME_WORKS 838933707f3Ssthen 839933707f3Ssthen/* Use win32 resources and API */ 840933707f3Ssthen#undef UB_ON_WINDOWS 841933707f3Ssthen 842ebf5bb73Ssthen/* the SYSLOG_FACILITY to use, default LOG_DAEMON */ 843ebf5bb73Ssthen#undef UB_SYSLOG_FACILITY 844ebf5bb73Ssthen 845933707f3Ssthen/* default username */ 846933707f3Ssthen#undef UB_USERNAME 847933707f3Ssthen 848933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */ 849933707f3Ssthen#undef UNBOUND_ALLOC_LITE 850933707f3Ssthen 851933707f3Ssthen/* use malloc not regions, for debug use */ 852933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL 853933707f3Ssthen 854933707f3Ssthen/* use statistics for allocs and frees, for debug use */ 855933707f3Ssthen#undef UNBOUND_ALLOC_STATS 856933707f3Ssthen 857933707f3Ssthen/* define this to enable debug checks. */ 858933707f3Ssthen#undef UNBOUND_DEBUG 859933707f3Ssthen 8602ee382b6Ssthen/* Define to 1 to use cachedb support */ 8612ee382b6Ssthen#undef USE_CACHEDB 8622ee382b6Ssthen 8632be9e038Ssthen/* Define to 1 to enable dnscrypt support */ 8642be9e038Ssthen#undef USE_DNSCRYPT 8652be9e038Ssthen 8662be9e038Ssthen/* Define to 1 to enable dnscrypt with xchacha20 support */ 8672be9e038Ssthen#undef USE_DNSCRYPT_XCHACHA20 8682be9e038Ssthen 86998f3ca02Sbrad/* Define to 1 to enable dnstap support */ 87098f3ca02Sbrad#undef USE_DNSTAP 87198f3ca02Sbrad 8722ee382b6Ssthen/* Define this to enable DSA support. */ 8732ee382b6Ssthen#undef USE_DSA 8742ee382b6Ssthen 875d8d14d0cSsthen/* Define this to enable ECDSA support. */ 876d8d14d0cSsthen#undef USE_ECDSA 877d8d14d0cSsthen 878d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */ 879d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND 880d8d14d0cSsthen 8812be9e038Ssthen/* Define this to enable ED25519 support. */ 8822be9e038Ssthen#undef USE_ED25519 8832be9e038Ssthen 88420237c55Ssthen/* Define this to enable ED448 support. */ 88520237c55Ssthen#undef USE_ED448 88620237c55Ssthen 887933707f3Ssthen/* Define this to enable GOST support. */ 888933707f3Ssthen#undef USE_GOST 889933707f3Ssthen 8902be9e038Ssthen/* Define to 1 to use ipsecmod support. */ 8912be9e038Ssthen#undef USE_IPSECMOD 8922be9e038Ssthen 8938240c1b9Ssthen/* Define to 1 to use ipset support */ 8948240c1b9Ssthen#undef USE_IPSET 8958240c1b9Ssthen 896a3167c07Ssthen/* Define if you enable libevent */ 897a3167c07Ssthen#undef USE_LIBEVENT 898a3167c07Ssthen 899191f22c6Ssthen/* Define this to enable use of /proc/sys/net/ipv4/ip_local_port_range as a 900191f22c6Ssthen default outgoing port range. This is only for the libunbound on Linux and 901191f22c6Ssthen does not affect unbound resolving daemon itself. This may severely limit 902191f22c6Ssthen the number of available outgoing ports and thus decrease randomness. Define 903191f22c6Ssthen this only when the target system restricts (e.g. some of SELinux enabled 904191f22c6Ssthen distributions) the use of non-ephemeral ports. */ 905191f22c6Ssthen#undef USE_LINUX_IP_LOCAL_PORT_RANGE 906191f22c6Ssthen 907933707f3Ssthen/* Define if you want to use internal select based events */ 908933707f3Ssthen#undef USE_MINI_EVENT 909933707f3Ssthen 91077079be7Ssthen/* Define this to enable client TCP Fast Open. */ 91177079be7Ssthen#undef USE_MSG_FASTOPEN 91277079be7Ssthen 91377079be7Ssthen/* Define this to enable client TCP Fast Open. */ 91477079be7Ssthen#undef USE_OSX_MSG_FASTOPEN 91577079be7Ssthen 91620237c55Ssthen/* Define this to use hiredis client. */ 91720237c55Ssthen#undef USE_REDIS 91820237c55Ssthen 9192be9e038Ssthen/* Define this to enable SHA1 support. */ 9202be9e038Ssthen#undef USE_SHA1 9212be9e038Ssthen 922933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */ 923933707f3Ssthen#undef USE_SHA2 924933707f3Ssthen 925933707f3Ssthen/* Enable extensions on AIX 3, Interix. */ 926933707f3Ssthen#ifndef _ALL_SOURCE 927933707f3Ssthen# undef _ALL_SOURCE 928933707f3Ssthen#endif 929933707f3Ssthen/* Enable GNU extensions on systems that have them. */ 930933707f3Ssthen#ifndef _GNU_SOURCE 931933707f3Ssthen# undef _GNU_SOURCE 932933707f3Ssthen#endif 933933707f3Ssthen/* Enable threading extensions on Solaris. */ 934933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS 935933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS 936933707f3Ssthen#endif 937933707f3Ssthen/* Enable extensions on HP NonStop. */ 938933707f3Ssthen#ifndef _TANDEM_SOURCE 939933707f3Ssthen# undef _TANDEM_SOURCE 940933707f3Ssthen#endif 941933707f3Ssthen/* Enable general extensions on Solaris. */ 942933707f3Ssthen#ifndef __EXTENSIONS__ 943933707f3Ssthen# undef __EXTENSIONS__ 944933707f3Ssthen#endif 945933707f3Ssthen 946933707f3Ssthen 94777079be7Ssthen/* Define this to enable server TCP Fast Open. */ 94877079be7Ssthen#undef USE_TCP_FASTOPEN 94977079be7Ssthen 950933707f3Ssthen/* Whether the windows socket API is used */ 951933707f3Ssthen#undef USE_WINSOCK 952933707f3Ssthen 953933707f3Ssthen/* the version of the windows API enabled */ 954933707f3Ssthen#undef WINVER 955933707f3Ssthen 956a3167c07Ssthen/* Define if you want dynlib module. */ 957a3167c07Ssthen#undef WITH_DYNLIBMODULE 958a3167c07Ssthen 959933707f3Ssthen/* Define if you want Python module. */ 960933707f3Ssthen#undef WITH_PYTHONMODULE 961933707f3Ssthen 962933707f3Ssthen/* Define if you want PyUnbound. */ 963933707f3Ssthen#undef WITH_PYUNBOUND 964933707f3Ssthen 965933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 966933707f3Ssthen `char[]'. */ 967933707f3Ssthen#undef YYTEXT_POINTER 968933707f3Ssthen 969229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5. */ 970229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE 971229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1 972229e174cSsthen#endif 973229e174cSsthen 974933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */ 975933707f3Ssthen#undef _FILE_OFFSET_BITS 976933707f3Ssthen 977933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 978933707f3Ssthen#undef _LARGEFILE_SOURCE 979933707f3Ssthen 980933707f3Ssthen/* Define for large files, on AIX-style hosts. */ 981933707f3Ssthen#undef _LARGE_FILES 982933707f3Ssthen 983933707f3Ssthen/* Define to 1 if on MINIX. */ 984933707f3Ssthen#undef _MINIX 985933707f3Ssthen 9865d76a658Ssthen/* Enable for compile on Minix */ 9875d76a658Ssthen#undef _NETBSD_SOURCE 9885d76a658Ssthen 989933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with 990933707f3Ssthen this defined. */ 991933707f3Ssthen#undef _POSIX_1_SOURCE 992933707f3Ssthen 993933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */ 994933707f3Ssthen#undef _POSIX_SOURCE 995933707f3Ssthen 9960bdb4f62Ssthen/* defined to use gcc ansi snprintf and sscanf that understands %lld when 9970bdb4f62Ssthen compiled for windows. */ 9980bdb4f62Ssthen#undef __USE_MINGW_ANSI_STDIO 9990bdb4f62Ssthen 1000933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */ 1001933707f3Ssthen#undef const 1002933707f3Ssthen 1003933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 1004933707f3Ssthen#undef gid_t 1005933707f3Ssthen 1006933707f3Ssthen/* in_addr_t */ 1007933707f3Ssthen#undef in_addr_t 1008933707f3Ssthen 1009933707f3Ssthen/* in_port_t */ 1010933707f3Ssthen#undef in_port_t 1011933707f3Ssthen 1012933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler 1013933707f3Ssthen calls it, or to nothing if 'inline' is not supported under any name. */ 1014933707f3Ssthen#ifndef __cplusplus 1015933707f3Ssthen#undef inline 1016933707f3Ssthen#endif 1017933707f3Ssthen 1018933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */ 1019933707f3Ssthen#undef int16_t 1020933707f3Ssthen 1021933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 1022933707f3Ssthen#undef int32_t 1023933707f3Ssthen 1024933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */ 1025933707f3Ssthen#undef int64_t 1026933707f3Ssthen 1027933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */ 1028933707f3Ssthen#undef int8_t 1029933707f3Ssthen 1030933707f3Ssthen/* Define if replacement function should be used. */ 1031933707f3Ssthen#undef malloc 1032933707f3Ssthen 1033933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */ 1034933707f3Ssthen#undef off_t 1035933707f3Ssthen 1036933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 1037933707f3Ssthen#undef pid_t 1038933707f3Ssthen 1039933707f3Ssthen/* Define to 'int' if not defined */ 1040933707f3Ssthen#undef rlim_t 1041933707f3Ssthen 1042933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 1043933707f3Ssthen#undef size_t 1044933707f3Ssthen 1045933707f3Ssthen/* Define to 'int' if not defined */ 1046933707f3Ssthen#undef socklen_t 1047933707f3Ssthen 1048933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 1049933707f3Ssthen#undef ssize_t 1050933707f3Ssthen 1051933707f3Ssthen/* Define to 'unsigned char if not defined */ 1052933707f3Ssthen#undef u_char 1053933707f3Ssthen 1054933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 1055933707f3Ssthen#undef uid_t 1056933707f3Ssthen 1057933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */ 1058933707f3Ssthen#undef uint16_t 1059933707f3Ssthen 1060933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 1061933707f3Ssthen#undef uint32_t 1062933707f3Ssthen 1063933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */ 1064933707f3Ssthen#undef uint64_t 1065933707f3Ssthen 1066933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */ 1067933707f3Ssthen#undef uint8_t 1068933707f3Ssthen 1069933707f3Ssthen/* Define as `fork' if `vfork' does not work. */ 1070933707f3Ssthen#undef vfork 1071933707f3Ssthen 1072933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) 1073933707f3Ssthen#define _GNU_SOURCE 1 1074933707f3Ssthen#endif 1075933707f3Ssthen 1076933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) 1077933707f3Ssthen#define _BSD_SOURCE 1 1078933707f3Ssthen#endif 1079933707f3Ssthen 108032e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) 108132e31f52Ssthen#define _DEFAULT_SOURCE 1 108232e31f52Ssthen#endif 108332e31f52Ssthen 1084933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) 1085933707f3Ssthen#define __EXTENSIONS__ 1 1086933707f3Ssthen#endif 1087933707f3Ssthen 1088933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) 1089933707f3Ssthen#define _POSIX_C_SOURCE 200112 1090933707f3Ssthen#endif 1091933707f3Ssthen 1092933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) 1093933707f3Ssthen#define _XOPEN_SOURCE 600 1094933707f3Ssthen#endif 1095933707f3Ssthen 1096933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) 1097933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1 1098933707f3Ssthen#endif 1099933707f3Ssthen 1100933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) 1101933707f3Ssthen#define _ALL_SOURCE 1 1102933707f3Ssthen#endif 1103933707f3Ssthen 1104933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) 1105933707f3Ssthen#define _LARGEFILE_SOURCE 1 1106933707f3Ssthen#endif 1107933707f3Ssthen 1108933707f3Ssthen 1109933707f3Ssthen 1110933707f3Ssthen 1111550cf4a9Ssthen#ifndef _OPENBSD_SOURCE 1112550cf4a9Ssthen#define _OPENBSD_SOURCE 1 1113550cf4a9Ssthen#endif 1114550cf4a9Ssthen 1115933707f3Ssthen#ifndef UNBOUND_DEBUG 1116550cf4a9Ssthen# ifndef NDEBUG 1117933707f3Ssthen# define NDEBUG 1118933707f3Ssthen# endif 1119550cf4a9Ssthen#endif 1120933707f3Ssthen 11215d76a658Ssthen/** Use small-ldns codebase */ 11225d76a658Ssthen#define USE_SLDNS 1 11235d76a658Ssthen#ifdef HAVE_SSL 11245d76a658Ssthen# define LDNS_BUILD_CONFIG_HAVE_SSL 1 11255d76a658Ssthen#endif 11265d76a658Ssthen 1127933707f3Ssthen#include <stdio.h> 1128933707f3Ssthen#include <string.h> 1129933707f3Ssthen#include <unistd.h> 1130933707f3Ssthen#include <assert.h> 1131933707f3Ssthen 1132933707f3Ssthen#if STDC_HEADERS 1133933707f3Ssthen#include <stdlib.h> 1134933707f3Ssthen#include <stddef.h> 1135933707f3Ssthen#endif 1136933707f3Ssthen 11375d76a658Ssthen#ifdef HAVE_STDARG_H 11385d76a658Ssthen#include <stdarg.h> 11395d76a658Ssthen#endif 11405d76a658Ssthen 1141933707f3Ssthen#ifdef HAVE_STDINT_H 1142933707f3Ssthen#include <stdint.h> 1143933707f3Ssthen#endif 1144933707f3Ssthen 1145933707f3Ssthen#include <errno.h> 1146933707f3Ssthen 1147933707f3Ssthen#if HAVE_SYS_PARAM_H 1148933707f3Ssthen#include <sys/param.h> 1149933707f3Ssthen#endif 1150933707f3Ssthen 1151933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H 1152933707f3Ssthen#include <sys/socket.h> 1153933707f3Ssthen#endif 1154933707f3Ssthen 1155933707f3Ssthen#ifdef HAVE_SYS_UIO_H 1156933707f3Ssthen#include <sys/uio.h> 1157933707f3Ssthen#endif 1158933707f3Ssthen 1159933707f3Ssthen#ifdef HAVE_NETINET_IN_H 1160933707f3Ssthen#include <netinet/in.h> 1161933707f3Ssthen#endif 1162933707f3Ssthen 116332e31f52Ssthen#ifdef HAVE_NETINET_TCP_H 116432e31f52Ssthen#include <netinet/tcp.h> 116532e31f52Ssthen#endif 116632e31f52Ssthen 1167933707f3Ssthen#ifdef HAVE_ARPA_INET_H 1168933707f3Ssthen#include <arpa/inet.h> 1169933707f3Ssthen#endif 1170933707f3Ssthen 1171933707f3Ssthen#ifdef HAVE_WINSOCK2_H 1172933707f3Ssthen#include <winsock2.h> 1173933707f3Ssthen#endif 1174933707f3Ssthen 1175933707f3Ssthen#ifdef HAVE_WS2TCPIP_H 1176933707f3Ssthen#include <ws2tcpip.h> 1177933707f3Ssthen#endif 1178933707f3Ssthen 11790bdb4f62Ssthen#if !defined(USE_WINSOCK) || !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) || defined(__USE_MINGW_ANSI_STDIO) 11805d76a658Ssthen#define ARG_LL "%ll" 11815d76a658Ssthen#else 11825d76a658Ssthen#define ARG_LL "%I64" 11835d76a658Ssthen#endif 11845d76a658Ssthen 1185b2cdf21fSsthen#ifndef AF_LOCAL 1186b2cdf21fSsthen#define AF_LOCAL AF_UNIX 1187b2cdf21fSsthen#endif 1188b2cdf21fSsthen 1189933707f3Ssthen 1190933707f3Ssthen 1191933707f3Ssthen#ifdef HAVE_ATTR_FORMAT 1192933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) \ 1193933707f3Ssthen __attribute__ ((format (archetype, string_index, first_to_check))) 1194933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */ 1195933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 1196933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */ 1197933707f3Ssthen 1198933707f3Ssthen 1199933707f3Ssthen#if defined(DOXYGEN) 1200933707f3Ssthen# define ATTR_UNUSED(x) x 1201933707f3Ssthen#elif defined(__cplusplus) 1202933707f3Ssthen# define ATTR_UNUSED(x) 1203933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED) 1204933707f3Ssthen# define ATTR_UNUSED(x) x __attribute__((unused)) 1205933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */ 1206933707f3Ssthen# define ATTR_UNUSED(x) x 1207933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */ 1208933707f3Ssthen 1209933707f3Ssthen 1210933707f3Ssthen#ifndef HAVE_FSEEKO 1211933707f3Ssthen#define fseeko fseek 1212933707f3Ssthen#define ftello ftell 1213933707f3Ssthen#endif /* HAVE_FSEEKO */ 1214933707f3Ssthen 1215933707f3Ssthen 1216933707f3Ssthen#ifndef MAXHOSTNAMELEN 1217933707f3Ssthen#define MAXHOSTNAMELEN 256 1218933707f3Ssthen#endif 1219933707f3Ssthen 122024893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) 1221933707f3Ssthen#define snprintf snprintf_unbound 1222933707f3Ssthen#define vsnprintf vsnprintf_unbound 1223933707f3Ssthen#include <stdarg.h> 1224933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...); 1225933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 122624893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */ 1227933707f3Ssthen 1228933707f3Ssthen#ifndef HAVE_INET_PTON 1229933707f3Ssthen#define inet_pton inet_pton_unbound 1230933707f3Ssthenint inet_pton(int af, const char* src, void* dst); 1231933707f3Ssthen#endif /* HAVE_INET_PTON */ 1232933707f3Ssthen 1233933707f3Ssthen 1234933707f3Ssthen#ifndef HAVE_INET_NTOP 1235933707f3Ssthen#define inet_ntop inet_ntop_unbound 1236933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 1237933707f3Ssthen#endif 1238933707f3Ssthen 1239933707f3Ssthen 1240933707f3Ssthen#ifndef HAVE_INET_ATON 1241933707f3Ssthen#define inet_aton inet_aton_unbound 1242933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr); 1243933707f3Ssthen#endif 1244933707f3Ssthen 1245933707f3Ssthen 1246933707f3Ssthen#ifndef HAVE_MEMMOVE 1247933707f3Ssthen#define memmove memmove_unbound 1248933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n); 1249933707f3Ssthen#endif 1250933707f3Ssthen 1251933707f3Ssthen 12525d76a658Ssthen#ifndef HAVE_STRLCAT 12535d76a658Ssthen#define strlcat strlcat_unbound 12545d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz); 12555d76a658Ssthen#endif 12565d76a658Ssthen 12575d76a658Ssthen 1258933707f3Ssthen#ifndef HAVE_STRLCPY 1259933707f3Ssthen#define strlcpy strlcpy_unbound 1260933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz); 1261933707f3Ssthen#endif 1262933707f3Ssthen 1263933707f3Ssthen 1264933707f3Ssthen#ifndef HAVE_GMTIME_R 1265933707f3Ssthen#define gmtime_r gmtime_r_unbound 1266933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result); 1267933707f3Ssthen#endif 1268933707f3Ssthen 1269933707f3Ssthen 1270fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY 1271fdfb4ba6Ssthen#define reallocarray reallocarrayunbound 1272fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size); 1273fdfb4ba6Ssthen#endif 1274fdfb4ba6Ssthen 1275fdfb4ba6Ssthen 1276229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H) 1277933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */ 1278933707f3Ssthen#endif /* HAVE_SLEEP */ 1279933707f3Ssthen 1280933707f3Ssthen 1281933707f3Ssthen#ifndef HAVE_USLEEP 1282933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */ 1283933707f3Ssthen#endif /* HAVE_USLEEP */ 1284933707f3Ssthen 1285933707f3Ssthen 1286933707f3Ssthen#ifndef HAVE_RANDOM 1287933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */ 1288933707f3Ssthen#endif /* HAVE_RANDOM */ 1289933707f3Ssthen 1290933707f3Ssthen 1291933707f3Ssthen#ifndef HAVE_SRANDOM 1292933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */ 1293933707f3Ssthen#endif /* HAVE_SRANDOM */ 1294933707f3Ssthen 1295933707f3Ssthen 1296933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 1297933707f3Ssthen#ifdef HAVE_WINSOCK2_H 1298933707f3Ssthen#define FD_SET_T (u_int) 1299933707f3Ssthen#else 1300933707f3Ssthen#define FD_SET_T 1301933707f3Ssthen#endif 1302933707f3Ssthen 1303933707f3Ssthen 1304933707f3Ssthen#ifndef IPV6_MIN_MTU 1305933707f3Ssthen#define IPV6_MIN_MTU 1280 1306933707f3Ssthen#endif /* IPV6_MIN_MTU */ 1307933707f3Ssthen 1308933707f3Ssthen 1309933707f3Ssthen#ifdef MEMCMP_IS_BROKEN 1310d8d14d0cSsthen#include "compat/memcmp.h" 1311933707f3Ssthen#define memcmp memcmp_unbound 1312933707f3Ssthenint memcmp(const void *x, const void *y, size_t n); 1313933707f3Ssthen#endif 1314933707f3Ssthen 1315933707f3Ssthen 1316933707f3Ssthen 1317933707f3Ssthen#ifndef HAVE_CTIME_R 1318933707f3Ssthen#define ctime_r unbound_ctime_r 1319933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf); 1320933707f3Ssthen#endif 1321933707f3Ssthen 13222ee382b6Ssthen#ifndef HAVE_STRSEP 13232ee382b6Ssthen#define strsep unbound_strsep 13242ee382b6Ssthenchar *strsep(char **stringp, const char *delim); 13252ee382b6Ssthen#endif 13262ee382b6Ssthen 132724893edcSsthen#ifndef HAVE_ISBLANK 132824893edcSsthen#define isblank unbound_isblank 132924893edcSsthenint isblank(int c); 133024893edcSsthen#endif 133124893edcSsthen 1332452a1548Ssthen#ifndef HAVE_EXPLICIT_BZERO 1333452a1548Ssthen#define explicit_bzero unbound_explicit_bzero 1334452a1548Ssthenvoid explicit_bzero(void* buf, size_t len); 1335452a1548Ssthen#endif 1336452a1548Ssthen 133777079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP 133877079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 133977079be7Ssthen#endif 134077079be7Ssthen 134177079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON 134277079be7Ssthenint inet_pton(int af, const char* src, void* dst); 134377079be7Ssthen#endif 134477079be7Ssthen 1345933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS) 1346933707f3Ssthen#define strptime unbound_strptime 1347933707f3Ssthenstruct tm; 1348933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm); 1349933707f3Ssthen#endif 1350933707f3Ssthen 1351ebf5bb73Ssthen#if !HAVE_DECL_REALLOCARRAY 1352ebf5bb73Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size); 1353ebf5bb73Ssthen#endif 1354ebf5bb73Ssthen 1355eaf2578eSsthen#ifdef HAVE_LIBBSD 1356eaf2578eSsthen#include <bsd/string.h> 1357eaf2578eSsthen#include <bsd/stdlib.h> 1358eaf2578eSsthen#endif 1359eaf2578eSsthen 136098f3ca02Sbrad#ifdef HAVE_LIBRESSL 136198f3ca02Sbrad# if !HAVE_DECL_STRLCPY 136298f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz); 136398f3ca02Sbrad# endif 136498f3ca02Sbrad# if !HAVE_DECL_STRLCAT 136598f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz); 136698f3ca02Sbrad# endif 136798f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM) 136898f3ca02Sbraduint32_t arc4random(void); 136998f3ca02Sbrad# endif 137098f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM) 137198f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 137298f3ca02Sbrad# endif 137398f3ca02Sbrad#endif /* HAVE_LIBRESSL */ 137498f3ca02Sbrad#ifndef HAVE_ARC4RANDOM 137598f3ca02Sbradint getentropy(void* buf, size_t len); 137698f3ca02Sbraduint32_t arc4random(void); 137798f3ca02Sbradvoid arc4random_buf(void* buf, size_t n); 137898f3ca02Sbradvoid _ARC4_LOCK(void); 137998f3ca02Sbradvoid _ARC4_UNLOCK(void); 1380938a3a5eSflorianvoid _ARC4_LOCK_DESTROY(void); 138198f3ca02Sbrad#endif 138298f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM 138398f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 138498f3ca02Sbrad#endif 138598f3ca02Sbrad#ifdef COMPAT_SHA512 138698f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH 138798f3ca02Sbrad#define SHA512_BLOCK_LENGTH 128 138898f3ca02Sbrad#define SHA512_DIGEST_LENGTH 64 138998f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) 139098f3ca02Sbradtypedef struct _SHA512_CTX { 139198f3ca02Sbrad uint64_t state[8]; 139298f3ca02Sbrad uint64_t bitcount[2]; 139398f3ca02Sbrad uint8_t buffer[SHA512_BLOCK_LENGTH]; 139498f3ca02Sbrad} SHA512_CTX; 139598f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */ 139698f3ca02Sbradvoid SHA512_Init(SHA512_CTX*); 139798f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t); 139898f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); 139998f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); 140098f3ca02Sbrad#endif /* COMPAT_SHA512 */ 140198f3ca02Sbrad 140298f3ca02Sbrad 140398f3ca02Sbrad 1404933707f3Ssthen#if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS)) 1405933707f3Ssthen /* using version of libevent that is not threadsafe. */ 1406933707f3Ssthen# define LIBEVENT_SIGNAL_PROBLEM 1 1407933707f3Ssthen#endif 1408933707f3Ssthen 1409933707f3Ssthen#ifndef CHECKED_INET6 1410933707f3Ssthen# define CHECKED_INET6 1411933707f3Ssthen# ifdef AF_INET6 1412933707f3Ssthen# define INET6 1413933707f3Ssthen# else 1414933707f3Ssthen# define AF_INET6 28 1415933707f3Ssthen# endif 1416933707f3Ssthen#endif /* CHECKED_INET6 */ 1417933707f3Ssthen 1418933707f3Ssthen#ifndef HAVE_GETADDRINFO 1419933707f3Ssthenstruct sockaddr_storage; 1420933707f3Ssthen#include "compat/fake-rfc2553.h" 1421933707f3Ssthen#endif 1422933707f3Ssthen 1423933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS 1424933707f3Ssthen# define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__) 1425933707f3Ssthen# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__) 1426933707f3Ssthen# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__) 1427933707f3Ssthen# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__) 1428933707f3Ssthenvoid *unbound_stat_malloc(size_t size); 1429933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size); 1430933707f3Ssthenvoid unbound_stat_free(void *ptr); 1431933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size); 1432933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line, 1433933707f3Ssthen const char* func); 1434933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file, 1435933707f3Ssthen int line, const char* func); 1436933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line, 1437933707f3Ssthen const char* func); 1438933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, 1439933707f3Ssthen int line, const char* func); 1440933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE) 1441933707f3Ssthen# include "util/alloc.h" 1442933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */ 1443933707f3Ssthen 1444933707f3Ssthen/** default port for DNS traffic. */ 1445933707f3Ssthen#define UNBOUND_DNS_PORT 53 144620237c55Ssthen/** default port for DNS over TLS traffic. */ 144720237c55Ssthen#define UNBOUND_DNS_OVER_TLS_PORT 853 14482c144df0Ssthen/** default port for DNS over HTTPS traffic. */ 14492c144df0Ssthen#define UNBOUND_DNS_OVER_HTTPS_PORT 443 1450933707f3Ssthen/** default port for unbound control traffic, registered port with IANA, 1451933707f3Ssthen ub-dns-control 8953/tcp unbound dns nameserver control */ 1452933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953 1453933707f3Ssthen/** the version of unbound-control that this software implements */ 1454933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1 1455933707f3Ssthen 1456933707f3Ssthen 1457