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 75eaf2578eSsthen/* Define to 1 if you have the <bsd/stdlib.h> header file. */ 76eaf2578eSsthen#undef HAVE_BSD_STDLIB_H 77eaf2578eSsthen 78eaf2578eSsthen/* Define to 1 if you have the <bsd/string.h> header file. */ 79eaf2578eSsthen#undef HAVE_BSD_STRING_H 80eaf2578eSsthen 81b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */ 82933707f3Ssthen#undef HAVE_CHOWN 83933707f3Ssthen 84933707f3Ssthen/* Define to 1 if you have the `chroot' function. */ 85933707f3Ssthen#undef HAVE_CHROOT 86933707f3Ssthen 8777079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ 8877079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 8977079be7Ssthen 90c3b38330Ssthen/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */ 91c3b38330Ssthen#undef HAVE_CRYPTO_THREADID_SET_CALLBACK 92c3b38330Ssthen 93933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */ 94933707f3Ssthen#undef HAVE_CTIME_R 95933707f3Ssthen 96933707f3Ssthen/* Define to 1 if you have the `daemon' function. */ 97933707f3Ssthen#undef HAVE_DAEMON 98933707f3Ssthen 9998f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you 10098f3ca02Sbrad don't. */ 10198f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM 10298f3ca02Sbrad 10398f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 10498f3ca02Sbrad if you don't. */ 10598f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM 10698f3ca02Sbrad 107550cf4a9Ssthen/* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if 108550cf4a9Ssthen you don't. */ 109550cf4a9Ssthen#undef HAVE_DECL_EVSIGNAL_ASSIGN 110550cf4a9Ssthen 11177079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 11277079be7Ssthen don't. */ 11377079be7Ssthen#undef HAVE_DECL_INET_NTOP 11477079be7Ssthen 11577079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you 11677079be7Ssthen don't. */ 11777079be7Ssthen#undef HAVE_DECL_INET_PTON 11877079be7Ssthen 1192c144df0Ssthen/* Define to 1 if you have the declaration of `nghttp2_session_server_new', 1202c144df0Ssthen and to 0 if you don't. */ 1212c144df0Ssthen#undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW 1222c144df0Ssthen 1232be9e038Ssthen/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you 1242be9e038Ssthen don't. */ 1252be9e038Ssthen#undef HAVE_DECL_NID_ED25519 1262be9e038Ssthen 12720237c55Ssthen/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you 12820237c55Ssthen don't. */ 12920237c55Ssthen#undef HAVE_DECL_NID_ED448 13020237c55Ssthen 131d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 132d8d14d0cSsthen don't. */ 133d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1 134d8d14d0cSsthen 135d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 136d8d14d0cSsthen if you don't. */ 137d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1 138d8d14d0cSsthen 139fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 140fdfb4ba6Ssthen don't. */ 141fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY 142fdfb4ba6Ssthen 14320237c55Ssthen/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you 14420237c55Ssthen don't. */ 14520237c55Ssthen#undef HAVE_DECL_REDISCONNECT 14620237c55Ssthen 147933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 148933707f3Ssthen if you don't. */ 149933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE 150933707f3Ssthen 151933707f3Ssthen/* Define to 1 if you have the declaration of 152933707f3Ssthen `SSL_COMP_get_compression_methods', and to 0 if you don't. */ 153933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 154933707f3Ssthen 155a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 156a961b961Ssthen 0 if you don't. */ 157a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 158a961b961Ssthen 15998f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you 16098f3ca02Sbrad don't. */ 16198f3ca02Sbrad#undef HAVE_DECL_STRLCAT 16298f3ca02Sbrad 16398f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you 16498f3ca02Sbrad don't. */ 16598f3ca02Sbrad#undef HAVE_DECL_STRLCPY 16698f3ca02Sbrad 16724893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if 16824893edcSsthen you don't. */ 16924893edcSsthen#undef HAVE_DECL_XML_STOPPARSER 17024893edcSsthen 171933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */ 172933707f3Ssthen#undef HAVE_DLFCN_H 173933707f3Ssthen 17477079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */ 17577079be7Ssthen#undef HAVE_DSA_SIG_SET0 17677079be7Ssthen 17798f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */ 17898f3ca02Sbrad#undef HAVE_ENDIAN_H 17998f3ca02Sbrad 1805d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */ 1815d76a658Ssthen#undef HAVE_ENDPROTOENT 1825d76a658Ssthen 18377079be7Ssthen/* Define to 1 if you have the `endpwent' function. */ 18477079be7Ssthen#undef HAVE_ENDPWENT 18577079be7Ssthen 1865d76a658Ssthen/* Define to 1 if you have the `endservent' function. */ 1875d76a658Ssthen#undef HAVE_ENDSERVENT 1885d76a658Ssthen 189a3167c07Ssthen/* Define to 1 if you have the `ENGINE_cleanup' function. */ 190a3167c07Ssthen#undef HAVE_ENGINE_CLEANUP 191a3167c07Ssthen 19277079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */ 19377079be7Ssthen#undef HAVE_ERR_FREE_STRINGS 19477079be7Ssthen 19577079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 19677079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 19777079be7Ssthen 198550cf4a9Ssthen/* Define to 1 if you have the `event_assign' function. */ 199550cf4a9Ssthen#undef HAVE_EVENT_ASSIGN 200550cf4a9Ssthen 201933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */ 202933707f3Ssthen#undef HAVE_EVENT_BASE_FREE 203933707f3Ssthen 204933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */ 205933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD 206933707f3Ssthen 207933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */ 208933707f3Ssthen#undef HAVE_EVENT_BASE_NEW 209933707f3Ssthen 210933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */ 211933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE 212933707f3Ssthen 213933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */ 214933707f3Ssthen#undef HAVE_EVENT_H 215933707f3Ssthen 216f6b99bafSsthen/* Define to 1 if you have the `EVP_aes_256_cbc' function. */ 217f6b99bafSsthen#undef HAVE_EVP_AES_256_CBC 218f6b99bafSsthen 21977079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */ 22077079be7Ssthen#undef HAVE_EVP_CLEANUP 22177079be7Ssthen 2222be9e038Ssthen/* Define to 1 if you have the `EVP_DigestVerify' function. */ 2232be9e038Ssthen#undef HAVE_EVP_DIGESTVERIFY 2242be9e038Ssthen 22577079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */ 22677079be7Ssthen#undef HAVE_EVP_DSS1 22777079be7Ssthen 228f6b99bafSsthen/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */ 229f6b99bafSsthen#undef HAVE_EVP_ENCRYPTINIT_EX 230f6b99bafSsthen 2312c144df0Ssthen/* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */ 2322c144df0Ssthen#undef HAVE_EVP_MAC_CTX_SET_PARAMS 2332c144df0Ssthen 2342ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 2352ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW 2362ee382b6Ssthen 237933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */ 238933707f3Ssthen#undef HAVE_EVP_SHA1 239933707f3Ssthen 240933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */ 241933707f3Ssthen#undef HAVE_EVP_SHA256 242933707f3Ssthen 243933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */ 244933707f3Ssthen#undef HAVE_EVP_SHA512 245933707f3Ssthen 246933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */ 247933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP 248933707f3Ssthen 249933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */ 250933707f3Ssthen#undef HAVE_EV_LOOP 251933707f3Ssthen 252933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */ 253933707f3Ssthen#undef HAVE_EXPAT_H 254933707f3Ssthen 255452a1548Ssthen/* Define to 1 if you have the `explicit_bzero' function. */ 256452a1548Ssthen#undef HAVE_EXPLICIT_BZERO 257452a1548Ssthen 258933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */ 259933707f3Ssthen#undef HAVE_FCNTL 260933707f3Ssthen 2613dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */ 2623dcb24b8Ssthen#undef HAVE_FIPS_MODE 2633dcb24b8Ssthen 264933707f3Ssthen/* Define to 1 if you have the `fork' function. */ 265933707f3Ssthen#undef HAVE_FORK 266933707f3Ssthen 267933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 268933707f3Ssthen#undef HAVE_FSEEKO 269933707f3Ssthen 27024893edcSsthen/* Define to 1 if you have the `fsync' function. */ 27124893edcSsthen#undef HAVE_FSYNC 27224893edcSsthen 273933707f3Ssthen/* Whether getaddrinfo is available */ 274933707f3Ssthen#undef HAVE_GETADDRINFO 275933707f3Ssthen 276b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */ 277b2cdf21fSsthen#undef HAVE_GETAUXVAL 278b2cdf21fSsthen 27998f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */ 28098f3ca02Sbrad#undef HAVE_GETENTROPY 28198f3ca02Sbrad 2822c144df0Ssthen/* Define to 1 if you have the `getifaddrs' function. */ 2832c144df0Ssthen#undef HAVE_GETIFADDRS 2842c144df0Ssthen 285933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */ 286933707f3Ssthen#undef HAVE_GETOPT_H 287933707f3Ssthen 288933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */ 289933707f3Ssthen#undef HAVE_GETPWNAM 290933707f3Ssthen 291933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */ 292933707f3Ssthen#undef HAVE_GETRLIMIT 293933707f3Ssthen 294933707f3Ssthen/* Define to 1 if you have the `glob' function. */ 295933707f3Ssthen#undef HAVE_GLOB 296933707f3Ssthen 297933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */ 298933707f3Ssthen#undef HAVE_GLOB_H 299933707f3Ssthen 300933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */ 301933707f3Ssthen#undef HAVE_GMTIME_R 302933707f3Ssthen 303933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */ 304933707f3Ssthen#undef HAVE_GRP_H 305933707f3Ssthen 30620237c55Ssthen/* Define to 1 if you have the <hiredis/hiredis.h> header file. */ 30720237c55Ssthen#undef HAVE_HIREDIS_HIREDIS_H 30820237c55Ssthen 309f6b99bafSsthen/* Define to 1 if you have the `HMAC_Init_ex' function. */ 310f6b99bafSsthen#undef HAVE_HMAC_INIT_EX 311f6b99bafSsthen 312eaf2578eSsthen/* If we have htobe64 */ 313eaf2578eSsthen#undef HAVE_HTOBE64 314eaf2578eSsthen 3152c144df0Ssthen/* Define to 1 if you have the <ifaddrs.h> header file. */ 3162c144df0Ssthen#undef HAVE_IFADDRS_H 3172c144df0Ssthen 318*6eb11800Sflorian/* Define to 1 if you have the `if_nametoindex' function. */ 319*6eb11800Sflorian#undef HAVE_IF_NAMETOINDEX 320*6eb11800Sflorian 321933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */ 322933707f3Ssthen#undef HAVE_INET_ATON 323933707f3Ssthen 324933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */ 325933707f3Ssthen#undef HAVE_INET_NTOP 326933707f3Ssthen 327933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */ 328933707f3Ssthen#undef HAVE_INET_PTON 329933707f3Ssthen 330933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */ 331933707f3Ssthen#undef HAVE_INITGROUPS 332933707f3Ssthen 333933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */ 334933707f3Ssthen#undef HAVE_INTTYPES_H 335933707f3Ssthen 336933707f3Ssthen/* if the function 'ioctlsocket' is available */ 337933707f3Ssthen#undef HAVE_IOCTLSOCKET 338933707f3Ssthen 339933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */ 340933707f3Ssthen#undef HAVE_IPHLPAPI_H 341933707f3Ssthen 34224893edcSsthen/* Define to 1 if you have the `isblank' function. */ 34324893edcSsthen#undef HAVE_ISBLANK 34424893edcSsthen 345933707f3Ssthen/* Define to 1 if you have the `kill' function. */ 346933707f3Ssthen#undef HAVE_KILL 347933707f3Ssthen 348eaf2578eSsthen/* Use portable libbsd functions */ 349eaf2578eSsthen#undef HAVE_LIBBSD 350eaf2578eSsthen 35120237c55Ssthen/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */ 35220237c55Ssthen#undef HAVE_LIBKERN_OSBYTEORDER_H 35320237c55Ssthen 35498f3ca02Sbrad/* Define if we have LibreSSL */ 35598f3ca02Sbrad#undef HAVE_LIBRESSL 35698f3ca02Sbrad 357933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */ 358933707f3Ssthen#undef HAVE_LOCALTIME_R 359933707f3Ssthen 360933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */ 361933707f3Ssthen#undef HAVE_LOGIN_CAP_H 362933707f3Ssthen 363933707f3Ssthen/* If have GNU libc compatible malloc */ 364933707f3Ssthen#undef HAVE_MALLOC 365933707f3Ssthen 366933707f3Ssthen/* Define to 1 if you have the `memmove' function. */ 367933707f3Ssthen#undef HAVE_MEMMOVE 368933707f3Ssthen 369933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */ 370933707f3Ssthen#undef HAVE_MEMORY_H 371933707f3Ssthen 372933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */ 373933707f3Ssthen#undef HAVE_NETDB_H 374933707f3Ssthen 375933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */ 376933707f3Ssthen#undef HAVE_NETINET_IN_H 377933707f3Ssthen 37832e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */ 37932e31f52Ssthen#undef HAVE_NETINET_TCP_H 38032e31f52Ssthen 38124893edcSsthen/* Use libnettle for crypto */ 38224893edcSsthen#undef HAVE_NETTLE 38324893edcSsthen 38477079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */ 38577079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H 38677079be7Ssthen 3877191de28Ssthen/* Define to 1 if you have the <nettle/eddsa.h> header file. */ 3887191de28Ssthen#undef HAVE_NETTLE_EDDSA_H 3897191de28Ssthen 3902c144df0Ssthen/* Define to 1 if you have the <net/if.h> header file. */ 3912c144df0Ssthen#undef HAVE_NET_IF_H 3922c144df0Ssthen 3932c144df0Ssthen/* Define this to use nghttp2 client. */ 3942c144df0Ssthen#undef HAVE_NGHTTP2 3952c144df0Ssthen 3962c144df0Ssthen/* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */ 3972c144df0Ssthen#undef HAVE_NGHTTP2_NGHTTP2_H 3982c144df0Ssthen 3993dcb24b8Ssthen/* Use libnss for crypto */ 4003dcb24b8Ssthen#undef HAVE_NSS 4013dcb24b8Ssthen 40277079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ 40377079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS 40477079be7Ssthen 40577079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */ 40677079be7Ssthen#undef HAVE_OPENSSL_BN_H 40777079be7Ssthen 408933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */ 409933707f3Ssthen#undef HAVE_OPENSSL_CONFIG 410933707f3Ssthen 411933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */ 412933707f3Ssthen#undef HAVE_OPENSSL_CONF_H 413933707f3Ssthen 414a3167c07Ssthen/* Define to 1 if you have the <openssl/core_names.h> header file. */ 415a3167c07Ssthen#undef HAVE_OPENSSL_CORE_NAMES_H 416a3167c07Ssthen 41777079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */ 41877079be7Ssthen#undef HAVE_OPENSSL_DH_H 41977079be7Ssthen 42077079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */ 42177079be7Ssthen#undef HAVE_OPENSSL_DSA_H 42277079be7Ssthen 423933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */ 424933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H 425933707f3Ssthen 426933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */ 427933707f3Ssthen#undef HAVE_OPENSSL_ERR_H 428933707f3Ssthen 42977079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 43077079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO 43177079be7Ssthen 43277079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 43377079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL 43477079be7Ssthen 435191f22c6Ssthen/* Define to 1 if you have the <openssl/param_build.h> header file. */ 436191f22c6Ssthen#undef HAVE_OPENSSL_PARAM_BUILD_H 437191f22c6Ssthen 438933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */ 439933707f3Ssthen#undef HAVE_OPENSSL_RAND_H 440933707f3Ssthen 44177079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */ 44277079be7Ssthen#undef HAVE_OPENSSL_RSA_H 44377079be7Ssthen 444933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */ 445933707f3Ssthen#undef HAVE_OPENSSL_SSL_H 446933707f3Ssthen 447191f22c6Ssthen/* Define to 1 if you have the `OSSL_PARAM_BLD_new' function. */ 448191f22c6Ssthen#undef HAVE_OSSL_PARAM_BLD_NEW 449191f22c6Ssthen 450933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */ 451933707f3Ssthen#undef HAVE_PTHREAD 452933707f3Ssthen 453229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */ 454229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT 455229e174cSsthen 456933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */ 457933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T 458933707f3Ssthen 459933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */ 460933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T 461933707f3Ssthen 462933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */ 463933707f3Ssthen#undef HAVE_PWD_H 464933707f3Ssthen 465933707f3Ssthen/* Define if you have Python libraries and header files. */ 466933707f3Ssthen#undef HAVE_PYTHON 467933707f3Ssthen 468933707f3Ssthen/* Define to 1 if you have the `random' function. */ 469933707f3Ssthen#undef HAVE_RANDOM 470933707f3Ssthen 47177079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */ 47277079be7Ssthen#undef HAVE_RAND_CLEANUP 47377079be7Ssthen 474550cf4a9Ssthen/* If we have reallocarray(3) */ 475fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY 476fdfb4ba6Ssthen 477933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */ 478933707f3Ssthen#undef HAVE_RECVMSG 479933707f3Ssthen 480933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */ 481933707f3Ssthen#undef HAVE_SENDMSG 482933707f3Ssthen 483933707f3Ssthen/* Define to 1 if you have the `setregid' function. */ 484933707f3Ssthen#undef HAVE_SETREGID 485933707f3Ssthen 486933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */ 487933707f3Ssthen#undef HAVE_SETRESGID 488933707f3Ssthen 489933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */ 490933707f3Ssthen#undef HAVE_SETRESUID 491933707f3Ssthen 492933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */ 493933707f3Ssthen#undef HAVE_SETREUID 494933707f3Ssthen 495933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */ 496933707f3Ssthen#undef HAVE_SETRLIMIT 497933707f3Ssthen 498933707f3Ssthen/* Define to 1 if you have the `setsid' function. */ 499933707f3Ssthen#undef HAVE_SETSID 500933707f3Ssthen 501933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */ 502933707f3Ssthen#undef HAVE_SETUSERCONTEXT 503933707f3Ssthen 50498f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */ 50598f3ca02Sbrad#undef HAVE_SHA512_UPDATE 50698f3ca02Sbrad 5072be9e038Ssthen/* Define to 1 if you have the `shmget' function. */ 5082be9e038Ssthen#undef HAVE_SHMGET 5092be9e038Ssthen 510933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */ 511933707f3Ssthen#undef HAVE_SIGPROCMASK 512933707f3Ssthen 513933707f3Ssthen/* Define to 1 if you have the `sleep' function. */ 514933707f3Ssthen#undef HAVE_SLEEP 515933707f3Ssthen 516933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */ 517933707f3Ssthen#undef HAVE_SNPRINTF 518933707f3Ssthen 519933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */ 520933707f3Ssthen#undef HAVE_SOCKETPAIR 521933707f3Ssthen 522933707f3Ssthen/* Using Solaris threads */ 523933707f3Ssthen#undef HAVE_SOLARIS_THREADS 524933707f3Ssthen 525933707f3Ssthen/* Define to 1 if you have the `srandom' function. */ 526933707f3Ssthen#undef HAVE_SRANDOM 527933707f3Ssthen 528933707f3Ssthen/* Define if you have the SSL libraries installed. */ 529933707f3Ssthen#undef HAVE_SSL 530933707f3Ssthen 531191f22c6Ssthen/* Define to 1 if you have the `SSL_CTX_set_alpn_protos' function. */ 532191f22c6Ssthen#undef HAVE_SSL_CTX_SET_ALPN_PROTOS 533191f22c6Ssthen 5342c144df0Ssthen/* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */ 5352c144df0Ssthen#undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB 5362c144df0Ssthen 537f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */ 538f6b99bafSsthen#undef HAVE_SSL_CTX_SET_CIPHERSUITES 539f6b99bafSsthen 54077079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 54177079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL 54277079be7Ssthen 543a3167c07Ssthen/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb' 544a3167c07Ssthen function. */ 545a3167c07Ssthen#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 546f6b99bafSsthen 547191f22c6Ssthen/* Define to 1 if you have the `SSL_get0_alpn_selected' function. */ 548191f22c6Ssthen#undef HAVE_SSL_GET0_ALPN_SELECTED 549191f22c6Ssthen 550938a3a5eSflorian/* Define to 1 if you have the `SSL_get0_peername' function. */ 551938a3a5eSflorian#undef HAVE_SSL_GET0_PEERNAME 552938a3a5eSflorian 553191f22c6Ssthen/* Define to 1 if you have the `SSL_get1_peer_certificate' function. */ 554191f22c6Ssthen#undef HAVE_SSL_GET1_PEER_CERTIFICATE 555191f22c6Ssthen 556938a3a5eSflorian/* Define to 1 if you have the `SSL_set1_host' function. */ 557938a3a5eSflorian#undef HAVE_SSL_SET1_HOST 558938a3a5eSflorian 559933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */ 560933707f3Ssthen#undef HAVE_STDARG_H 561933707f3Ssthen 562933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */ 563933707f3Ssthen#undef HAVE_STDBOOL_H 564933707f3Ssthen 565933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */ 566933707f3Ssthen#undef HAVE_STDINT_H 567933707f3Ssthen 568933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */ 569933707f3Ssthen#undef HAVE_STDLIB_H 570933707f3Ssthen 571933707f3Ssthen/* Define to 1 if you have the `strftime' function. */ 572933707f3Ssthen#undef HAVE_STRFTIME 573933707f3Ssthen 574933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */ 575933707f3Ssthen#undef HAVE_STRINGS_H 576933707f3Ssthen 577933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */ 578933707f3Ssthen#undef HAVE_STRING_H 579933707f3Ssthen 5805d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */ 5815d76a658Ssthen#undef HAVE_STRLCAT 5825d76a658Ssthen 583933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */ 584933707f3Ssthen#undef HAVE_STRLCPY 585933707f3Ssthen 586933707f3Ssthen/* Define to 1 if you have the `strptime' function. */ 587933707f3Ssthen#undef HAVE_STRPTIME 588933707f3Ssthen 5892ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */ 5902ee382b6Ssthen#undef HAVE_STRSEP 5912ee382b6Ssthen 592d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ 593d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 594d8d14d0cSsthen 595b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 596b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 597b2cdf21fSsthen 598933707f3Ssthen/* Define if you have Swig libraries and header files. */ 599933707f3Ssthen#undef HAVE_SWIG 600933707f3Ssthen 601933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */ 602933707f3Ssthen#undef HAVE_SYSLOG_H 603933707f3Ssthen 60477079be7Ssthen/* Define to 1 if systemd should be used */ 60577079be7Ssthen#undef HAVE_SYSTEMD 60677079be7Ssthen 60720237c55Ssthen/* Define to 1 if you have the <sys/endian.h> header file. */ 60820237c55Ssthen#undef HAVE_SYS_ENDIAN_H 60920237c55Ssthen 6102be9e038Ssthen/* Define to 1 if you have the <sys/ipc.h> header file. */ 6112be9e038Ssthen#undef HAVE_SYS_IPC_H 6122be9e038Ssthen 613933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */ 614933707f3Ssthen#undef HAVE_SYS_PARAM_H 615933707f3Ssthen 616933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */ 617933707f3Ssthen#undef HAVE_SYS_RESOURCE_H 618933707f3Ssthen 6192c144df0Ssthen/* Define to 1 if you have the <sys/select.h> header file. */ 6202c144df0Ssthen#undef HAVE_SYS_SELECT_H 6212c144df0Ssthen 62298f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */ 62398f3ca02Sbrad#undef HAVE_SYS_SHA2_H 62498f3ca02Sbrad 6252be9e038Ssthen/* Define to 1 if you have the <sys/shm.h> header file. */ 6262be9e038Ssthen#undef HAVE_SYS_SHM_H 6272be9e038Ssthen 628933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */ 629933707f3Ssthen#undef HAVE_SYS_SOCKET_H 630933707f3Ssthen 631933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */ 632933707f3Ssthen#undef HAVE_SYS_STAT_H 633933707f3Ssthen 63498f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */ 63598f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H 63698f3ca02Sbrad 637933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */ 638933707f3Ssthen#undef HAVE_SYS_TYPES_H 639933707f3Ssthen 640933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */ 641933707f3Ssthen#undef HAVE_SYS_UIO_H 642933707f3Ssthen 643b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */ 644b2cdf21fSsthen#undef HAVE_SYS_UN_H 645b2cdf21fSsthen 646933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */ 647933707f3Ssthen#undef HAVE_SYS_WAIT_H 648933707f3Ssthen 649a3167c07Ssthen/* Define to 1 if you have the <TargetConditionals.h> header file. */ 650a3167c07Ssthen#undef HAVE_TARGETCONDITIONALS_H 651a3167c07Ssthen 652933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */ 653933707f3Ssthen#undef HAVE_TIME_H 654933707f3Ssthen 655933707f3Ssthen/* Define to 1 if you have the `tzset' function. */ 656933707f3Ssthen#undef HAVE_TZSET 657933707f3Ssthen 658933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */ 659933707f3Ssthen#undef HAVE_UNISTD_H 660933707f3Ssthen 661933707f3Ssthen/* Define to 1 if you have the `usleep' function. */ 662933707f3Ssthen#undef HAVE_USLEEP 663933707f3Ssthen 664933707f3Ssthen/* Define to 1 if you have the `vfork' function. */ 665933707f3Ssthen#undef HAVE_VFORK 666933707f3Ssthen 667933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */ 668933707f3Ssthen#undef HAVE_VFORK_H 669933707f3Ssthen 670933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */ 671933707f3Ssthen#undef HAVE_WINDOWS_H 672933707f3Ssthen 673933707f3Ssthen/* Using Windows threads */ 674933707f3Ssthen#undef HAVE_WINDOWS_THREADS 675933707f3Ssthen 676933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */ 677933707f3Ssthen#undef HAVE_WINSOCK2_H 678933707f3Ssthen 679933707f3Ssthen/* Define to 1 if `fork' works. */ 680933707f3Ssthen#undef HAVE_WORKING_FORK 681933707f3Ssthen 682933707f3Ssthen/* Define to 1 if `vfork' works. */ 683933707f3Ssthen#undef HAVE_WORKING_VFORK 684933707f3Ssthen 685933707f3Ssthen/* Define to 1 if you have the `writev' function. */ 686933707f3Ssthen#undef HAVE_WRITEV 687933707f3Ssthen 688933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */ 689933707f3Ssthen#undef HAVE_WS2TCPIP_H 690933707f3Ssthen 691f6b99bafSsthen/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */ 692f6b99bafSsthen#undef HAVE_X509_VERIFY_PARAM_SET1_HOST 693f6b99bafSsthen 694933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */ 695933707f3Ssthen#undef HAVE__BEGINTHREADEX 696933707f3Ssthen 697ebf5bb73Ssthen/* If HMAC_Init_ex() returns void */ 698ebf5bb73Ssthen#undef HMAC_INIT_EX_RETURNS_VOID 699ebf5bb73Ssthen 700933707f3Ssthen/* if lex has yylex_destroy */ 701933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY 702933707f3Ssthen 70332e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */ 704933707f3Ssthen#undef LT_OBJDIR 705933707f3Ssthen 706933707f3Ssthen/* Define to the maximum message length to pass to syslog. */ 707933707f3Ssthen#undef MAXSYSLOGMSGLEN 708933707f3Ssthen 709933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */ 710933707f3Ssthen#undef MEMCMP_IS_BROKEN 711933707f3Ssthen 712933707f3Ssthen/* Define if mkdir has one argument. */ 713933707f3Ssthen#undef MKDIR_HAS_ONE_ARG 714933707f3Ssthen 715933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes 716933707f3Ssthen lower performance). */ 717933707f3Ssthen#undef NONBLOCKING_IS_BROKEN 718933707f3Ssthen 719933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */ 720933707f3Ssthen#undef OMITTED__D_ALL_SOURCE 721933707f3Ssthen 722933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */ 723933707f3Ssthen#undef OMITTED__D_BSD_SOURCE 724933707f3Ssthen 72532e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */ 72632e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE 72732e31f52Ssthen 728933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */ 729933707f3Ssthen#undef OMITTED__D_GNU_SOURCE 730933707f3Ssthen 731933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */ 732933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1 733933707f3Ssthen 734933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */ 735933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112 736933707f3Ssthen 737933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */ 738933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600 739933707f3Ssthen 740933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ 741933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 742933707f3Ssthen 743933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */ 744933707f3Ssthen#undef OMITTED__D__EXTENSIONS__ 745933707f3Ssthen 746933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */ 747933707f3Ssthen#undef PACKAGE_BUGREPORT 748933707f3Ssthen 749933707f3Ssthen/* Define to the full name of this package. */ 750933707f3Ssthen#undef PACKAGE_NAME 751933707f3Ssthen 752933707f3Ssthen/* Define to the full name and version of this package. */ 753933707f3Ssthen#undef PACKAGE_STRING 754933707f3Ssthen 755933707f3Ssthen/* Define to the one symbol short name of this package. */ 756933707f3Ssthen#undef PACKAGE_TARNAME 757933707f3Ssthen 758933707f3Ssthen/* Define to the home page for this package. */ 759933707f3Ssthen#undef PACKAGE_URL 760933707f3Ssthen 761933707f3Ssthen/* Define to the version of this package. */ 762933707f3Ssthen#undef PACKAGE_VERSION 763933707f3Ssthen 764933707f3Ssthen/* default pidfile location */ 765933707f3Ssthen#undef PIDFILE 766933707f3Ssthen 767933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on 768933707f3Ssthen your system. */ 769933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE 770933707f3Ssthen 7719982a05dSsthen/* Return type of signal handlers, but autoconf 2.70 says 'your code may 7729982a05dSsthen safely assume C89 semantics that RETSIGTYPE is void.' */ 773933707f3Ssthen#undef RETSIGTYPE 774933707f3Ssthen 7753150e5f6Ssthen/* if REUSEPORT is enabled by default */ 7763150e5f6Ssthen#undef REUSEPORT_DEFAULT 7773150e5f6Ssthen 778933707f3Ssthen/* default rootkey location */ 779933707f3Ssthen#undef ROOT_ANCHOR_FILE 780933707f3Ssthen 781933707f3Ssthen/* default rootcert location */ 782933707f3Ssthen#undef ROOT_CERT_FILE 783933707f3Ssthen 784933707f3Ssthen/* version number for resource files */ 785933707f3Ssthen#undef RSRC_PACKAGE_VERSION 786933707f3Ssthen 787933707f3Ssthen/* Directory to chdir to */ 788933707f3Ssthen#undef RUN_DIR 789933707f3Ssthen 790933707f3Ssthen/* Shared data */ 791933707f3Ssthen#undef SHARE_DIR 792933707f3Ssthen 793ebf5bb73Ssthen/* The size of `size_t', as computed by sizeof. */ 794ebf5bb73Ssthen#undef SIZEOF_SIZE_T 795ebf5bb73Ssthen 7965d76a658Ssthen/* The size of `time_t', as computed by sizeof. */ 7975d76a658Ssthen#undef SIZEOF_TIME_T 7985d76a658Ssthen 79924893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */ 80024893edcSsthen#undef SNPRINTF_RET_BROKEN 80124893edcSsthen 802bdfc4d55Sflorian/* Define to 1 if libsodium supports sodium_set_misuse_handler */ 803bdfc4d55Sflorian#undef SODIUM_MISUSE_HANDLER 804bdfc4d55Sflorian 805933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */ 806933707f3Ssthen#undef STDC_HEADERS 807933707f3Ssthen 808933707f3Ssthen/* use default strptime. */ 809933707f3Ssthen#undef STRPTIME_WORKS 810933707f3Ssthen 811933707f3Ssthen/* Use win32 resources and API */ 812933707f3Ssthen#undef UB_ON_WINDOWS 813933707f3Ssthen 814ebf5bb73Ssthen/* the SYSLOG_FACILITY to use, default LOG_DAEMON */ 815ebf5bb73Ssthen#undef UB_SYSLOG_FACILITY 816ebf5bb73Ssthen 817933707f3Ssthen/* default username */ 818933707f3Ssthen#undef UB_USERNAME 819933707f3Ssthen 820933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */ 821933707f3Ssthen#undef UNBOUND_ALLOC_LITE 822933707f3Ssthen 823933707f3Ssthen/* use malloc not regions, for debug use */ 824933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL 825933707f3Ssthen 826933707f3Ssthen/* use statistics for allocs and frees, for debug use */ 827933707f3Ssthen#undef UNBOUND_ALLOC_STATS 828933707f3Ssthen 829933707f3Ssthen/* define this to enable debug checks. */ 830933707f3Ssthen#undef UNBOUND_DEBUG 831933707f3Ssthen 8322ee382b6Ssthen/* Define to 1 to use cachedb support */ 8332ee382b6Ssthen#undef USE_CACHEDB 8342ee382b6Ssthen 8352be9e038Ssthen/* Define to 1 to enable dnscrypt support */ 8362be9e038Ssthen#undef USE_DNSCRYPT 8372be9e038Ssthen 8382be9e038Ssthen/* Define to 1 to enable dnscrypt with xchacha20 support */ 8392be9e038Ssthen#undef USE_DNSCRYPT_XCHACHA20 8402be9e038Ssthen 84198f3ca02Sbrad/* Define to 1 to enable dnstap support */ 84298f3ca02Sbrad#undef USE_DNSTAP 84398f3ca02Sbrad 8442ee382b6Ssthen/* Define this to enable DSA support. */ 8452ee382b6Ssthen#undef USE_DSA 8462ee382b6Ssthen 847d8d14d0cSsthen/* Define this to enable ECDSA support. */ 848d8d14d0cSsthen#undef USE_ECDSA 849d8d14d0cSsthen 850d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */ 851d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND 852d8d14d0cSsthen 8532be9e038Ssthen/* Define this to enable ED25519 support. */ 8542be9e038Ssthen#undef USE_ED25519 8552be9e038Ssthen 85620237c55Ssthen/* Define this to enable ED448 support. */ 85720237c55Ssthen#undef USE_ED448 85820237c55Ssthen 859933707f3Ssthen/* Define this to enable GOST support. */ 860933707f3Ssthen#undef USE_GOST 861933707f3Ssthen 8622be9e038Ssthen/* Define to 1 to use ipsecmod support. */ 8632be9e038Ssthen#undef USE_IPSECMOD 8642be9e038Ssthen 8658240c1b9Ssthen/* Define to 1 to use ipset support */ 8668240c1b9Ssthen#undef USE_IPSET 8678240c1b9Ssthen 868a3167c07Ssthen/* Define if you enable libevent */ 869a3167c07Ssthen#undef USE_LIBEVENT 870a3167c07Ssthen 871191f22c6Ssthen/* Define this to enable use of /proc/sys/net/ipv4/ip_local_port_range as a 872191f22c6Ssthen default outgoing port range. This is only for the libunbound on Linux and 873191f22c6Ssthen does not affect unbound resolving daemon itself. This may severely limit 874191f22c6Ssthen the number of available outgoing ports and thus decrease randomness. Define 875191f22c6Ssthen this only when the target system restricts (e.g. some of SELinux enabled 876191f22c6Ssthen distributions) the use of non-ephemeral ports. */ 877191f22c6Ssthen#undef USE_LINUX_IP_LOCAL_PORT_RANGE 878191f22c6Ssthen 879933707f3Ssthen/* Define if you want to use internal select based events */ 880933707f3Ssthen#undef USE_MINI_EVENT 881933707f3Ssthen 88277079be7Ssthen/* Define this to enable client TCP Fast Open. */ 88377079be7Ssthen#undef USE_MSG_FASTOPEN 88477079be7Ssthen 88577079be7Ssthen/* Define this to enable client TCP Fast Open. */ 88677079be7Ssthen#undef USE_OSX_MSG_FASTOPEN 88777079be7Ssthen 88820237c55Ssthen/* Define this to use hiredis client. */ 88920237c55Ssthen#undef USE_REDIS 89020237c55Ssthen 8912be9e038Ssthen/* Define this to enable SHA1 support. */ 8922be9e038Ssthen#undef USE_SHA1 8932be9e038Ssthen 894933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */ 895933707f3Ssthen#undef USE_SHA2 896933707f3Ssthen 897933707f3Ssthen/* Enable extensions on AIX 3, Interix. */ 898933707f3Ssthen#ifndef _ALL_SOURCE 899933707f3Ssthen# undef _ALL_SOURCE 900933707f3Ssthen#endif 901933707f3Ssthen/* Enable GNU extensions on systems that have them. */ 902933707f3Ssthen#ifndef _GNU_SOURCE 903933707f3Ssthen# undef _GNU_SOURCE 904933707f3Ssthen#endif 905933707f3Ssthen/* Enable threading extensions on Solaris. */ 906933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS 907933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS 908933707f3Ssthen#endif 909933707f3Ssthen/* Enable extensions on HP NonStop. */ 910933707f3Ssthen#ifndef _TANDEM_SOURCE 911933707f3Ssthen# undef _TANDEM_SOURCE 912933707f3Ssthen#endif 913933707f3Ssthen/* Enable general extensions on Solaris. */ 914933707f3Ssthen#ifndef __EXTENSIONS__ 915933707f3Ssthen# undef __EXTENSIONS__ 916933707f3Ssthen#endif 917933707f3Ssthen 918933707f3Ssthen 91977079be7Ssthen/* Define this to enable server TCP Fast Open. */ 92077079be7Ssthen#undef USE_TCP_FASTOPEN 92177079be7Ssthen 922933707f3Ssthen/* Whether the windows socket API is used */ 923933707f3Ssthen#undef USE_WINSOCK 924933707f3Ssthen 925933707f3Ssthen/* the version of the windows API enabled */ 926933707f3Ssthen#undef WINVER 927933707f3Ssthen 928a3167c07Ssthen/* Define if you want dynlib module. */ 929a3167c07Ssthen#undef WITH_DYNLIBMODULE 930a3167c07Ssthen 931933707f3Ssthen/* Define if you want Python module. */ 932933707f3Ssthen#undef WITH_PYTHONMODULE 933933707f3Ssthen 934933707f3Ssthen/* Define if you want PyUnbound. */ 935933707f3Ssthen#undef WITH_PYUNBOUND 936933707f3Ssthen 937933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 938933707f3Ssthen `char[]'. */ 939933707f3Ssthen#undef YYTEXT_POINTER 940933707f3Ssthen 941229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5. */ 942229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE 943229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1 944229e174cSsthen#endif 945229e174cSsthen 946933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */ 947933707f3Ssthen#undef _FILE_OFFSET_BITS 948933707f3Ssthen 949933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 950933707f3Ssthen#undef _LARGEFILE_SOURCE 951933707f3Ssthen 952933707f3Ssthen/* Define for large files, on AIX-style hosts. */ 953933707f3Ssthen#undef _LARGE_FILES 954933707f3Ssthen 955933707f3Ssthen/* Define to 1 if on MINIX. */ 956933707f3Ssthen#undef _MINIX 957933707f3Ssthen 9585d76a658Ssthen/* Enable for compile on Minix */ 9595d76a658Ssthen#undef _NETBSD_SOURCE 9605d76a658Ssthen 961933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with 962933707f3Ssthen this defined. */ 963933707f3Ssthen#undef _POSIX_1_SOURCE 964933707f3Ssthen 965933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */ 966933707f3Ssthen#undef _POSIX_SOURCE 967933707f3Ssthen 968933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */ 969933707f3Ssthen#undef const 970933707f3Ssthen 971933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 972933707f3Ssthen#undef gid_t 973933707f3Ssthen 974933707f3Ssthen/* in_addr_t */ 975933707f3Ssthen#undef in_addr_t 976933707f3Ssthen 977933707f3Ssthen/* in_port_t */ 978933707f3Ssthen#undef in_port_t 979933707f3Ssthen 980933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler 981933707f3Ssthen calls it, or to nothing if 'inline' is not supported under any name. */ 982933707f3Ssthen#ifndef __cplusplus 983933707f3Ssthen#undef inline 984933707f3Ssthen#endif 985933707f3Ssthen 986933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */ 987933707f3Ssthen#undef int16_t 988933707f3Ssthen 989933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 990933707f3Ssthen#undef int32_t 991933707f3Ssthen 992933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */ 993933707f3Ssthen#undef int64_t 994933707f3Ssthen 995933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */ 996933707f3Ssthen#undef int8_t 997933707f3Ssthen 998933707f3Ssthen/* Define if replacement function should be used. */ 999933707f3Ssthen#undef malloc 1000933707f3Ssthen 1001933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */ 1002933707f3Ssthen#undef off_t 1003933707f3Ssthen 1004933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 1005933707f3Ssthen#undef pid_t 1006933707f3Ssthen 1007933707f3Ssthen/* Define to 'int' if not defined */ 1008933707f3Ssthen#undef rlim_t 1009933707f3Ssthen 1010933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 1011933707f3Ssthen#undef size_t 1012933707f3Ssthen 1013933707f3Ssthen/* Define to 'int' if not defined */ 1014933707f3Ssthen#undef socklen_t 1015933707f3Ssthen 1016933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 1017933707f3Ssthen#undef ssize_t 1018933707f3Ssthen 1019933707f3Ssthen/* Define to 'unsigned char if not defined */ 1020933707f3Ssthen#undef u_char 1021933707f3Ssthen 1022933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 1023933707f3Ssthen#undef uid_t 1024933707f3Ssthen 1025933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */ 1026933707f3Ssthen#undef uint16_t 1027933707f3Ssthen 1028933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 1029933707f3Ssthen#undef uint32_t 1030933707f3Ssthen 1031933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */ 1032933707f3Ssthen#undef uint64_t 1033933707f3Ssthen 1034933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */ 1035933707f3Ssthen#undef uint8_t 1036933707f3Ssthen 1037933707f3Ssthen/* Define as `fork' if `vfork' does not work. */ 1038933707f3Ssthen#undef vfork 1039933707f3Ssthen 1040933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) 1041933707f3Ssthen#define _GNU_SOURCE 1 1042933707f3Ssthen#endif 1043933707f3Ssthen 1044933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) 1045933707f3Ssthen#define _BSD_SOURCE 1 1046933707f3Ssthen#endif 1047933707f3Ssthen 104832e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) 104932e31f52Ssthen#define _DEFAULT_SOURCE 1 105032e31f52Ssthen#endif 105132e31f52Ssthen 1052933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) 1053933707f3Ssthen#define __EXTENSIONS__ 1 1054933707f3Ssthen#endif 1055933707f3Ssthen 1056933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) 1057933707f3Ssthen#define _POSIX_C_SOURCE 200112 1058933707f3Ssthen#endif 1059933707f3Ssthen 1060933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) 1061933707f3Ssthen#define _XOPEN_SOURCE 600 1062933707f3Ssthen#endif 1063933707f3Ssthen 1064933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) 1065933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1 1066933707f3Ssthen#endif 1067933707f3Ssthen 1068933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) 1069933707f3Ssthen#define _ALL_SOURCE 1 1070933707f3Ssthen#endif 1071933707f3Ssthen 1072933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) 1073933707f3Ssthen#define _LARGEFILE_SOURCE 1 1074933707f3Ssthen#endif 1075933707f3Ssthen 1076933707f3Ssthen 1077933707f3Ssthen 1078933707f3Ssthen 1079550cf4a9Ssthen#ifndef _OPENBSD_SOURCE 1080550cf4a9Ssthen#define _OPENBSD_SOURCE 1 1081550cf4a9Ssthen#endif 1082550cf4a9Ssthen 1083933707f3Ssthen#ifndef UNBOUND_DEBUG 1084550cf4a9Ssthen# ifndef NDEBUG 1085933707f3Ssthen# define NDEBUG 1086933707f3Ssthen# endif 1087550cf4a9Ssthen#endif 1088933707f3Ssthen 10895d76a658Ssthen/** Use small-ldns codebase */ 10905d76a658Ssthen#define USE_SLDNS 1 10915d76a658Ssthen#ifdef HAVE_SSL 10925d76a658Ssthen# define LDNS_BUILD_CONFIG_HAVE_SSL 1 10935d76a658Ssthen#endif 10945d76a658Ssthen 1095933707f3Ssthen#include <stdio.h> 1096933707f3Ssthen#include <string.h> 1097933707f3Ssthen#include <unistd.h> 1098933707f3Ssthen#include <assert.h> 1099933707f3Ssthen 1100933707f3Ssthen#if STDC_HEADERS 1101933707f3Ssthen#include <stdlib.h> 1102933707f3Ssthen#include <stddef.h> 1103933707f3Ssthen#endif 1104933707f3Ssthen 11055d76a658Ssthen#ifdef HAVE_STDARG_H 11065d76a658Ssthen#include <stdarg.h> 11075d76a658Ssthen#endif 11085d76a658Ssthen 1109933707f3Ssthen#ifdef HAVE_STDINT_H 1110933707f3Ssthen#include <stdint.h> 1111933707f3Ssthen#endif 1112933707f3Ssthen 1113933707f3Ssthen#include <errno.h> 1114933707f3Ssthen 1115933707f3Ssthen#if HAVE_SYS_PARAM_H 1116933707f3Ssthen#include <sys/param.h> 1117933707f3Ssthen#endif 1118933707f3Ssthen 1119933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H 1120933707f3Ssthen#include <sys/socket.h> 1121933707f3Ssthen#endif 1122933707f3Ssthen 1123933707f3Ssthen#ifdef HAVE_SYS_UIO_H 1124933707f3Ssthen#include <sys/uio.h> 1125933707f3Ssthen#endif 1126933707f3Ssthen 1127933707f3Ssthen#ifdef HAVE_NETINET_IN_H 1128933707f3Ssthen#include <netinet/in.h> 1129933707f3Ssthen#endif 1130933707f3Ssthen 113132e31f52Ssthen#ifdef HAVE_NETINET_TCP_H 113232e31f52Ssthen#include <netinet/tcp.h> 113332e31f52Ssthen#endif 113432e31f52Ssthen 1135933707f3Ssthen#ifdef HAVE_ARPA_INET_H 1136933707f3Ssthen#include <arpa/inet.h> 1137933707f3Ssthen#endif 1138933707f3Ssthen 1139933707f3Ssthen#ifdef HAVE_WINSOCK2_H 1140933707f3Ssthen#include <winsock2.h> 1141933707f3Ssthen#endif 1142933707f3Ssthen 1143933707f3Ssthen#ifdef HAVE_WS2TCPIP_H 1144933707f3Ssthen#include <ws2tcpip.h> 1145933707f3Ssthen#endif 1146933707f3Ssthen 11475d76a658Ssthen#ifndef USE_WINSOCK 11485d76a658Ssthen#define ARG_LL "%ll" 11495d76a658Ssthen#else 11505d76a658Ssthen#define ARG_LL "%I64" 11515d76a658Ssthen#endif 11525d76a658Ssthen 1153b2cdf21fSsthen#ifndef AF_LOCAL 1154b2cdf21fSsthen#define AF_LOCAL AF_UNIX 1155b2cdf21fSsthen#endif 1156b2cdf21fSsthen 1157933707f3Ssthen 1158933707f3Ssthen 1159933707f3Ssthen#ifdef HAVE_ATTR_FORMAT 1160933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) \ 1161933707f3Ssthen __attribute__ ((format (archetype, string_index, first_to_check))) 1162933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */ 1163933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 1164933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */ 1165933707f3Ssthen 1166933707f3Ssthen 1167933707f3Ssthen#if defined(DOXYGEN) 1168933707f3Ssthen# define ATTR_UNUSED(x) x 1169933707f3Ssthen#elif defined(__cplusplus) 1170933707f3Ssthen# define ATTR_UNUSED(x) 1171933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED) 1172933707f3Ssthen# define ATTR_UNUSED(x) x __attribute__((unused)) 1173933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */ 1174933707f3Ssthen# define ATTR_UNUSED(x) x 1175933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */ 1176933707f3Ssthen 1177933707f3Ssthen 1178933707f3Ssthen#ifndef HAVE_FSEEKO 1179933707f3Ssthen#define fseeko fseek 1180933707f3Ssthen#define ftello ftell 1181933707f3Ssthen#endif /* HAVE_FSEEKO */ 1182933707f3Ssthen 1183933707f3Ssthen 1184933707f3Ssthen#ifndef MAXHOSTNAMELEN 1185933707f3Ssthen#define MAXHOSTNAMELEN 256 1186933707f3Ssthen#endif 1187933707f3Ssthen 118824893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) 1189933707f3Ssthen#define snprintf snprintf_unbound 1190933707f3Ssthen#define vsnprintf vsnprintf_unbound 1191933707f3Ssthen#include <stdarg.h> 1192933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...); 1193933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 119424893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */ 1195933707f3Ssthen 1196933707f3Ssthen#ifndef HAVE_INET_PTON 1197933707f3Ssthen#define inet_pton inet_pton_unbound 1198933707f3Ssthenint inet_pton(int af, const char* src, void* dst); 1199933707f3Ssthen#endif /* HAVE_INET_PTON */ 1200933707f3Ssthen 1201933707f3Ssthen 1202933707f3Ssthen#ifndef HAVE_INET_NTOP 1203933707f3Ssthen#define inet_ntop inet_ntop_unbound 1204933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 1205933707f3Ssthen#endif 1206933707f3Ssthen 1207933707f3Ssthen 1208933707f3Ssthen#ifndef HAVE_INET_ATON 1209933707f3Ssthen#define inet_aton inet_aton_unbound 1210933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr); 1211933707f3Ssthen#endif 1212933707f3Ssthen 1213933707f3Ssthen 1214933707f3Ssthen#ifndef HAVE_MEMMOVE 1215933707f3Ssthen#define memmove memmove_unbound 1216933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n); 1217933707f3Ssthen#endif 1218933707f3Ssthen 1219933707f3Ssthen 12205d76a658Ssthen#ifndef HAVE_STRLCAT 12215d76a658Ssthen#define strlcat strlcat_unbound 12225d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz); 12235d76a658Ssthen#endif 12245d76a658Ssthen 12255d76a658Ssthen 1226933707f3Ssthen#ifndef HAVE_STRLCPY 1227933707f3Ssthen#define strlcpy strlcpy_unbound 1228933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz); 1229933707f3Ssthen#endif 1230933707f3Ssthen 1231933707f3Ssthen 1232933707f3Ssthen#ifndef HAVE_GMTIME_R 1233933707f3Ssthen#define gmtime_r gmtime_r_unbound 1234933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result); 1235933707f3Ssthen#endif 1236933707f3Ssthen 1237933707f3Ssthen 1238fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY 1239fdfb4ba6Ssthen#define reallocarray reallocarrayunbound 1240fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size); 1241fdfb4ba6Ssthen#endif 1242fdfb4ba6Ssthen 1243fdfb4ba6Ssthen 1244229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H) 1245933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */ 1246933707f3Ssthen#endif /* HAVE_SLEEP */ 1247933707f3Ssthen 1248933707f3Ssthen 1249933707f3Ssthen#ifndef HAVE_USLEEP 1250933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */ 1251933707f3Ssthen#endif /* HAVE_USLEEP */ 1252933707f3Ssthen 1253933707f3Ssthen 1254933707f3Ssthen#ifndef HAVE_RANDOM 1255933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */ 1256933707f3Ssthen#endif /* HAVE_RANDOM */ 1257933707f3Ssthen 1258933707f3Ssthen 1259933707f3Ssthen#ifndef HAVE_SRANDOM 1260933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */ 1261933707f3Ssthen#endif /* HAVE_SRANDOM */ 1262933707f3Ssthen 1263933707f3Ssthen 1264933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 1265933707f3Ssthen#ifdef HAVE_WINSOCK2_H 1266933707f3Ssthen#define FD_SET_T (u_int) 1267933707f3Ssthen#else 1268933707f3Ssthen#define FD_SET_T 1269933707f3Ssthen#endif 1270933707f3Ssthen 1271933707f3Ssthen 1272933707f3Ssthen#ifndef IPV6_MIN_MTU 1273933707f3Ssthen#define IPV6_MIN_MTU 1280 1274933707f3Ssthen#endif /* IPV6_MIN_MTU */ 1275933707f3Ssthen 1276933707f3Ssthen 1277933707f3Ssthen#ifdef MEMCMP_IS_BROKEN 1278d8d14d0cSsthen#include "compat/memcmp.h" 1279933707f3Ssthen#define memcmp memcmp_unbound 1280933707f3Ssthenint memcmp(const void *x, const void *y, size_t n); 1281933707f3Ssthen#endif 1282933707f3Ssthen 1283933707f3Ssthen 1284933707f3Ssthen 1285933707f3Ssthen#ifndef HAVE_CTIME_R 1286933707f3Ssthen#define ctime_r unbound_ctime_r 1287933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf); 1288933707f3Ssthen#endif 1289933707f3Ssthen 12902ee382b6Ssthen#ifndef HAVE_STRSEP 12912ee382b6Ssthen#define strsep unbound_strsep 12922ee382b6Ssthenchar *strsep(char **stringp, const char *delim); 12932ee382b6Ssthen#endif 12942ee382b6Ssthen 129524893edcSsthen#ifndef HAVE_ISBLANK 129624893edcSsthen#define isblank unbound_isblank 129724893edcSsthenint isblank(int c); 129824893edcSsthen#endif 129924893edcSsthen 1300452a1548Ssthen#ifndef HAVE_EXPLICIT_BZERO 1301452a1548Ssthen#define explicit_bzero unbound_explicit_bzero 1302452a1548Ssthenvoid explicit_bzero(void* buf, size_t len); 1303452a1548Ssthen#endif 1304452a1548Ssthen 130577079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP 130677079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 130777079be7Ssthen#endif 130877079be7Ssthen 130977079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON 131077079be7Ssthenint inet_pton(int af, const char* src, void* dst); 131177079be7Ssthen#endif 131277079be7Ssthen 1313933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS) 1314933707f3Ssthen#define strptime unbound_strptime 1315933707f3Ssthenstruct tm; 1316933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm); 1317933707f3Ssthen#endif 1318933707f3Ssthen 1319ebf5bb73Ssthen#if !HAVE_DECL_REALLOCARRAY 1320ebf5bb73Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size); 1321ebf5bb73Ssthen#endif 1322ebf5bb73Ssthen 1323eaf2578eSsthen#ifdef HAVE_LIBBSD 1324eaf2578eSsthen#include <bsd/string.h> 1325eaf2578eSsthen#include <bsd/stdlib.h> 1326eaf2578eSsthen#endif 1327eaf2578eSsthen 132898f3ca02Sbrad#ifdef HAVE_LIBRESSL 132998f3ca02Sbrad# if !HAVE_DECL_STRLCPY 133098f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz); 133198f3ca02Sbrad# endif 133298f3ca02Sbrad# if !HAVE_DECL_STRLCAT 133398f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz); 133498f3ca02Sbrad# endif 133598f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM) 133698f3ca02Sbraduint32_t arc4random(void); 133798f3ca02Sbrad# endif 133898f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM) 133998f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 134098f3ca02Sbrad# endif 134198f3ca02Sbrad#endif /* HAVE_LIBRESSL */ 134298f3ca02Sbrad#ifndef HAVE_ARC4RANDOM 134398f3ca02Sbradint getentropy(void* buf, size_t len); 134498f3ca02Sbraduint32_t arc4random(void); 134598f3ca02Sbradvoid arc4random_buf(void* buf, size_t n); 134698f3ca02Sbradvoid _ARC4_LOCK(void); 134798f3ca02Sbradvoid _ARC4_UNLOCK(void); 1348938a3a5eSflorianvoid _ARC4_LOCK_DESTROY(void); 134998f3ca02Sbrad#endif 135098f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM 135198f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 135298f3ca02Sbrad#endif 135398f3ca02Sbrad#ifdef COMPAT_SHA512 135498f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH 135598f3ca02Sbrad#define SHA512_BLOCK_LENGTH 128 135698f3ca02Sbrad#define SHA512_DIGEST_LENGTH 64 135798f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) 135898f3ca02Sbradtypedef struct _SHA512_CTX { 135998f3ca02Sbrad uint64_t state[8]; 136098f3ca02Sbrad uint64_t bitcount[2]; 136198f3ca02Sbrad uint8_t buffer[SHA512_BLOCK_LENGTH]; 136298f3ca02Sbrad} SHA512_CTX; 136398f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */ 136498f3ca02Sbradvoid SHA512_Init(SHA512_CTX*); 136598f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t); 136698f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); 136798f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); 136898f3ca02Sbrad#endif /* COMPAT_SHA512 */ 136998f3ca02Sbrad 137098f3ca02Sbrad 137198f3ca02Sbrad 1372933707f3Ssthen#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)) 1373933707f3Ssthen /* using version of libevent that is not threadsafe. */ 1374933707f3Ssthen# define LIBEVENT_SIGNAL_PROBLEM 1 1375933707f3Ssthen#endif 1376933707f3Ssthen 1377933707f3Ssthen#ifndef CHECKED_INET6 1378933707f3Ssthen# define CHECKED_INET6 1379933707f3Ssthen# ifdef AF_INET6 1380933707f3Ssthen# define INET6 1381933707f3Ssthen# else 1382933707f3Ssthen# define AF_INET6 28 1383933707f3Ssthen# endif 1384933707f3Ssthen#endif /* CHECKED_INET6 */ 1385933707f3Ssthen 1386933707f3Ssthen#ifndef HAVE_GETADDRINFO 1387933707f3Ssthenstruct sockaddr_storage; 1388933707f3Ssthen#include "compat/fake-rfc2553.h" 1389933707f3Ssthen#endif 1390933707f3Ssthen 1391933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS 1392933707f3Ssthen# define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__) 1393933707f3Ssthen# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__) 1394933707f3Ssthen# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__) 1395933707f3Ssthen# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__) 1396933707f3Ssthenvoid *unbound_stat_malloc(size_t size); 1397933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size); 1398933707f3Ssthenvoid unbound_stat_free(void *ptr); 1399933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size); 1400933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line, 1401933707f3Ssthen const char* func); 1402933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file, 1403933707f3Ssthen int line, const char* func); 1404933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line, 1405933707f3Ssthen const char* func); 1406933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, 1407933707f3Ssthen int line, const char* func); 1408933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE) 1409933707f3Ssthen# include "util/alloc.h" 1410933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */ 1411933707f3Ssthen 1412933707f3Ssthen/** default port for DNS traffic. */ 1413933707f3Ssthen#define UNBOUND_DNS_PORT 53 141420237c55Ssthen/** default port for DNS over TLS traffic. */ 141520237c55Ssthen#define UNBOUND_DNS_OVER_TLS_PORT 853 14162c144df0Ssthen/** default port for DNS over HTTPS traffic. */ 14172c144df0Ssthen#define UNBOUND_DNS_OVER_HTTPS_PORT 443 1418933707f3Ssthen/** default port for unbound control traffic, registered port with IANA, 1419933707f3Ssthen ub-dns-control 8953/tcp unbound dns nameserver control */ 1420933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953 1421933707f3Ssthen/** the version of unbound-control that this software implements */ 1422933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1 1423933707f3Ssthen 1424933707f3Ssthen 1425