1933707f3Ssthen/* config.h.in. Generated from configure.ac by autoheader. */ 2933707f3Ssthen 3933707f3Ssthen/* Directory to chroot to */ 4933707f3Ssthen#undef CHROOT_DIR 5933707f3Ssthen 62be9e038Ssthen/* Define this to enable client subnet option. */ 72be9e038Ssthen#undef CLIENT_SUBNET 82be9e038Ssthen 998f3ca02Sbrad/* Do sha512 definitions in config.h */ 1098f3ca02Sbrad#undef COMPAT_SHA512 1198f3ca02Sbrad 12933707f3Ssthen/* Pathname to the Unbound configuration file */ 13933707f3Ssthen#undef CONFIGFILE 14933707f3Ssthen 15933707f3Ssthen/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 16933707f3Ssthen */ 17933707f3Ssthen#undef DARWIN_BROKEN_SETREUID 18933707f3Ssthen 19933707f3Ssthen/* Whether daemon is deprecated */ 20933707f3Ssthen#undef DEPRECATED_DAEMON 21933707f3Ssthen 2298f3ca02Sbrad/* default dnstap socket path */ 2398f3ca02Sbrad#undef DNSTAP_SOCKET_PATH 2498f3ca02Sbrad 25933707f3Ssthen/* Define if you want to use debug lock checking (slow). */ 26933707f3Ssthen#undef ENABLE_LOCK_CHECKS 27933707f3Ssthen 28933707f3Ssthen/* Define this if you enabled-allsymbols from libunbound to link binaries to 29933707f3Ssthen it for smaller install size, but the libunbound export table is polluted by 30933707f3Ssthen internal symbols */ 31933707f3Ssthen#undef EXPORT_ALL_SYMBOLS 32933707f3Ssthen 3398f3ca02Sbrad/* Define to 1 if you have the `arc4random' function. */ 3498f3ca02Sbrad#undef HAVE_ARC4RANDOM 3598f3ca02Sbrad 3698f3ca02Sbrad/* Define to 1 if you have the `arc4random_uniform' function. */ 3798f3ca02Sbrad#undef HAVE_ARC4RANDOM_UNIFORM 3898f3ca02Sbrad 39933707f3Ssthen/* Define to 1 if you have the <arpa/inet.h> header file. */ 40933707f3Ssthen#undef HAVE_ARPA_INET_H 41933707f3Ssthen 42933707f3Ssthen/* Whether the C compiler accepts the "format" attribute */ 43933707f3Ssthen#undef HAVE_ATTR_FORMAT 44933707f3Ssthen 45933707f3Ssthen/* Whether the C compiler accepts the "unused" attribute */ 46933707f3Ssthen#undef HAVE_ATTR_UNUSED 47933707f3Ssthen 482ee382b6Ssthen/* Whether the C compiler accepts the "weak" attribute */ 492ee382b6Ssthen#undef HAVE_ATTR_WEAK 502ee382b6Ssthen 51b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */ 52933707f3Ssthen#undef HAVE_CHOWN 53933707f3Ssthen 54933707f3Ssthen/* Define to 1 if you have the `chroot' function. */ 55933707f3Ssthen#undef HAVE_CHROOT 56933707f3Ssthen 5777079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ 5877079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 5977079be7Ssthen 60933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */ 61933707f3Ssthen#undef HAVE_CTIME_R 62933707f3Ssthen 63933707f3Ssthen/* Define to 1 if you have the `daemon' function. */ 64933707f3Ssthen#undef HAVE_DAEMON 65933707f3Ssthen 6698f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you 6798f3ca02Sbrad don't. */ 6898f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM 6998f3ca02Sbrad 7098f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 7198f3ca02Sbrad if you don't. */ 7298f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM 7398f3ca02Sbrad 7477079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 7577079be7Ssthen don't. */ 7677079be7Ssthen#undef HAVE_DECL_INET_NTOP 7777079be7Ssthen 7877079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you 7977079be7Ssthen don't. */ 8077079be7Ssthen#undef HAVE_DECL_INET_PTON 8177079be7Ssthen 822be9e038Ssthen/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you 832be9e038Ssthen don't. */ 842be9e038Ssthen#undef HAVE_DECL_NID_ED25519 852be9e038Ssthen 86d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 87d8d14d0cSsthen don't. */ 88d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1 89d8d14d0cSsthen 90d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 91d8d14d0cSsthen if you don't. */ 92d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1 93d8d14d0cSsthen 94fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 95fdfb4ba6Ssthen don't. */ 96fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY 97fdfb4ba6Ssthen 98933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 99933707f3Ssthen if you don't. */ 100933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE 101933707f3Ssthen 102933707f3Ssthen/* Define to 1 if you have the declaration of 103933707f3Ssthen `SSL_COMP_get_compression_methods', and to 0 if you don't. */ 104933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 105933707f3Ssthen 106a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 107a961b961Ssthen 0 if you don't. */ 108a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 109a961b961Ssthen 11098f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you 11198f3ca02Sbrad don't. */ 11298f3ca02Sbrad#undef HAVE_DECL_STRLCAT 11398f3ca02Sbrad 11498f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you 11598f3ca02Sbrad don't. */ 11698f3ca02Sbrad#undef HAVE_DECL_STRLCPY 11798f3ca02Sbrad 11824893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if 11924893edcSsthen you don't. */ 12024893edcSsthen#undef HAVE_DECL_XML_STOPPARSER 12124893edcSsthen 122933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */ 123933707f3Ssthen#undef HAVE_DLFCN_H 124933707f3Ssthen 12577079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */ 12677079be7Ssthen#undef HAVE_DSA_SIG_SET0 12777079be7Ssthen 12898f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */ 12998f3ca02Sbrad#undef HAVE_ENDIAN_H 13098f3ca02Sbrad 1315d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */ 1325d76a658Ssthen#undef HAVE_ENDPROTOENT 1335d76a658Ssthen 13477079be7Ssthen/* Define to 1 if you have the `endpwent' function. */ 13577079be7Ssthen#undef HAVE_ENDPWENT 13677079be7Ssthen 1375d76a658Ssthen/* Define to 1 if you have the `endservent' function. */ 1385d76a658Ssthen#undef HAVE_ENDSERVENT 1395d76a658Ssthen 14077079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */ 14177079be7Ssthen#undef HAVE_ERR_FREE_STRINGS 14277079be7Ssthen 14377079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 14477079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 14577079be7Ssthen 146933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */ 147933707f3Ssthen#undef HAVE_EVENT_BASE_FREE 148933707f3Ssthen 149933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */ 150933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD 151933707f3Ssthen 152933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */ 153933707f3Ssthen#undef HAVE_EVENT_BASE_NEW 154933707f3Ssthen 155933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */ 156933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE 157933707f3Ssthen 158933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */ 159933707f3Ssthen#undef HAVE_EVENT_H 160933707f3Ssthen 16177079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */ 16277079be7Ssthen#undef HAVE_EVP_CLEANUP 16377079be7Ssthen 1642be9e038Ssthen/* Define to 1 if you have the `EVP_DigestVerify' function. */ 1652be9e038Ssthen#undef HAVE_EVP_DIGESTVERIFY 1662be9e038Ssthen 16777079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */ 16877079be7Ssthen#undef HAVE_EVP_DSS1 16977079be7Ssthen 1702ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 1712ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW 1722ee382b6Ssthen 173933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */ 174933707f3Ssthen#undef HAVE_EVP_SHA1 175933707f3Ssthen 176933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */ 177933707f3Ssthen#undef HAVE_EVP_SHA256 178933707f3Ssthen 179933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */ 180933707f3Ssthen#undef HAVE_EVP_SHA512 181933707f3Ssthen 182933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */ 183933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP 184933707f3Ssthen 185933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */ 186933707f3Ssthen#undef HAVE_EV_LOOP 187933707f3Ssthen 188933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */ 189933707f3Ssthen#undef HAVE_EXPAT_H 190933707f3Ssthen 191933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */ 192933707f3Ssthen#undef HAVE_FCNTL 193933707f3Ssthen 1943dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */ 1953dcb24b8Ssthen#undef HAVE_FIPS_MODE 1963dcb24b8Ssthen 197933707f3Ssthen/* Define to 1 if you have the `fork' function. */ 198933707f3Ssthen#undef HAVE_FORK 199933707f3Ssthen 200933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 201933707f3Ssthen#undef HAVE_FSEEKO 202933707f3Ssthen 20324893edcSsthen/* Define to 1 if you have the `fsync' function. */ 20424893edcSsthen#undef HAVE_FSYNC 20524893edcSsthen 206933707f3Ssthen/* Whether getaddrinfo is available */ 207933707f3Ssthen#undef HAVE_GETADDRINFO 208933707f3Ssthen 209b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */ 210b2cdf21fSsthen#undef HAVE_GETAUXVAL 211b2cdf21fSsthen 21298f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */ 21398f3ca02Sbrad#undef HAVE_GETENTROPY 21498f3ca02Sbrad 215933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */ 216933707f3Ssthen#undef HAVE_GETOPT_H 217933707f3Ssthen 218933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */ 219933707f3Ssthen#undef HAVE_GETPWNAM 220933707f3Ssthen 221933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */ 222933707f3Ssthen#undef HAVE_GETRLIMIT 223933707f3Ssthen 224933707f3Ssthen/* Define to 1 if you have the `glob' function. */ 225933707f3Ssthen#undef HAVE_GLOB 226933707f3Ssthen 227933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */ 228933707f3Ssthen#undef HAVE_GLOB_H 229933707f3Ssthen 230933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */ 231933707f3Ssthen#undef HAVE_GMTIME_R 232933707f3Ssthen 233933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */ 234933707f3Ssthen#undef HAVE_GRP_H 235933707f3Ssthen 2362ee382b6Ssthen/* If you have HMAC_Update */ 2372ee382b6Ssthen#undef HAVE_HMAC_UPDATE 238933707f3Ssthen 239933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */ 240933707f3Ssthen#undef HAVE_INET_ATON 241933707f3Ssthen 242933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */ 243933707f3Ssthen#undef HAVE_INET_NTOP 244933707f3Ssthen 245933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */ 246933707f3Ssthen#undef HAVE_INET_PTON 247933707f3Ssthen 248933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */ 249933707f3Ssthen#undef HAVE_INITGROUPS 250933707f3Ssthen 251933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */ 252933707f3Ssthen#undef HAVE_INTTYPES_H 253933707f3Ssthen 254933707f3Ssthen/* if the function 'ioctlsocket' is available */ 255933707f3Ssthen#undef HAVE_IOCTLSOCKET 256933707f3Ssthen 257933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */ 258933707f3Ssthen#undef HAVE_IPHLPAPI_H 259933707f3Ssthen 26024893edcSsthen/* Define to 1 if you have the `isblank' function. */ 26124893edcSsthen#undef HAVE_ISBLANK 26224893edcSsthen 263933707f3Ssthen/* Define to 1 if you have the `kill' function. */ 264933707f3Ssthen#undef HAVE_KILL 265933707f3Ssthen 26698f3ca02Sbrad/* Define if we have LibreSSL */ 26798f3ca02Sbrad#undef HAVE_LIBRESSL 26898f3ca02Sbrad 269933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */ 270933707f3Ssthen#undef HAVE_LOCALTIME_R 271933707f3Ssthen 272933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */ 273933707f3Ssthen#undef HAVE_LOGIN_CAP_H 274933707f3Ssthen 275933707f3Ssthen/* If have GNU libc compatible malloc */ 276933707f3Ssthen#undef HAVE_MALLOC 277933707f3Ssthen 278933707f3Ssthen/* Define to 1 if you have the `memmove' function. */ 279933707f3Ssthen#undef HAVE_MEMMOVE 280933707f3Ssthen 281933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */ 282933707f3Ssthen#undef HAVE_MEMORY_H 283933707f3Ssthen 284933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */ 285933707f3Ssthen#undef HAVE_NETDB_H 286933707f3Ssthen 287933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */ 288933707f3Ssthen#undef HAVE_NETINET_IN_H 289933707f3Ssthen 29032e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */ 29132e31f52Ssthen#undef HAVE_NETINET_TCP_H 29232e31f52Ssthen 29324893edcSsthen/* Use libnettle for crypto */ 29424893edcSsthen#undef HAVE_NETTLE 29524893edcSsthen 29677079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */ 29777079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H 29877079be7Ssthen 299*7191de28Ssthen/* Define to 1 if you have the <nettle/eddsa.h> header file. */ 300*7191de28Ssthen#undef HAVE_NETTLE_EDDSA_H 301*7191de28Ssthen 3023dcb24b8Ssthen/* Use libnss for crypto */ 3033dcb24b8Ssthen#undef HAVE_NSS 3043dcb24b8Ssthen 30577079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ 30677079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS 30777079be7Ssthen 30877079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */ 30977079be7Ssthen#undef HAVE_OPENSSL_BN_H 31077079be7Ssthen 311933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */ 312933707f3Ssthen#undef HAVE_OPENSSL_CONFIG 313933707f3Ssthen 314933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */ 315933707f3Ssthen#undef HAVE_OPENSSL_CONF_H 316933707f3Ssthen 31777079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */ 31877079be7Ssthen#undef HAVE_OPENSSL_DH_H 31977079be7Ssthen 32077079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */ 32177079be7Ssthen#undef HAVE_OPENSSL_DSA_H 32277079be7Ssthen 323933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */ 324933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H 325933707f3Ssthen 326933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */ 327933707f3Ssthen#undef HAVE_OPENSSL_ERR_H 328933707f3Ssthen 32977079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 33077079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO 33177079be7Ssthen 33277079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 33377079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL 33477079be7Ssthen 335933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */ 336933707f3Ssthen#undef HAVE_OPENSSL_RAND_H 337933707f3Ssthen 33877079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */ 33977079be7Ssthen#undef HAVE_OPENSSL_RSA_H 34077079be7Ssthen 341933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */ 342933707f3Ssthen#undef HAVE_OPENSSL_SSL_H 343933707f3Ssthen 344933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */ 345933707f3Ssthen#undef HAVE_PTHREAD 346933707f3Ssthen 347229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */ 348229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT 349229e174cSsthen 350933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */ 351933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T 352933707f3Ssthen 353933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */ 354933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T 355933707f3Ssthen 356933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */ 357933707f3Ssthen#undef HAVE_PWD_H 358933707f3Ssthen 359933707f3Ssthen/* Define if you have Python libraries and header files. */ 360933707f3Ssthen#undef HAVE_PYTHON 361933707f3Ssthen 362933707f3Ssthen/* Define to 1 if you have the `random' function. */ 363933707f3Ssthen#undef HAVE_RANDOM 364933707f3Ssthen 36577079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */ 36677079be7Ssthen#undef HAVE_RAND_CLEANUP 36777079be7Ssthen 368fdfb4ba6Ssthen/* Define to 1 if you have the `reallocarray' function. */ 369fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY 370fdfb4ba6Ssthen 371933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */ 372933707f3Ssthen#undef HAVE_RECVMSG 373933707f3Ssthen 374933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */ 375933707f3Ssthen#undef HAVE_SENDMSG 376933707f3Ssthen 377933707f3Ssthen/* Define to 1 if you have the `setregid' function. */ 378933707f3Ssthen#undef HAVE_SETREGID 379933707f3Ssthen 380933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */ 381933707f3Ssthen#undef HAVE_SETRESGID 382933707f3Ssthen 383933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */ 384933707f3Ssthen#undef HAVE_SETRESUID 385933707f3Ssthen 386933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */ 387933707f3Ssthen#undef HAVE_SETREUID 388933707f3Ssthen 389933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */ 390933707f3Ssthen#undef HAVE_SETRLIMIT 391933707f3Ssthen 392933707f3Ssthen/* Define to 1 if you have the `setsid' function. */ 393933707f3Ssthen#undef HAVE_SETSID 394933707f3Ssthen 395933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */ 396933707f3Ssthen#undef HAVE_SETUSERCONTEXT 397933707f3Ssthen 39898f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */ 39998f3ca02Sbrad#undef HAVE_SHA512_UPDATE 40098f3ca02Sbrad 4012be9e038Ssthen/* Define to 1 if you have the `shmget' function. */ 4022be9e038Ssthen#undef HAVE_SHMGET 4032be9e038Ssthen 404933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */ 405933707f3Ssthen#undef HAVE_SIGPROCMASK 406933707f3Ssthen 407933707f3Ssthen/* Define to 1 if you have the `sleep' function. */ 408933707f3Ssthen#undef HAVE_SLEEP 409933707f3Ssthen 410933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */ 411933707f3Ssthen#undef HAVE_SNPRINTF 412933707f3Ssthen 413933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */ 414933707f3Ssthen#undef HAVE_SOCKETPAIR 415933707f3Ssthen 416933707f3Ssthen/* Using Solaris threads */ 417933707f3Ssthen#undef HAVE_SOLARIS_THREADS 418933707f3Ssthen 419933707f3Ssthen/* Define to 1 if you have the `srandom' function. */ 420933707f3Ssthen#undef HAVE_SRANDOM 421933707f3Ssthen 422933707f3Ssthen/* Define if you have the SSL libraries installed. */ 423933707f3Ssthen#undef HAVE_SSL 424933707f3Ssthen 42577079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 42677079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL 42777079be7Ssthen 428933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */ 429933707f3Ssthen#undef HAVE_STDARG_H 430933707f3Ssthen 431933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */ 432933707f3Ssthen#undef HAVE_STDBOOL_H 433933707f3Ssthen 434933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */ 435933707f3Ssthen#undef HAVE_STDINT_H 436933707f3Ssthen 437933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */ 438933707f3Ssthen#undef HAVE_STDLIB_H 439933707f3Ssthen 440933707f3Ssthen/* Define to 1 if you have the `strftime' function. */ 441933707f3Ssthen#undef HAVE_STRFTIME 442933707f3Ssthen 443933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */ 444933707f3Ssthen#undef HAVE_STRINGS_H 445933707f3Ssthen 446933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */ 447933707f3Ssthen#undef HAVE_STRING_H 448933707f3Ssthen 4495d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */ 4505d76a658Ssthen#undef HAVE_STRLCAT 4515d76a658Ssthen 452933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */ 453933707f3Ssthen#undef HAVE_STRLCPY 454933707f3Ssthen 455933707f3Ssthen/* Define to 1 if you have the `strptime' function. */ 456933707f3Ssthen#undef HAVE_STRPTIME 457933707f3Ssthen 4582ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */ 4592ee382b6Ssthen#undef HAVE_STRSEP 4602ee382b6Ssthen 461d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ 462d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 463d8d14d0cSsthen 464b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 465b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 466b2cdf21fSsthen 467933707f3Ssthen/* Define if you have Swig libraries and header files. */ 468933707f3Ssthen#undef HAVE_SWIG 469933707f3Ssthen 470933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */ 471933707f3Ssthen#undef HAVE_SYSLOG_H 472933707f3Ssthen 47377079be7Ssthen/* Define to 1 if systemd should be used */ 47477079be7Ssthen#undef HAVE_SYSTEMD 47577079be7Ssthen 4762be9e038Ssthen/* Define to 1 if you have the <sys/ipc.h> header file. */ 4772be9e038Ssthen#undef HAVE_SYS_IPC_H 4782be9e038Ssthen 479933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */ 480933707f3Ssthen#undef HAVE_SYS_PARAM_H 481933707f3Ssthen 482933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */ 483933707f3Ssthen#undef HAVE_SYS_RESOURCE_H 484933707f3Ssthen 48598f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */ 48698f3ca02Sbrad#undef HAVE_SYS_SHA2_H 48798f3ca02Sbrad 4882be9e038Ssthen/* Define to 1 if you have the <sys/shm.h> header file. */ 4892be9e038Ssthen#undef HAVE_SYS_SHM_H 4902be9e038Ssthen 491933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */ 492933707f3Ssthen#undef HAVE_SYS_SOCKET_H 493933707f3Ssthen 494933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */ 495933707f3Ssthen#undef HAVE_SYS_STAT_H 496933707f3Ssthen 49798f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */ 49898f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H 49998f3ca02Sbrad 500933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */ 501933707f3Ssthen#undef HAVE_SYS_TYPES_H 502933707f3Ssthen 503933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */ 504933707f3Ssthen#undef HAVE_SYS_UIO_H 505933707f3Ssthen 506b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */ 507b2cdf21fSsthen#undef HAVE_SYS_UN_H 508b2cdf21fSsthen 509933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */ 510933707f3Ssthen#undef HAVE_SYS_WAIT_H 511933707f3Ssthen 512933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */ 513933707f3Ssthen#undef HAVE_TIME_H 514933707f3Ssthen 515933707f3Ssthen/* Define to 1 if you have the `tzset' function. */ 516933707f3Ssthen#undef HAVE_TZSET 517933707f3Ssthen 518933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */ 519933707f3Ssthen#undef HAVE_UNISTD_H 520933707f3Ssthen 521933707f3Ssthen/* Define to 1 if you have the `usleep' function. */ 522933707f3Ssthen#undef HAVE_USLEEP 523933707f3Ssthen 524933707f3Ssthen/* Define to 1 if you have the `vfork' function. */ 525933707f3Ssthen#undef HAVE_VFORK 526933707f3Ssthen 527933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */ 528933707f3Ssthen#undef HAVE_VFORK_H 529933707f3Ssthen 530933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */ 531933707f3Ssthen#undef HAVE_WINDOWS_H 532933707f3Ssthen 533933707f3Ssthen/* Using Windows threads */ 534933707f3Ssthen#undef HAVE_WINDOWS_THREADS 535933707f3Ssthen 536933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */ 537933707f3Ssthen#undef HAVE_WINSOCK2_H 538933707f3Ssthen 539933707f3Ssthen/* Define to 1 if `fork' works. */ 540933707f3Ssthen#undef HAVE_WORKING_FORK 541933707f3Ssthen 542933707f3Ssthen/* Define to 1 if `vfork' works. */ 543933707f3Ssthen#undef HAVE_WORKING_VFORK 544933707f3Ssthen 545933707f3Ssthen/* Define to 1 if you have the `writev' function. */ 546933707f3Ssthen#undef HAVE_WRITEV 547933707f3Ssthen 548933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */ 549933707f3Ssthen#undef HAVE_WS2TCPIP_H 550933707f3Ssthen 551933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */ 552933707f3Ssthen#undef HAVE__BEGINTHREADEX 553933707f3Ssthen 554933707f3Ssthen/* if lex has yylex_destroy */ 555933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY 556933707f3Ssthen 55732e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */ 558933707f3Ssthen#undef LT_OBJDIR 559933707f3Ssthen 560933707f3Ssthen/* Define to the maximum message length to pass to syslog. */ 561933707f3Ssthen#undef MAXSYSLOGMSGLEN 562933707f3Ssthen 563933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */ 564933707f3Ssthen#undef MEMCMP_IS_BROKEN 565933707f3Ssthen 566933707f3Ssthen/* Define if mkdir has one argument. */ 567933707f3Ssthen#undef MKDIR_HAS_ONE_ARG 568933707f3Ssthen 569933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes 570933707f3Ssthen lower performance). */ 571933707f3Ssthen#undef NONBLOCKING_IS_BROKEN 572933707f3Ssthen 573933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */ 574933707f3Ssthen#undef OMITTED__D_ALL_SOURCE 575933707f3Ssthen 576933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */ 577933707f3Ssthen#undef OMITTED__D_BSD_SOURCE 578933707f3Ssthen 57932e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */ 58032e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE 58132e31f52Ssthen 582933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */ 583933707f3Ssthen#undef OMITTED__D_GNU_SOURCE 584933707f3Ssthen 585933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */ 586933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1 587933707f3Ssthen 588933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */ 589933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112 590933707f3Ssthen 591933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */ 592933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600 593933707f3Ssthen 594933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ 595933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 596933707f3Ssthen 597933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */ 598933707f3Ssthen#undef OMITTED__D__EXTENSIONS__ 599933707f3Ssthen 600933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */ 601933707f3Ssthen#undef PACKAGE_BUGREPORT 602933707f3Ssthen 603933707f3Ssthen/* Define to the full name of this package. */ 604933707f3Ssthen#undef PACKAGE_NAME 605933707f3Ssthen 606933707f3Ssthen/* Define to the full name and version of this package. */ 607933707f3Ssthen#undef PACKAGE_STRING 608933707f3Ssthen 609933707f3Ssthen/* Define to the one symbol short name of this package. */ 610933707f3Ssthen#undef PACKAGE_TARNAME 611933707f3Ssthen 612933707f3Ssthen/* Define to the home page for this package. */ 613933707f3Ssthen#undef PACKAGE_URL 614933707f3Ssthen 615933707f3Ssthen/* Define to the version of this package. */ 616933707f3Ssthen#undef PACKAGE_VERSION 617933707f3Ssthen 618933707f3Ssthen/* default pidfile location */ 619933707f3Ssthen#undef PIDFILE 620933707f3Ssthen 621933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on 622933707f3Ssthen your system. */ 623933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE 624933707f3Ssthen 625933707f3Ssthen/* Define as the return type of signal handlers (`int' or `void'). */ 626933707f3Ssthen#undef RETSIGTYPE 627933707f3Ssthen 628933707f3Ssthen/* default rootkey location */ 629933707f3Ssthen#undef ROOT_ANCHOR_FILE 630933707f3Ssthen 631933707f3Ssthen/* default rootcert location */ 632933707f3Ssthen#undef ROOT_CERT_FILE 633933707f3Ssthen 634933707f3Ssthen/* version number for resource files */ 635933707f3Ssthen#undef RSRC_PACKAGE_VERSION 636933707f3Ssthen 637933707f3Ssthen/* Directory to chdir to */ 638933707f3Ssthen#undef RUN_DIR 639933707f3Ssthen 640933707f3Ssthen/* Shared data */ 641933707f3Ssthen#undef SHARE_DIR 642933707f3Ssthen 6435d76a658Ssthen/* The size of `time_t', as computed by sizeof. */ 6445d76a658Ssthen#undef SIZEOF_TIME_T 6455d76a658Ssthen 64624893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */ 64724893edcSsthen#undef SNPRINTF_RET_BROKEN 64824893edcSsthen 649933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */ 650933707f3Ssthen#undef STDC_HEADERS 651933707f3Ssthen 652933707f3Ssthen/* use default strptime. */ 653933707f3Ssthen#undef STRPTIME_WORKS 654933707f3Ssthen 655933707f3Ssthen/* Use win32 resources and API */ 656933707f3Ssthen#undef UB_ON_WINDOWS 657933707f3Ssthen 658933707f3Ssthen/* default username */ 659933707f3Ssthen#undef UB_USERNAME 660933707f3Ssthen 661933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */ 662933707f3Ssthen#undef UNBOUND_ALLOC_LITE 663933707f3Ssthen 664933707f3Ssthen/* use malloc not regions, for debug use */ 665933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL 666933707f3Ssthen 667933707f3Ssthen/* use statistics for allocs and frees, for debug use */ 668933707f3Ssthen#undef UNBOUND_ALLOC_STATS 669933707f3Ssthen 670933707f3Ssthen/* define this to enable debug checks. */ 671933707f3Ssthen#undef UNBOUND_DEBUG 672933707f3Ssthen 6732ee382b6Ssthen/* Define to 1 to use cachedb support */ 6742ee382b6Ssthen#undef USE_CACHEDB 6752ee382b6Ssthen 6762be9e038Ssthen/* Define to 1 to enable dnscrypt support */ 6772be9e038Ssthen#undef USE_DNSCRYPT 6782be9e038Ssthen 6792be9e038Ssthen/* Define to 1 to enable dnscrypt with xchacha20 support */ 6802be9e038Ssthen#undef USE_DNSCRYPT_XCHACHA20 6812be9e038Ssthen 68298f3ca02Sbrad/* Define to 1 to enable dnstap support */ 68398f3ca02Sbrad#undef USE_DNSTAP 68498f3ca02Sbrad 6852ee382b6Ssthen/* Define this to enable DSA support. */ 6862ee382b6Ssthen#undef USE_DSA 6872ee382b6Ssthen 688d8d14d0cSsthen/* Define this to enable ECDSA support. */ 689d8d14d0cSsthen#undef USE_ECDSA 690d8d14d0cSsthen 691d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */ 692d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND 693d8d14d0cSsthen 6942be9e038Ssthen/* Define this to enable ED25519 support. */ 6952be9e038Ssthen#undef USE_ED25519 6962be9e038Ssthen 697933707f3Ssthen/* Define this to enable GOST support. */ 698933707f3Ssthen#undef USE_GOST 699933707f3Ssthen 7002be9e038Ssthen/* Define to 1 to use ipsecmod support. */ 7012be9e038Ssthen#undef USE_IPSECMOD 7022be9e038Ssthen 703933707f3Ssthen/* Define if you want to use internal select based events */ 704933707f3Ssthen#undef USE_MINI_EVENT 705933707f3Ssthen 70677079be7Ssthen/* Define this to enable client TCP Fast Open. */ 70777079be7Ssthen#undef USE_MSG_FASTOPEN 70877079be7Ssthen 70977079be7Ssthen/* Define this to enable client TCP Fast Open. */ 71077079be7Ssthen#undef USE_OSX_MSG_FASTOPEN 71177079be7Ssthen 7122be9e038Ssthen/* Define this to enable SHA1 support. */ 7132be9e038Ssthen#undef USE_SHA1 7142be9e038Ssthen 715933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */ 716933707f3Ssthen#undef USE_SHA2 717933707f3Ssthen 718933707f3Ssthen/* Enable extensions on AIX 3, Interix. */ 719933707f3Ssthen#ifndef _ALL_SOURCE 720933707f3Ssthen# undef _ALL_SOURCE 721933707f3Ssthen#endif 722933707f3Ssthen/* Enable GNU extensions on systems that have them. */ 723933707f3Ssthen#ifndef _GNU_SOURCE 724933707f3Ssthen# undef _GNU_SOURCE 725933707f3Ssthen#endif 726933707f3Ssthen/* Enable threading extensions on Solaris. */ 727933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS 728933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS 729933707f3Ssthen#endif 730933707f3Ssthen/* Enable extensions on HP NonStop. */ 731933707f3Ssthen#ifndef _TANDEM_SOURCE 732933707f3Ssthen# undef _TANDEM_SOURCE 733933707f3Ssthen#endif 734933707f3Ssthen/* Enable general extensions on Solaris. */ 735933707f3Ssthen#ifndef __EXTENSIONS__ 736933707f3Ssthen# undef __EXTENSIONS__ 737933707f3Ssthen#endif 738933707f3Ssthen 739933707f3Ssthen 74077079be7Ssthen/* Define this to enable server TCP Fast Open. */ 74177079be7Ssthen#undef USE_TCP_FASTOPEN 74277079be7Ssthen 743933707f3Ssthen/* Whether the windows socket API is used */ 744933707f3Ssthen#undef USE_WINSOCK 745933707f3Ssthen 746933707f3Ssthen/* the version of the windows API enabled */ 747933707f3Ssthen#undef WINVER 748933707f3Ssthen 749933707f3Ssthen/* Define if you want Python module. */ 750933707f3Ssthen#undef WITH_PYTHONMODULE 751933707f3Ssthen 752933707f3Ssthen/* Define if you want PyUnbound. */ 753933707f3Ssthen#undef WITH_PYUNBOUND 754933707f3Ssthen 755933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 756933707f3Ssthen `char[]'. */ 757933707f3Ssthen#undef YYTEXT_POINTER 758933707f3Ssthen 759229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5. */ 760229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE 761229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1 762229e174cSsthen#endif 763229e174cSsthen 764933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */ 765933707f3Ssthen#undef _FILE_OFFSET_BITS 766933707f3Ssthen 767933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 768933707f3Ssthen#undef _LARGEFILE_SOURCE 769933707f3Ssthen 770933707f3Ssthen/* Define for large files, on AIX-style hosts. */ 771933707f3Ssthen#undef _LARGE_FILES 772933707f3Ssthen 773933707f3Ssthen/* Define to 1 if on MINIX. */ 774933707f3Ssthen#undef _MINIX 775933707f3Ssthen 7765d76a658Ssthen/* Enable for compile on Minix */ 7775d76a658Ssthen#undef _NETBSD_SOURCE 7785d76a658Ssthen 779933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with 780933707f3Ssthen this defined. */ 781933707f3Ssthen#undef _POSIX_1_SOURCE 782933707f3Ssthen 783933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */ 784933707f3Ssthen#undef _POSIX_SOURCE 785933707f3Ssthen 786933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */ 787933707f3Ssthen#undef const 788933707f3Ssthen 789933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 790933707f3Ssthen#undef gid_t 791933707f3Ssthen 792933707f3Ssthen/* in_addr_t */ 793933707f3Ssthen#undef in_addr_t 794933707f3Ssthen 795933707f3Ssthen/* in_port_t */ 796933707f3Ssthen#undef in_port_t 797933707f3Ssthen 798933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler 799933707f3Ssthen calls it, or to nothing if 'inline' is not supported under any name. */ 800933707f3Ssthen#ifndef __cplusplus 801933707f3Ssthen#undef inline 802933707f3Ssthen#endif 803933707f3Ssthen 804933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */ 805933707f3Ssthen#undef int16_t 806933707f3Ssthen 807933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 808933707f3Ssthen#undef int32_t 809933707f3Ssthen 810933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */ 811933707f3Ssthen#undef int64_t 812933707f3Ssthen 813933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */ 814933707f3Ssthen#undef int8_t 815933707f3Ssthen 816933707f3Ssthen/* Define if replacement function should be used. */ 817933707f3Ssthen#undef malloc 818933707f3Ssthen 819933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */ 820933707f3Ssthen#undef off_t 821933707f3Ssthen 822933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 823933707f3Ssthen#undef pid_t 824933707f3Ssthen 825933707f3Ssthen/* Define to 'int' if not defined */ 826933707f3Ssthen#undef rlim_t 827933707f3Ssthen 828933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 829933707f3Ssthen#undef size_t 830933707f3Ssthen 831933707f3Ssthen/* Define to 'int' if not defined */ 832933707f3Ssthen#undef socklen_t 833933707f3Ssthen 834933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 835933707f3Ssthen#undef ssize_t 836933707f3Ssthen 837933707f3Ssthen/* Define to 'unsigned char if not defined */ 838933707f3Ssthen#undef u_char 839933707f3Ssthen 840933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 841933707f3Ssthen#undef uid_t 842933707f3Ssthen 843933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */ 844933707f3Ssthen#undef uint16_t 845933707f3Ssthen 846933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 847933707f3Ssthen#undef uint32_t 848933707f3Ssthen 849933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */ 850933707f3Ssthen#undef uint64_t 851933707f3Ssthen 852933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */ 853933707f3Ssthen#undef uint8_t 854933707f3Ssthen 855933707f3Ssthen/* Define as `fork' if `vfork' does not work. */ 856933707f3Ssthen#undef vfork 857933707f3Ssthen 858933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) 859933707f3Ssthen#define _GNU_SOURCE 1 860933707f3Ssthen#endif 861933707f3Ssthen 862933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) 863933707f3Ssthen#define _BSD_SOURCE 1 864933707f3Ssthen#endif 865933707f3Ssthen 86632e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) 86732e31f52Ssthen#define _DEFAULT_SOURCE 1 86832e31f52Ssthen#endif 86932e31f52Ssthen 870933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) 871933707f3Ssthen#define __EXTENSIONS__ 1 872933707f3Ssthen#endif 873933707f3Ssthen 874933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) 875933707f3Ssthen#define _POSIX_C_SOURCE 200112 876933707f3Ssthen#endif 877933707f3Ssthen 878933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) 879933707f3Ssthen#define _XOPEN_SOURCE 600 880933707f3Ssthen#endif 881933707f3Ssthen 882933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) 883933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1 884933707f3Ssthen#endif 885933707f3Ssthen 886933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) 887933707f3Ssthen#define _ALL_SOURCE 1 888933707f3Ssthen#endif 889933707f3Ssthen 890933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) 891933707f3Ssthen#define _LARGEFILE_SOURCE 1 892933707f3Ssthen#endif 893933707f3Ssthen 894933707f3Ssthen 895933707f3Ssthen 896933707f3Ssthen 897933707f3Ssthen#ifndef UNBOUND_DEBUG 898933707f3Ssthen# define NDEBUG 899933707f3Ssthen#endif 900933707f3Ssthen 9015d76a658Ssthen/** Use small-ldns codebase */ 9025d76a658Ssthen#define USE_SLDNS 1 9035d76a658Ssthen#ifdef HAVE_SSL 9045d76a658Ssthen# define LDNS_BUILD_CONFIG_HAVE_SSL 1 9055d76a658Ssthen#endif 9065d76a658Ssthen 907933707f3Ssthen#include <stdio.h> 908933707f3Ssthen#include <string.h> 909933707f3Ssthen#include <unistd.h> 910933707f3Ssthen#include <assert.h> 911933707f3Ssthen 912933707f3Ssthen#if STDC_HEADERS 913933707f3Ssthen#include <stdlib.h> 914933707f3Ssthen#include <stddef.h> 915933707f3Ssthen#endif 916933707f3Ssthen 9175d76a658Ssthen#ifdef HAVE_STDARG_H 9185d76a658Ssthen#include <stdarg.h> 9195d76a658Ssthen#endif 9205d76a658Ssthen 921933707f3Ssthen#ifdef HAVE_STDINT_H 922933707f3Ssthen#include <stdint.h> 923933707f3Ssthen#endif 924933707f3Ssthen 925933707f3Ssthen#include <errno.h> 926933707f3Ssthen 927933707f3Ssthen#if HAVE_SYS_PARAM_H 928933707f3Ssthen#include <sys/param.h> 929933707f3Ssthen#endif 930933707f3Ssthen 931933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H 932933707f3Ssthen#include <sys/socket.h> 933933707f3Ssthen#endif 934933707f3Ssthen 935933707f3Ssthen#ifdef HAVE_SYS_UIO_H 936933707f3Ssthen#include <sys/uio.h> 937933707f3Ssthen#endif 938933707f3Ssthen 939933707f3Ssthen#ifdef HAVE_NETINET_IN_H 940933707f3Ssthen#include <netinet/in.h> 941933707f3Ssthen#endif 942933707f3Ssthen 94332e31f52Ssthen#ifdef HAVE_NETINET_TCP_H 94432e31f52Ssthen#include <netinet/tcp.h> 94532e31f52Ssthen#endif 94632e31f52Ssthen 947933707f3Ssthen#ifdef HAVE_ARPA_INET_H 948933707f3Ssthen#include <arpa/inet.h> 949933707f3Ssthen#endif 950933707f3Ssthen 951933707f3Ssthen#ifdef HAVE_WINSOCK2_H 952933707f3Ssthen#include <winsock2.h> 953933707f3Ssthen#endif 954933707f3Ssthen 955933707f3Ssthen#ifdef HAVE_WS2TCPIP_H 956933707f3Ssthen#include <ws2tcpip.h> 957933707f3Ssthen#endif 958933707f3Ssthen 9595d76a658Ssthen#ifndef USE_WINSOCK 9605d76a658Ssthen#define ARG_LL "%ll" 9615d76a658Ssthen#else 9625d76a658Ssthen#define ARG_LL "%I64" 9635d76a658Ssthen#endif 9645d76a658Ssthen 965b2cdf21fSsthen#ifndef AF_LOCAL 966b2cdf21fSsthen#define AF_LOCAL AF_UNIX 967b2cdf21fSsthen#endif 968b2cdf21fSsthen 969933707f3Ssthen 970933707f3Ssthen 971933707f3Ssthen#ifdef HAVE_ATTR_FORMAT 972933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) \ 973933707f3Ssthen __attribute__ ((format (archetype, string_index, first_to_check))) 974933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */ 975933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 976933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */ 977933707f3Ssthen 978933707f3Ssthen 979933707f3Ssthen#if defined(DOXYGEN) 980933707f3Ssthen# define ATTR_UNUSED(x) x 981933707f3Ssthen#elif defined(__cplusplus) 982933707f3Ssthen# define ATTR_UNUSED(x) 983933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED) 984933707f3Ssthen# define ATTR_UNUSED(x) x __attribute__((unused)) 985933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */ 986933707f3Ssthen# define ATTR_UNUSED(x) x 987933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */ 988933707f3Ssthen 989933707f3Ssthen 990933707f3Ssthen#ifndef HAVE_FSEEKO 991933707f3Ssthen#define fseeko fseek 992933707f3Ssthen#define ftello ftell 993933707f3Ssthen#endif /* HAVE_FSEEKO */ 994933707f3Ssthen 995933707f3Ssthen 996933707f3Ssthen#ifndef MAXHOSTNAMELEN 997933707f3Ssthen#define MAXHOSTNAMELEN 256 998933707f3Ssthen#endif 999933707f3Ssthen 100024893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) 1001933707f3Ssthen#define snprintf snprintf_unbound 1002933707f3Ssthen#define vsnprintf vsnprintf_unbound 1003933707f3Ssthen#include <stdarg.h> 1004933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...); 1005933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 100624893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */ 1007933707f3Ssthen 1008933707f3Ssthen#ifndef HAVE_INET_PTON 1009933707f3Ssthen#define inet_pton inet_pton_unbound 1010933707f3Ssthenint inet_pton(int af, const char* src, void* dst); 1011933707f3Ssthen#endif /* HAVE_INET_PTON */ 1012933707f3Ssthen 1013933707f3Ssthen 1014933707f3Ssthen#ifndef HAVE_INET_NTOP 1015933707f3Ssthen#define inet_ntop inet_ntop_unbound 1016933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 1017933707f3Ssthen#endif 1018933707f3Ssthen 1019933707f3Ssthen 1020933707f3Ssthen#ifndef HAVE_INET_ATON 1021933707f3Ssthen#define inet_aton inet_aton_unbound 1022933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr); 1023933707f3Ssthen#endif 1024933707f3Ssthen 1025933707f3Ssthen 1026933707f3Ssthen#ifndef HAVE_MEMMOVE 1027933707f3Ssthen#define memmove memmove_unbound 1028933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n); 1029933707f3Ssthen#endif 1030933707f3Ssthen 1031933707f3Ssthen 10325d76a658Ssthen#ifndef HAVE_STRLCAT 10335d76a658Ssthen#define strlcat strlcat_unbound 10345d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz); 10355d76a658Ssthen#endif 10365d76a658Ssthen 10375d76a658Ssthen 1038933707f3Ssthen#ifndef HAVE_STRLCPY 1039933707f3Ssthen#define strlcpy strlcpy_unbound 1040933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz); 1041933707f3Ssthen#endif 1042933707f3Ssthen 1043933707f3Ssthen 1044933707f3Ssthen#ifndef HAVE_GMTIME_R 1045933707f3Ssthen#define gmtime_r gmtime_r_unbound 1046933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result); 1047933707f3Ssthen#endif 1048933707f3Ssthen 1049933707f3Ssthen 1050fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY 1051fdfb4ba6Ssthen#define reallocarray reallocarrayunbound 1052fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size); 1053fdfb4ba6Ssthen#endif 1054fdfb4ba6Ssthen 1055fdfb4ba6Ssthen 1056229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H) 1057933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */ 1058933707f3Ssthen#endif /* HAVE_SLEEP */ 1059933707f3Ssthen 1060933707f3Ssthen 1061933707f3Ssthen#ifndef HAVE_USLEEP 1062933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */ 1063933707f3Ssthen#endif /* HAVE_USLEEP */ 1064933707f3Ssthen 1065933707f3Ssthen 1066933707f3Ssthen#ifndef HAVE_RANDOM 1067933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */ 1068933707f3Ssthen#endif /* HAVE_RANDOM */ 1069933707f3Ssthen 1070933707f3Ssthen 1071933707f3Ssthen#ifndef HAVE_SRANDOM 1072933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */ 1073933707f3Ssthen#endif /* HAVE_SRANDOM */ 1074933707f3Ssthen 1075933707f3Ssthen 1076933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 1077933707f3Ssthen#ifdef HAVE_WINSOCK2_H 1078933707f3Ssthen#define FD_SET_T (u_int) 1079933707f3Ssthen#else 1080933707f3Ssthen#define FD_SET_T 1081933707f3Ssthen#endif 1082933707f3Ssthen 1083933707f3Ssthen 1084933707f3Ssthen#ifndef IPV6_MIN_MTU 1085933707f3Ssthen#define IPV6_MIN_MTU 1280 1086933707f3Ssthen#endif /* IPV6_MIN_MTU */ 1087933707f3Ssthen 1088933707f3Ssthen 1089933707f3Ssthen#ifdef MEMCMP_IS_BROKEN 1090d8d14d0cSsthen#include "compat/memcmp.h" 1091933707f3Ssthen#define memcmp memcmp_unbound 1092933707f3Ssthenint memcmp(const void *x, const void *y, size_t n); 1093933707f3Ssthen#endif 1094933707f3Ssthen 1095933707f3Ssthen 1096933707f3Ssthen 1097933707f3Ssthen#ifndef HAVE_CTIME_R 1098933707f3Ssthen#define ctime_r unbound_ctime_r 1099933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf); 1100933707f3Ssthen#endif 1101933707f3Ssthen 11022ee382b6Ssthen#ifndef HAVE_STRSEP 11032ee382b6Ssthen#define strsep unbound_strsep 11042ee382b6Ssthenchar *strsep(char **stringp, const char *delim); 11052ee382b6Ssthen#endif 11062ee382b6Ssthen 110724893edcSsthen#ifndef HAVE_ISBLANK 110824893edcSsthen#define isblank unbound_isblank 110924893edcSsthenint isblank(int c); 111024893edcSsthen#endif 111124893edcSsthen 111277079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP 111377079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 111477079be7Ssthen#endif 111577079be7Ssthen 111677079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON 111777079be7Ssthenint inet_pton(int af, const char* src, void* dst); 111877079be7Ssthen#endif 111977079be7Ssthen 1120933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS) 1121933707f3Ssthen#define strptime unbound_strptime 1122933707f3Ssthenstruct tm; 1123933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm); 1124933707f3Ssthen#endif 1125933707f3Ssthen 112698f3ca02Sbrad#ifdef HAVE_LIBRESSL 112798f3ca02Sbrad# if !HAVE_DECL_STRLCPY 112898f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz); 112998f3ca02Sbrad# endif 113098f3ca02Sbrad# if !HAVE_DECL_STRLCAT 113198f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz); 113298f3ca02Sbrad# endif 113398f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM) 113498f3ca02Sbraduint32_t arc4random(void); 113598f3ca02Sbrad# endif 113698f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM) 113798f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 113898f3ca02Sbrad# endif 1139fdfb4ba6Ssthen# if !HAVE_DECL_REALLOCARRAY 1140fdfb4ba6Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size); 1141fdfb4ba6Ssthen# endif 114298f3ca02Sbrad#endif /* HAVE_LIBRESSL */ 114398f3ca02Sbrad#ifndef HAVE_ARC4RANDOM 114498f3ca02Sbradvoid explicit_bzero(void* buf, size_t len); 114598f3ca02Sbradint getentropy(void* buf, size_t len); 114698f3ca02Sbraduint32_t arc4random(void); 114798f3ca02Sbradvoid arc4random_buf(void* buf, size_t n); 114898f3ca02Sbradvoid _ARC4_LOCK(void); 114998f3ca02Sbradvoid _ARC4_UNLOCK(void); 115098f3ca02Sbrad#endif 115198f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM 115298f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 115398f3ca02Sbrad#endif 115498f3ca02Sbrad#ifdef COMPAT_SHA512 115598f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH 115698f3ca02Sbrad#define SHA512_BLOCK_LENGTH 128 115798f3ca02Sbrad#define SHA512_DIGEST_LENGTH 64 115898f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) 115998f3ca02Sbradtypedef struct _SHA512_CTX { 116098f3ca02Sbrad uint64_t state[8]; 116198f3ca02Sbrad uint64_t bitcount[2]; 116298f3ca02Sbrad uint8_t buffer[SHA512_BLOCK_LENGTH]; 116398f3ca02Sbrad} SHA512_CTX; 116498f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */ 116598f3ca02Sbradvoid SHA512_Init(SHA512_CTX*); 116698f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t); 116798f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); 116898f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); 116998f3ca02Sbrad#endif /* COMPAT_SHA512 */ 117098f3ca02Sbrad 117198f3ca02Sbrad 117298f3ca02Sbrad 1173933707f3Ssthen#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)) 1174933707f3Ssthen /* using version of libevent that is not threadsafe. */ 1175933707f3Ssthen# define LIBEVENT_SIGNAL_PROBLEM 1 1176933707f3Ssthen#endif 1177933707f3Ssthen 1178933707f3Ssthen#ifndef CHECKED_INET6 1179933707f3Ssthen# define CHECKED_INET6 1180933707f3Ssthen# ifdef AF_INET6 1181933707f3Ssthen# define INET6 1182933707f3Ssthen# else 1183933707f3Ssthen# define AF_INET6 28 1184933707f3Ssthen# endif 1185933707f3Ssthen#endif /* CHECKED_INET6 */ 1186933707f3Ssthen 1187933707f3Ssthen#ifndef HAVE_GETADDRINFO 1188933707f3Ssthenstruct sockaddr_storage; 1189933707f3Ssthen#include "compat/fake-rfc2553.h" 1190933707f3Ssthen#endif 1191933707f3Ssthen 1192933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS 1193933707f3Ssthen# define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__) 1194933707f3Ssthen# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__) 1195933707f3Ssthen# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__) 1196933707f3Ssthen# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__) 1197933707f3Ssthenvoid *unbound_stat_malloc(size_t size); 1198933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size); 1199933707f3Ssthenvoid unbound_stat_free(void *ptr); 1200933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size); 1201933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line, 1202933707f3Ssthen const char* func); 1203933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file, 1204933707f3Ssthen int line, const char* func); 1205933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line, 1206933707f3Ssthen const char* func); 1207933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, 1208933707f3Ssthen int line, const char* func); 1209933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE) 1210933707f3Ssthen# include "util/alloc.h" 1211933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */ 1212933707f3Ssthen 1213933707f3Ssthen/** default port for DNS traffic. */ 1214933707f3Ssthen#define UNBOUND_DNS_PORT 53 1215933707f3Ssthen/** default port for unbound control traffic, registered port with IANA, 1216933707f3Ssthen ub-dns-control 8953/tcp unbound dns nameserver control */ 1217933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953 1218933707f3Ssthen/** the version of unbound-control that this software implements */ 1219933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1 1220933707f3Ssthen 1221933707f3Ssthen 1222