1933707f3Ssthen/* config.h.in. Generated from configure.ac by autoheader. */ 2933707f3Ssthen 3933707f3Ssthen/* Directory to chroot to */ 4933707f3Ssthen#undef CHROOT_DIR 5933707f3Ssthen 698f3ca02Sbrad/* Do sha512 definitions in config.h */ 798f3ca02Sbrad#undef COMPAT_SHA512 898f3ca02Sbrad 9933707f3Ssthen/* Pathname to the Unbound configuration file */ 10933707f3Ssthen#undef CONFIGFILE 11933707f3Ssthen 12933707f3Ssthen/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 13933707f3Ssthen */ 14933707f3Ssthen#undef DARWIN_BROKEN_SETREUID 15933707f3Ssthen 16933707f3Ssthen/* Whether daemon is deprecated */ 17933707f3Ssthen#undef DEPRECATED_DAEMON 18933707f3Ssthen 1998f3ca02Sbrad/* default dnstap socket path */ 2098f3ca02Sbrad#undef DNSTAP_SOCKET_PATH 2198f3ca02Sbrad 22933707f3Ssthen/* Define if you want to use debug lock checking (slow). */ 23933707f3Ssthen#undef ENABLE_LOCK_CHECKS 24933707f3Ssthen 25933707f3Ssthen/* Define this if you enabled-allsymbols from libunbound to link binaries to 26933707f3Ssthen it for smaller install size, but the libunbound export table is polluted by 27933707f3Ssthen internal symbols */ 28933707f3Ssthen#undef EXPORT_ALL_SYMBOLS 29933707f3Ssthen 3098f3ca02Sbrad/* Define to 1 if you have the `arc4random' function. */ 3198f3ca02Sbrad#undef HAVE_ARC4RANDOM 3298f3ca02Sbrad 3398f3ca02Sbrad/* Define to 1 if you have the `arc4random_uniform' function. */ 3498f3ca02Sbrad#undef HAVE_ARC4RANDOM_UNIFORM 3598f3ca02Sbrad 36933707f3Ssthen/* Define to 1 if you have the <arpa/inet.h> header file. */ 37933707f3Ssthen#undef HAVE_ARPA_INET_H 38933707f3Ssthen 39933707f3Ssthen/* Whether the C compiler accepts the "format" attribute */ 40933707f3Ssthen#undef HAVE_ATTR_FORMAT 41933707f3Ssthen 42933707f3Ssthen/* Whether the C compiler accepts the "unused" attribute */ 43933707f3Ssthen#undef HAVE_ATTR_UNUSED 44933707f3Ssthen 452ee382b6Ssthen/* Whether the C compiler accepts the "weak" attribute */ 462ee382b6Ssthen#undef HAVE_ATTR_WEAK 472ee382b6Ssthen 48b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */ 49933707f3Ssthen#undef HAVE_CHOWN 50933707f3Ssthen 51933707f3Ssthen/* Define to 1 if you have the `chroot' function. */ 52933707f3Ssthen#undef HAVE_CHROOT 53933707f3Ssthen 54*77079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ 55*77079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 56*77079be7Ssthen 57933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */ 58933707f3Ssthen#undef HAVE_CTIME_R 59933707f3Ssthen 60933707f3Ssthen/* Define to 1 if you have the `daemon' function. */ 61933707f3Ssthen#undef HAVE_DAEMON 62933707f3Ssthen 6398f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you 6498f3ca02Sbrad don't. */ 6598f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM 6698f3ca02Sbrad 6798f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 6898f3ca02Sbrad if you don't. */ 6998f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM 7098f3ca02Sbrad 71*77079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 72*77079be7Ssthen don't. */ 73*77079be7Ssthen#undef HAVE_DECL_INET_NTOP 74*77079be7Ssthen 75*77079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you 76*77079be7Ssthen don't. */ 77*77079be7Ssthen#undef HAVE_DECL_INET_PTON 78*77079be7Ssthen 79d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 80d8d14d0cSsthen don't. */ 81d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1 82d8d14d0cSsthen 83d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 84d8d14d0cSsthen if you don't. */ 85d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1 86d8d14d0cSsthen 87fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 88fdfb4ba6Ssthen don't. */ 89fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY 90fdfb4ba6Ssthen 91933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 92933707f3Ssthen if you don't. */ 93933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE 94933707f3Ssthen 95933707f3Ssthen/* Define to 1 if you have the declaration of 96933707f3Ssthen `SSL_COMP_get_compression_methods', and to 0 if you don't. */ 97933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 98933707f3Ssthen 99a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 100a961b961Ssthen 0 if you don't. */ 101a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 102a961b961Ssthen 10398f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you 10498f3ca02Sbrad don't. */ 10598f3ca02Sbrad#undef HAVE_DECL_STRLCAT 10698f3ca02Sbrad 10798f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you 10898f3ca02Sbrad don't. */ 10998f3ca02Sbrad#undef HAVE_DECL_STRLCPY 11098f3ca02Sbrad 11124893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if 11224893edcSsthen you don't. */ 11324893edcSsthen#undef HAVE_DECL_XML_STOPPARSER 11424893edcSsthen 115933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */ 116933707f3Ssthen#undef HAVE_DLFCN_H 117933707f3Ssthen 118*77079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */ 119*77079be7Ssthen#undef HAVE_DSA_SIG_SET0 120*77079be7Ssthen 12198f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */ 12298f3ca02Sbrad#undef HAVE_ENDIAN_H 12398f3ca02Sbrad 1245d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */ 1255d76a658Ssthen#undef HAVE_ENDPROTOENT 1265d76a658Ssthen 127*77079be7Ssthen/* Define to 1 if you have the `endpwent' function. */ 128*77079be7Ssthen#undef HAVE_ENDPWENT 129*77079be7Ssthen 1305d76a658Ssthen/* Define to 1 if you have the `endservent' function. */ 1315d76a658Ssthen#undef HAVE_ENDSERVENT 1325d76a658Ssthen 133*77079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */ 134*77079be7Ssthen#undef HAVE_ERR_FREE_STRINGS 135*77079be7Ssthen 136*77079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 137*77079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 138*77079be7Ssthen 139933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */ 140933707f3Ssthen#undef HAVE_EVENT_BASE_FREE 141933707f3Ssthen 142933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */ 143933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD 144933707f3Ssthen 145933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */ 146933707f3Ssthen#undef HAVE_EVENT_BASE_NEW 147933707f3Ssthen 148933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */ 149933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE 150933707f3Ssthen 151933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */ 152933707f3Ssthen#undef HAVE_EVENT_H 153933707f3Ssthen 154*77079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */ 155*77079be7Ssthen#undef HAVE_EVP_CLEANUP 156*77079be7Ssthen 157*77079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */ 158*77079be7Ssthen#undef HAVE_EVP_DSS1 159*77079be7Ssthen 1602ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 1612ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW 1622ee382b6Ssthen 163933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */ 164933707f3Ssthen#undef HAVE_EVP_SHA1 165933707f3Ssthen 166933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */ 167933707f3Ssthen#undef HAVE_EVP_SHA256 168933707f3Ssthen 169933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */ 170933707f3Ssthen#undef HAVE_EVP_SHA512 171933707f3Ssthen 172933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */ 173933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP 174933707f3Ssthen 175933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */ 176933707f3Ssthen#undef HAVE_EV_LOOP 177933707f3Ssthen 178933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */ 179933707f3Ssthen#undef HAVE_EXPAT_H 180933707f3Ssthen 181933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */ 182933707f3Ssthen#undef HAVE_FCNTL 183933707f3Ssthen 1843dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */ 1853dcb24b8Ssthen#undef HAVE_FIPS_MODE 1863dcb24b8Ssthen 187933707f3Ssthen/* Define to 1 if you have the `fork' function. */ 188933707f3Ssthen#undef HAVE_FORK 189933707f3Ssthen 190933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 191933707f3Ssthen#undef HAVE_FSEEKO 192933707f3Ssthen 19324893edcSsthen/* Define to 1 if you have the `fsync' function. */ 19424893edcSsthen#undef HAVE_FSYNC 19524893edcSsthen 196933707f3Ssthen/* Whether getaddrinfo is available */ 197933707f3Ssthen#undef HAVE_GETADDRINFO 198933707f3Ssthen 199b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */ 200b2cdf21fSsthen#undef HAVE_GETAUXVAL 201b2cdf21fSsthen 20298f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */ 20398f3ca02Sbrad#undef HAVE_GETENTROPY 20498f3ca02Sbrad 205933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */ 206933707f3Ssthen#undef HAVE_GETOPT_H 207933707f3Ssthen 208933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */ 209933707f3Ssthen#undef HAVE_GETPWNAM 210933707f3Ssthen 211933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */ 212933707f3Ssthen#undef HAVE_GETRLIMIT 213933707f3Ssthen 214933707f3Ssthen/* Define to 1 if you have the `glob' function. */ 215933707f3Ssthen#undef HAVE_GLOB 216933707f3Ssthen 217933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */ 218933707f3Ssthen#undef HAVE_GLOB_H 219933707f3Ssthen 220933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */ 221933707f3Ssthen#undef HAVE_GMTIME_R 222933707f3Ssthen 223933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */ 224933707f3Ssthen#undef HAVE_GRP_H 225933707f3Ssthen 2262ee382b6Ssthen/* If you have HMAC_Update */ 2272ee382b6Ssthen#undef HAVE_HMAC_UPDATE 228933707f3Ssthen 229933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */ 230933707f3Ssthen#undef HAVE_INET_ATON 231933707f3Ssthen 232933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */ 233933707f3Ssthen#undef HAVE_INET_NTOP 234933707f3Ssthen 235933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */ 236933707f3Ssthen#undef HAVE_INET_PTON 237933707f3Ssthen 238933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */ 239933707f3Ssthen#undef HAVE_INITGROUPS 240933707f3Ssthen 241933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */ 242933707f3Ssthen#undef HAVE_INTTYPES_H 243933707f3Ssthen 244933707f3Ssthen/* if the function 'ioctlsocket' is available */ 245933707f3Ssthen#undef HAVE_IOCTLSOCKET 246933707f3Ssthen 247933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */ 248933707f3Ssthen#undef HAVE_IPHLPAPI_H 249933707f3Ssthen 25024893edcSsthen/* Define to 1 if you have the `isblank' function. */ 25124893edcSsthen#undef HAVE_ISBLANK 25224893edcSsthen 253933707f3Ssthen/* Define to 1 if you have the `kill' function. */ 254933707f3Ssthen#undef HAVE_KILL 255933707f3Ssthen 25698f3ca02Sbrad/* Define if we have LibreSSL */ 25798f3ca02Sbrad#undef HAVE_LIBRESSL 25898f3ca02Sbrad 259933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */ 260933707f3Ssthen#undef HAVE_LOCALTIME_R 261933707f3Ssthen 262933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */ 263933707f3Ssthen#undef HAVE_LOGIN_CAP_H 264933707f3Ssthen 265933707f3Ssthen/* If have GNU libc compatible malloc */ 266933707f3Ssthen#undef HAVE_MALLOC 267933707f3Ssthen 268933707f3Ssthen/* Define to 1 if you have the `memmove' function. */ 269933707f3Ssthen#undef HAVE_MEMMOVE 270933707f3Ssthen 271933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */ 272933707f3Ssthen#undef HAVE_MEMORY_H 273933707f3Ssthen 274933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */ 275933707f3Ssthen#undef HAVE_NETDB_H 276933707f3Ssthen 277933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */ 278933707f3Ssthen#undef HAVE_NETINET_IN_H 279933707f3Ssthen 28032e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */ 28132e31f52Ssthen#undef HAVE_NETINET_TCP_H 28232e31f52Ssthen 28324893edcSsthen/* Use libnettle for crypto */ 28424893edcSsthen#undef HAVE_NETTLE 28524893edcSsthen 286*77079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */ 287*77079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H 288*77079be7Ssthen 2893dcb24b8Ssthen/* Use libnss for crypto */ 2903dcb24b8Ssthen#undef HAVE_NSS 2913dcb24b8Ssthen 292*77079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ 293*77079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS 294*77079be7Ssthen 295*77079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */ 296*77079be7Ssthen#undef HAVE_OPENSSL_BN_H 297*77079be7Ssthen 298933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */ 299933707f3Ssthen#undef HAVE_OPENSSL_CONFIG 300933707f3Ssthen 301933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */ 302933707f3Ssthen#undef HAVE_OPENSSL_CONF_H 303933707f3Ssthen 304*77079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */ 305*77079be7Ssthen#undef HAVE_OPENSSL_DH_H 306*77079be7Ssthen 307*77079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */ 308*77079be7Ssthen#undef HAVE_OPENSSL_DSA_H 309*77079be7Ssthen 310933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */ 311933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H 312933707f3Ssthen 313933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */ 314933707f3Ssthen#undef HAVE_OPENSSL_ERR_H 315933707f3Ssthen 316*77079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 317*77079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO 318*77079be7Ssthen 319*77079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 320*77079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL 321*77079be7Ssthen 322933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */ 323933707f3Ssthen#undef HAVE_OPENSSL_RAND_H 324933707f3Ssthen 325*77079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */ 326*77079be7Ssthen#undef HAVE_OPENSSL_RSA_H 327*77079be7Ssthen 328933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */ 329933707f3Ssthen#undef HAVE_OPENSSL_SSL_H 330933707f3Ssthen 331933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */ 332933707f3Ssthen#undef HAVE_PTHREAD 333933707f3Ssthen 334229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */ 335229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT 336229e174cSsthen 337933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */ 338933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T 339933707f3Ssthen 340933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */ 341933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T 342933707f3Ssthen 343933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */ 344933707f3Ssthen#undef HAVE_PWD_H 345933707f3Ssthen 346933707f3Ssthen/* Define if you have Python libraries and header files. */ 347933707f3Ssthen#undef HAVE_PYTHON 348933707f3Ssthen 349933707f3Ssthen/* Define to 1 if you have the `random' function. */ 350933707f3Ssthen#undef HAVE_RANDOM 351933707f3Ssthen 352*77079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */ 353*77079be7Ssthen#undef HAVE_RAND_CLEANUP 354*77079be7Ssthen 355fdfb4ba6Ssthen/* Define to 1 if you have the `reallocarray' function. */ 356fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY 357fdfb4ba6Ssthen 358933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */ 359933707f3Ssthen#undef HAVE_RECVMSG 360933707f3Ssthen 361933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */ 362933707f3Ssthen#undef HAVE_SENDMSG 363933707f3Ssthen 364933707f3Ssthen/* Define to 1 if you have the `setregid' function. */ 365933707f3Ssthen#undef HAVE_SETREGID 366933707f3Ssthen 367933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */ 368933707f3Ssthen#undef HAVE_SETRESGID 369933707f3Ssthen 370933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */ 371933707f3Ssthen#undef HAVE_SETRESUID 372933707f3Ssthen 373933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */ 374933707f3Ssthen#undef HAVE_SETREUID 375933707f3Ssthen 376933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */ 377933707f3Ssthen#undef HAVE_SETRLIMIT 378933707f3Ssthen 379933707f3Ssthen/* Define to 1 if you have the `setsid' function. */ 380933707f3Ssthen#undef HAVE_SETSID 381933707f3Ssthen 382933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */ 383933707f3Ssthen#undef HAVE_SETUSERCONTEXT 384933707f3Ssthen 38598f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */ 38698f3ca02Sbrad#undef HAVE_SHA512_UPDATE 38798f3ca02Sbrad 388933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */ 389933707f3Ssthen#undef HAVE_SIGPROCMASK 390933707f3Ssthen 391933707f3Ssthen/* Define to 1 if you have the `sleep' function. */ 392933707f3Ssthen#undef HAVE_SLEEP 393933707f3Ssthen 394933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */ 395933707f3Ssthen#undef HAVE_SNPRINTF 396933707f3Ssthen 397933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */ 398933707f3Ssthen#undef HAVE_SOCKETPAIR 399933707f3Ssthen 400933707f3Ssthen/* Using Solaris threads */ 401933707f3Ssthen#undef HAVE_SOLARIS_THREADS 402933707f3Ssthen 403933707f3Ssthen/* Define to 1 if you have the `srandom' function. */ 404933707f3Ssthen#undef HAVE_SRANDOM 405933707f3Ssthen 406933707f3Ssthen/* Define if you have the SSL libraries installed. */ 407933707f3Ssthen#undef HAVE_SSL 408933707f3Ssthen 409*77079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 410*77079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL 411*77079be7Ssthen 412933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */ 413933707f3Ssthen#undef HAVE_STDARG_H 414933707f3Ssthen 415933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */ 416933707f3Ssthen#undef HAVE_STDBOOL_H 417933707f3Ssthen 418933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */ 419933707f3Ssthen#undef HAVE_STDINT_H 420933707f3Ssthen 421933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */ 422933707f3Ssthen#undef HAVE_STDLIB_H 423933707f3Ssthen 424933707f3Ssthen/* Define to 1 if you have the `strftime' function. */ 425933707f3Ssthen#undef HAVE_STRFTIME 426933707f3Ssthen 427933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */ 428933707f3Ssthen#undef HAVE_STRINGS_H 429933707f3Ssthen 430933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */ 431933707f3Ssthen#undef HAVE_STRING_H 432933707f3Ssthen 4335d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */ 4345d76a658Ssthen#undef HAVE_STRLCAT 4355d76a658Ssthen 436933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */ 437933707f3Ssthen#undef HAVE_STRLCPY 438933707f3Ssthen 439933707f3Ssthen/* Define to 1 if you have the `strptime' function. */ 440933707f3Ssthen#undef HAVE_STRPTIME 441933707f3Ssthen 4422ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */ 4432ee382b6Ssthen#undef HAVE_STRSEP 4442ee382b6Ssthen 445d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ 446d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 447d8d14d0cSsthen 448b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 449b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 450b2cdf21fSsthen 451933707f3Ssthen/* Define if you have Swig libraries and header files. */ 452933707f3Ssthen#undef HAVE_SWIG 453933707f3Ssthen 454933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */ 455933707f3Ssthen#undef HAVE_SYSLOG_H 456933707f3Ssthen 457*77079be7Ssthen/* Define to 1 if systemd should be used */ 458*77079be7Ssthen#undef HAVE_SYSTEMD 459*77079be7Ssthen 460933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */ 461933707f3Ssthen#undef HAVE_SYS_PARAM_H 462933707f3Ssthen 463933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */ 464933707f3Ssthen#undef HAVE_SYS_RESOURCE_H 465933707f3Ssthen 46698f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */ 46798f3ca02Sbrad#undef HAVE_SYS_SHA2_H 46898f3ca02Sbrad 469933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */ 470933707f3Ssthen#undef HAVE_SYS_SOCKET_H 471933707f3Ssthen 472933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */ 473933707f3Ssthen#undef HAVE_SYS_STAT_H 474933707f3Ssthen 47598f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */ 47698f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H 47798f3ca02Sbrad 478933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */ 479933707f3Ssthen#undef HAVE_SYS_TYPES_H 480933707f3Ssthen 481933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */ 482933707f3Ssthen#undef HAVE_SYS_UIO_H 483933707f3Ssthen 484b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */ 485b2cdf21fSsthen#undef HAVE_SYS_UN_H 486b2cdf21fSsthen 487933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */ 488933707f3Ssthen#undef HAVE_SYS_WAIT_H 489933707f3Ssthen 490933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */ 491933707f3Ssthen#undef HAVE_TIME_H 492933707f3Ssthen 493933707f3Ssthen/* Define to 1 if you have the `tzset' function. */ 494933707f3Ssthen#undef HAVE_TZSET 495933707f3Ssthen 496933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */ 497933707f3Ssthen#undef HAVE_UNISTD_H 498933707f3Ssthen 499933707f3Ssthen/* Define to 1 if you have the `usleep' function. */ 500933707f3Ssthen#undef HAVE_USLEEP 501933707f3Ssthen 502933707f3Ssthen/* Define to 1 if you have the `vfork' function. */ 503933707f3Ssthen#undef HAVE_VFORK 504933707f3Ssthen 505933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */ 506933707f3Ssthen#undef HAVE_VFORK_H 507933707f3Ssthen 508933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */ 509933707f3Ssthen#undef HAVE_WINDOWS_H 510933707f3Ssthen 511933707f3Ssthen/* Using Windows threads */ 512933707f3Ssthen#undef HAVE_WINDOWS_THREADS 513933707f3Ssthen 514933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */ 515933707f3Ssthen#undef HAVE_WINSOCK2_H 516933707f3Ssthen 517933707f3Ssthen/* Define to 1 if `fork' works. */ 518933707f3Ssthen#undef HAVE_WORKING_FORK 519933707f3Ssthen 520933707f3Ssthen/* Define to 1 if `vfork' works. */ 521933707f3Ssthen#undef HAVE_WORKING_VFORK 522933707f3Ssthen 523933707f3Ssthen/* Define to 1 if you have the `writev' function. */ 524933707f3Ssthen#undef HAVE_WRITEV 525933707f3Ssthen 526933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */ 527933707f3Ssthen#undef HAVE_WS2TCPIP_H 528933707f3Ssthen 529933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */ 530933707f3Ssthen#undef HAVE__BEGINTHREADEX 531933707f3Ssthen 532933707f3Ssthen/* if lex has yylex_destroy */ 533933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY 534933707f3Ssthen 53532e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */ 536933707f3Ssthen#undef LT_OBJDIR 537933707f3Ssthen 538933707f3Ssthen/* Define to the maximum message length to pass to syslog. */ 539933707f3Ssthen#undef MAXSYSLOGMSGLEN 540933707f3Ssthen 541933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */ 542933707f3Ssthen#undef MEMCMP_IS_BROKEN 543933707f3Ssthen 544933707f3Ssthen/* Define if mkdir has one argument. */ 545933707f3Ssthen#undef MKDIR_HAS_ONE_ARG 546933707f3Ssthen 547933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes 548933707f3Ssthen lower performance). */ 549933707f3Ssthen#undef NONBLOCKING_IS_BROKEN 550933707f3Ssthen 551933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */ 552933707f3Ssthen#undef OMITTED__D_ALL_SOURCE 553933707f3Ssthen 554933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */ 555933707f3Ssthen#undef OMITTED__D_BSD_SOURCE 556933707f3Ssthen 55732e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */ 55832e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE 55932e31f52Ssthen 560933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */ 561933707f3Ssthen#undef OMITTED__D_GNU_SOURCE 562933707f3Ssthen 563933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */ 564933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1 565933707f3Ssthen 566933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */ 567933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112 568933707f3Ssthen 569933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */ 570933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600 571933707f3Ssthen 572933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ 573933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 574933707f3Ssthen 575933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */ 576933707f3Ssthen#undef OMITTED__D__EXTENSIONS__ 577933707f3Ssthen 578933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */ 579933707f3Ssthen#undef PACKAGE_BUGREPORT 580933707f3Ssthen 581933707f3Ssthen/* Define to the full name of this package. */ 582933707f3Ssthen#undef PACKAGE_NAME 583933707f3Ssthen 584933707f3Ssthen/* Define to the full name and version of this package. */ 585933707f3Ssthen#undef PACKAGE_STRING 586933707f3Ssthen 587933707f3Ssthen/* Define to the one symbol short name of this package. */ 588933707f3Ssthen#undef PACKAGE_TARNAME 589933707f3Ssthen 590933707f3Ssthen/* Define to the home page for this package. */ 591933707f3Ssthen#undef PACKAGE_URL 592933707f3Ssthen 593933707f3Ssthen/* Define to the version of this package. */ 594933707f3Ssthen#undef PACKAGE_VERSION 595933707f3Ssthen 596933707f3Ssthen/* default pidfile location */ 597933707f3Ssthen#undef PIDFILE 598933707f3Ssthen 599933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on 600933707f3Ssthen your system. */ 601933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE 602933707f3Ssthen 603933707f3Ssthen/* Define as the return type of signal handlers (`int' or `void'). */ 604933707f3Ssthen#undef RETSIGTYPE 605933707f3Ssthen 606933707f3Ssthen/* default rootkey location */ 607933707f3Ssthen#undef ROOT_ANCHOR_FILE 608933707f3Ssthen 609933707f3Ssthen/* default rootcert location */ 610933707f3Ssthen#undef ROOT_CERT_FILE 611933707f3Ssthen 612933707f3Ssthen/* version number for resource files */ 613933707f3Ssthen#undef RSRC_PACKAGE_VERSION 614933707f3Ssthen 615933707f3Ssthen/* Directory to chdir to */ 616933707f3Ssthen#undef RUN_DIR 617933707f3Ssthen 618933707f3Ssthen/* Shared data */ 619933707f3Ssthen#undef SHARE_DIR 620933707f3Ssthen 6215d76a658Ssthen/* The size of `time_t', as computed by sizeof. */ 6225d76a658Ssthen#undef SIZEOF_TIME_T 6235d76a658Ssthen 62424893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */ 62524893edcSsthen#undef SNPRINTF_RET_BROKEN 62624893edcSsthen 627933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */ 628933707f3Ssthen#undef STDC_HEADERS 629933707f3Ssthen 630933707f3Ssthen/* use default strptime. */ 631933707f3Ssthen#undef STRPTIME_WORKS 632933707f3Ssthen 633933707f3Ssthen/* Use win32 resources and API */ 634933707f3Ssthen#undef UB_ON_WINDOWS 635933707f3Ssthen 636933707f3Ssthen/* default username */ 637933707f3Ssthen#undef UB_USERNAME 638933707f3Ssthen 639933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */ 640933707f3Ssthen#undef UNBOUND_ALLOC_LITE 641933707f3Ssthen 642933707f3Ssthen/* use malloc not regions, for debug use */ 643933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL 644933707f3Ssthen 645933707f3Ssthen/* use statistics for allocs and frees, for debug use */ 646933707f3Ssthen#undef UNBOUND_ALLOC_STATS 647933707f3Ssthen 648933707f3Ssthen/* define this to enable debug checks. */ 649933707f3Ssthen#undef UNBOUND_DEBUG 650933707f3Ssthen 6512ee382b6Ssthen/* Define to 1 to use cachedb support */ 6522ee382b6Ssthen#undef USE_CACHEDB 6532ee382b6Ssthen 65498f3ca02Sbrad/* Define to 1 to enable dnstap support */ 65598f3ca02Sbrad#undef USE_DNSTAP 65698f3ca02Sbrad 6572ee382b6Ssthen/* Define this to enable DSA support. */ 6582ee382b6Ssthen#undef USE_DSA 6592ee382b6Ssthen 660d8d14d0cSsthen/* Define this to enable ECDSA support. */ 661d8d14d0cSsthen#undef USE_ECDSA 662d8d14d0cSsthen 663d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */ 664d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND 665d8d14d0cSsthen 666933707f3Ssthen/* Define this to enable GOST support. */ 667933707f3Ssthen#undef USE_GOST 668933707f3Ssthen 669933707f3Ssthen/* Define if you want to use internal select based events */ 670933707f3Ssthen#undef USE_MINI_EVENT 671933707f3Ssthen 672*77079be7Ssthen/* Define this to enable client TCP Fast Open. */ 673*77079be7Ssthen#undef USE_MSG_FASTOPEN 674*77079be7Ssthen 675*77079be7Ssthen/* Define this to enable client TCP Fast Open. */ 676*77079be7Ssthen#undef USE_OSX_MSG_FASTOPEN 677*77079be7Ssthen 678933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */ 679933707f3Ssthen#undef USE_SHA2 680933707f3Ssthen 681933707f3Ssthen/* Enable extensions on AIX 3, Interix. */ 682933707f3Ssthen#ifndef _ALL_SOURCE 683933707f3Ssthen# undef _ALL_SOURCE 684933707f3Ssthen#endif 685933707f3Ssthen/* Enable GNU extensions on systems that have them. */ 686933707f3Ssthen#ifndef _GNU_SOURCE 687933707f3Ssthen# undef _GNU_SOURCE 688933707f3Ssthen#endif 689933707f3Ssthen/* Enable threading extensions on Solaris. */ 690933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS 691933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS 692933707f3Ssthen#endif 693933707f3Ssthen/* Enable extensions on HP NonStop. */ 694933707f3Ssthen#ifndef _TANDEM_SOURCE 695933707f3Ssthen# undef _TANDEM_SOURCE 696933707f3Ssthen#endif 697933707f3Ssthen/* Enable general extensions on Solaris. */ 698933707f3Ssthen#ifndef __EXTENSIONS__ 699933707f3Ssthen# undef __EXTENSIONS__ 700933707f3Ssthen#endif 701933707f3Ssthen 702933707f3Ssthen 703*77079be7Ssthen/* Define this to enable server TCP Fast Open. */ 704*77079be7Ssthen#undef USE_TCP_FASTOPEN 705*77079be7Ssthen 706933707f3Ssthen/* Whether the windows socket API is used */ 707933707f3Ssthen#undef USE_WINSOCK 708933707f3Ssthen 709933707f3Ssthen/* the version of the windows API enabled */ 710933707f3Ssthen#undef WINVER 711933707f3Ssthen 712933707f3Ssthen/* Define if you want Python module. */ 713933707f3Ssthen#undef WITH_PYTHONMODULE 714933707f3Ssthen 715933707f3Ssthen/* Define if you want PyUnbound. */ 716933707f3Ssthen#undef WITH_PYUNBOUND 717933707f3Ssthen 718933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 719933707f3Ssthen `char[]'. */ 720933707f3Ssthen#undef YYTEXT_POINTER 721933707f3Ssthen 722229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5. */ 723229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE 724229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1 725229e174cSsthen#endif 726229e174cSsthen 727933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */ 728933707f3Ssthen#undef _FILE_OFFSET_BITS 729933707f3Ssthen 730933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 731933707f3Ssthen#undef _LARGEFILE_SOURCE 732933707f3Ssthen 733933707f3Ssthen/* Define for large files, on AIX-style hosts. */ 734933707f3Ssthen#undef _LARGE_FILES 735933707f3Ssthen 736933707f3Ssthen/* Define to 1 if on MINIX. */ 737933707f3Ssthen#undef _MINIX 738933707f3Ssthen 7395d76a658Ssthen/* Enable for compile on Minix */ 7405d76a658Ssthen#undef _NETBSD_SOURCE 7415d76a658Ssthen 742933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with 743933707f3Ssthen this defined. */ 744933707f3Ssthen#undef _POSIX_1_SOURCE 745933707f3Ssthen 746933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */ 747933707f3Ssthen#undef _POSIX_SOURCE 748933707f3Ssthen 749933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */ 750933707f3Ssthen#undef const 751933707f3Ssthen 752933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 753933707f3Ssthen#undef gid_t 754933707f3Ssthen 755933707f3Ssthen/* in_addr_t */ 756933707f3Ssthen#undef in_addr_t 757933707f3Ssthen 758933707f3Ssthen/* in_port_t */ 759933707f3Ssthen#undef in_port_t 760933707f3Ssthen 761933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler 762933707f3Ssthen calls it, or to nothing if 'inline' is not supported under any name. */ 763933707f3Ssthen#ifndef __cplusplus 764933707f3Ssthen#undef inline 765933707f3Ssthen#endif 766933707f3Ssthen 767933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */ 768933707f3Ssthen#undef int16_t 769933707f3Ssthen 770933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 771933707f3Ssthen#undef int32_t 772933707f3Ssthen 773933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */ 774933707f3Ssthen#undef int64_t 775933707f3Ssthen 776933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */ 777933707f3Ssthen#undef int8_t 778933707f3Ssthen 779933707f3Ssthen/* Define if replacement function should be used. */ 780933707f3Ssthen#undef malloc 781933707f3Ssthen 782933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */ 783933707f3Ssthen#undef off_t 784933707f3Ssthen 785933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 786933707f3Ssthen#undef pid_t 787933707f3Ssthen 788933707f3Ssthen/* Define to 'int' if not defined */ 789933707f3Ssthen#undef rlim_t 790933707f3Ssthen 791933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 792933707f3Ssthen#undef size_t 793933707f3Ssthen 794933707f3Ssthen/* Define to 'int' if not defined */ 795933707f3Ssthen#undef socklen_t 796933707f3Ssthen 797933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */ 798933707f3Ssthen#undef ssize_t 799933707f3Ssthen 800933707f3Ssthen/* Define to 'unsigned char if not defined */ 801933707f3Ssthen#undef u_char 802933707f3Ssthen 803933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */ 804933707f3Ssthen#undef uid_t 805933707f3Ssthen 806933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */ 807933707f3Ssthen#undef uint16_t 808933707f3Ssthen 809933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */ 810933707f3Ssthen#undef uint32_t 811933707f3Ssthen 812933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */ 813933707f3Ssthen#undef uint64_t 814933707f3Ssthen 815933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */ 816933707f3Ssthen#undef uint8_t 817933707f3Ssthen 818933707f3Ssthen/* Define as `fork' if `vfork' does not work. */ 819933707f3Ssthen#undef vfork 820933707f3Ssthen 821933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) 822933707f3Ssthen#define _GNU_SOURCE 1 823933707f3Ssthen#endif 824933707f3Ssthen 825933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) 826933707f3Ssthen#define _BSD_SOURCE 1 827933707f3Ssthen#endif 828933707f3Ssthen 82932e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) 83032e31f52Ssthen#define _DEFAULT_SOURCE 1 83132e31f52Ssthen#endif 83232e31f52Ssthen 833933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) 834933707f3Ssthen#define __EXTENSIONS__ 1 835933707f3Ssthen#endif 836933707f3Ssthen 837933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) 838933707f3Ssthen#define _POSIX_C_SOURCE 200112 839933707f3Ssthen#endif 840933707f3Ssthen 841933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) 842933707f3Ssthen#define _XOPEN_SOURCE 600 843933707f3Ssthen#endif 844933707f3Ssthen 845933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) 846933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1 847933707f3Ssthen#endif 848933707f3Ssthen 849933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) 850933707f3Ssthen#define _ALL_SOURCE 1 851933707f3Ssthen#endif 852933707f3Ssthen 853933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) 854933707f3Ssthen#define _LARGEFILE_SOURCE 1 855933707f3Ssthen#endif 856933707f3Ssthen 857933707f3Ssthen 858933707f3Ssthen 859933707f3Ssthen 860933707f3Ssthen#ifndef UNBOUND_DEBUG 861933707f3Ssthen# define NDEBUG 862933707f3Ssthen#endif 863933707f3Ssthen 8645d76a658Ssthen/** Use small-ldns codebase */ 8655d76a658Ssthen#define USE_SLDNS 1 8665d76a658Ssthen#ifdef HAVE_SSL 8675d76a658Ssthen# define LDNS_BUILD_CONFIG_HAVE_SSL 1 8685d76a658Ssthen#endif 8695d76a658Ssthen 870933707f3Ssthen#include <stdio.h> 871933707f3Ssthen#include <string.h> 872933707f3Ssthen#include <unistd.h> 873933707f3Ssthen#include <assert.h> 874933707f3Ssthen 875933707f3Ssthen#if STDC_HEADERS 876933707f3Ssthen#include <stdlib.h> 877933707f3Ssthen#include <stddef.h> 878933707f3Ssthen#endif 879933707f3Ssthen 8805d76a658Ssthen#ifdef HAVE_STDARG_H 8815d76a658Ssthen#include <stdarg.h> 8825d76a658Ssthen#endif 8835d76a658Ssthen 884933707f3Ssthen#ifdef HAVE_STDINT_H 885933707f3Ssthen#include <stdint.h> 886933707f3Ssthen#endif 887933707f3Ssthen 888933707f3Ssthen#include <errno.h> 889933707f3Ssthen 890933707f3Ssthen#if HAVE_SYS_PARAM_H 891933707f3Ssthen#include <sys/param.h> 892933707f3Ssthen#endif 893933707f3Ssthen 894933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H 895933707f3Ssthen#include <sys/socket.h> 896933707f3Ssthen#endif 897933707f3Ssthen 898933707f3Ssthen#ifdef HAVE_SYS_UIO_H 899933707f3Ssthen#include <sys/uio.h> 900933707f3Ssthen#endif 901933707f3Ssthen 902933707f3Ssthen#ifdef HAVE_NETINET_IN_H 903933707f3Ssthen#include <netinet/in.h> 904933707f3Ssthen#endif 905933707f3Ssthen 90632e31f52Ssthen#ifdef HAVE_NETINET_TCP_H 90732e31f52Ssthen#include <netinet/tcp.h> 90832e31f52Ssthen#endif 90932e31f52Ssthen 910933707f3Ssthen#ifdef HAVE_ARPA_INET_H 911933707f3Ssthen#include <arpa/inet.h> 912933707f3Ssthen#endif 913933707f3Ssthen 914933707f3Ssthen#ifdef HAVE_WINSOCK2_H 915933707f3Ssthen#include <winsock2.h> 916933707f3Ssthen#endif 917933707f3Ssthen 918933707f3Ssthen#ifdef HAVE_WS2TCPIP_H 919933707f3Ssthen#include <ws2tcpip.h> 920933707f3Ssthen#endif 921933707f3Ssthen 9225d76a658Ssthen#ifndef USE_WINSOCK 9235d76a658Ssthen#define ARG_LL "%ll" 9245d76a658Ssthen#else 9255d76a658Ssthen#define ARG_LL "%I64" 9265d76a658Ssthen#endif 9275d76a658Ssthen 928b2cdf21fSsthen#ifndef AF_LOCAL 929b2cdf21fSsthen#define AF_LOCAL AF_UNIX 930b2cdf21fSsthen#endif 931b2cdf21fSsthen 932933707f3Ssthen 933933707f3Ssthen 934933707f3Ssthen#ifdef HAVE_ATTR_FORMAT 935933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) \ 936933707f3Ssthen __attribute__ ((format (archetype, string_index, first_to_check))) 937933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */ 938933707f3Ssthen# define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 939933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */ 940933707f3Ssthen 941933707f3Ssthen 942933707f3Ssthen#if defined(DOXYGEN) 943933707f3Ssthen# define ATTR_UNUSED(x) x 944933707f3Ssthen#elif defined(__cplusplus) 945933707f3Ssthen# define ATTR_UNUSED(x) 946933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED) 947933707f3Ssthen# define ATTR_UNUSED(x) x __attribute__((unused)) 948933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */ 949933707f3Ssthen# define ATTR_UNUSED(x) x 950933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */ 951933707f3Ssthen 952933707f3Ssthen 953933707f3Ssthen#ifndef HAVE_FSEEKO 954933707f3Ssthen#define fseeko fseek 955933707f3Ssthen#define ftello ftell 956933707f3Ssthen#endif /* HAVE_FSEEKO */ 957933707f3Ssthen 958933707f3Ssthen 959933707f3Ssthen#ifndef MAXHOSTNAMELEN 960933707f3Ssthen#define MAXHOSTNAMELEN 256 961933707f3Ssthen#endif 962933707f3Ssthen 96324893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) 964933707f3Ssthen#define snprintf snprintf_unbound 965933707f3Ssthen#define vsnprintf vsnprintf_unbound 966933707f3Ssthen#include <stdarg.h> 967933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...); 968933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 96924893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */ 970933707f3Ssthen 971933707f3Ssthen#ifndef HAVE_INET_PTON 972933707f3Ssthen#define inet_pton inet_pton_unbound 973933707f3Ssthenint inet_pton(int af, const char* src, void* dst); 974933707f3Ssthen#endif /* HAVE_INET_PTON */ 975933707f3Ssthen 976933707f3Ssthen 977933707f3Ssthen#ifndef HAVE_INET_NTOP 978933707f3Ssthen#define inet_ntop inet_ntop_unbound 979933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 980933707f3Ssthen#endif 981933707f3Ssthen 982933707f3Ssthen 983933707f3Ssthen#ifndef HAVE_INET_ATON 984933707f3Ssthen#define inet_aton inet_aton_unbound 985933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr); 986933707f3Ssthen#endif 987933707f3Ssthen 988933707f3Ssthen 989933707f3Ssthen#ifndef HAVE_MEMMOVE 990933707f3Ssthen#define memmove memmove_unbound 991933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n); 992933707f3Ssthen#endif 993933707f3Ssthen 994933707f3Ssthen 9955d76a658Ssthen#ifndef HAVE_STRLCAT 9965d76a658Ssthen#define strlcat strlcat_unbound 9975d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz); 9985d76a658Ssthen#endif 9995d76a658Ssthen 10005d76a658Ssthen 1001933707f3Ssthen#ifndef HAVE_STRLCPY 1002933707f3Ssthen#define strlcpy strlcpy_unbound 1003933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz); 1004933707f3Ssthen#endif 1005933707f3Ssthen 1006933707f3Ssthen 1007933707f3Ssthen#ifndef HAVE_GMTIME_R 1008933707f3Ssthen#define gmtime_r gmtime_r_unbound 1009933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result); 1010933707f3Ssthen#endif 1011933707f3Ssthen 1012933707f3Ssthen 1013fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY 1014fdfb4ba6Ssthen#define reallocarray reallocarrayunbound 1015fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size); 1016fdfb4ba6Ssthen#endif 1017fdfb4ba6Ssthen 1018fdfb4ba6Ssthen 1019229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H) 1020933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */ 1021933707f3Ssthen#endif /* HAVE_SLEEP */ 1022933707f3Ssthen 1023933707f3Ssthen 1024933707f3Ssthen#ifndef HAVE_USLEEP 1025933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */ 1026933707f3Ssthen#endif /* HAVE_USLEEP */ 1027933707f3Ssthen 1028933707f3Ssthen 1029933707f3Ssthen#ifndef HAVE_RANDOM 1030933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */ 1031933707f3Ssthen#endif /* HAVE_RANDOM */ 1032933707f3Ssthen 1033933707f3Ssthen 1034933707f3Ssthen#ifndef HAVE_SRANDOM 1035933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */ 1036933707f3Ssthen#endif /* HAVE_SRANDOM */ 1037933707f3Ssthen 1038933707f3Ssthen 1039933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 1040933707f3Ssthen#ifdef HAVE_WINSOCK2_H 1041933707f3Ssthen#define FD_SET_T (u_int) 1042933707f3Ssthen#else 1043933707f3Ssthen#define FD_SET_T 1044933707f3Ssthen#endif 1045933707f3Ssthen 1046933707f3Ssthen 1047933707f3Ssthen#ifndef IPV6_MIN_MTU 1048933707f3Ssthen#define IPV6_MIN_MTU 1280 1049933707f3Ssthen#endif /* IPV6_MIN_MTU */ 1050933707f3Ssthen 1051933707f3Ssthen 1052933707f3Ssthen#ifdef MEMCMP_IS_BROKEN 1053d8d14d0cSsthen#include "compat/memcmp.h" 1054933707f3Ssthen#define memcmp memcmp_unbound 1055933707f3Ssthenint memcmp(const void *x, const void *y, size_t n); 1056933707f3Ssthen#endif 1057933707f3Ssthen 1058933707f3Ssthen 1059933707f3Ssthen 1060933707f3Ssthen#ifndef HAVE_CTIME_R 1061933707f3Ssthen#define ctime_r unbound_ctime_r 1062933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf); 1063933707f3Ssthen#endif 1064933707f3Ssthen 10652ee382b6Ssthen#ifndef HAVE_STRSEP 10662ee382b6Ssthen#define strsep unbound_strsep 10672ee382b6Ssthenchar *strsep(char **stringp, const char *delim); 10682ee382b6Ssthen#endif 10692ee382b6Ssthen 107024893edcSsthen#ifndef HAVE_ISBLANK 107124893edcSsthen#define isblank unbound_isblank 107224893edcSsthenint isblank(int c); 107324893edcSsthen#endif 107424893edcSsthen 1075*77079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP 1076*77079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size); 1077*77079be7Ssthen#endif 1078*77079be7Ssthen 1079*77079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON 1080*77079be7Ssthenint inet_pton(int af, const char* src, void* dst); 1081*77079be7Ssthen#endif 1082*77079be7Ssthen 1083933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS) 1084933707f3Ssthen#define strptime unbound_strptime 1085933707f3Ssthenstruct tm; 1086933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm); 1087933707f3Ssthen#endif 1088933707f3Ssthen 108998f3ca02Sbrad#ifdef HAVE_LIBRESSL 109098f3ca02Sbrad# if !HAVE_DECL_STRLCPY 109198f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz); 109298f3ca02Sbrad# endif 109398f3ca02Sbrad# if !HAVE_DECL_STRLCAT 109498f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz); 109598f3ca02Sbrad# endif 109698f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM) 109798f3ca02Sbraduint32_t arc4random(void); 109898f3ca02Sbrad# endif 109998f3ca02Sbrad# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM) 110098f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 110198f3ca02Sbrad# endif 1102fdfb4ba6Ssthen# if !HAVE_DECL_REALLOCARRAY 1103fdfb4ba6Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size); 1104fdfb4ba6Ssthen# endif 110598f3ca02Sbrad#endif /* HAVE_LIBRESSL */ 110698f3ca02Sbrad#ifndef HAVE_ARC4RANDOM 110798f3ca02Sbradvoid explicit_bzero(void* buf, size_t len); 110898f3ca02Sbradint getentropy(void* buf, size_t len); 110998f3ca02Sbraduint32_t arc4random(void); 111098f3ca02Sbradvoid arc4random_buf(void* buf, size_t n); 111198f3ca02Sbradvoid _ARC4_LOCK(void); 111298f3ca02Sbradvoid _ARC4_UNLOCK(void); 111398f3ca02Sbrad#endif 111498f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM 111598f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound); 111698f3ca02Sbrad#endif 111798f3ca02Sbrad#ifdef COMPAT_SHA512 111898f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH 111998f3ca02Sbrad#define SHA512_BLOCK_LENGTH 128 112098f3ca02Sbrad#define SHA512_DIGEST_LENGTH 64 112198f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) 112298f3ca02Sbradtypedef struct _SHA512_CTX { 112398f3ca02Sbrad uint64_t state[8]; 112498f3ca02Sbrad uint64_t bitcount[2]; 112598f3ca02Sbrad uint8_t buffer[SHA512_BLOCK_LENGTH]; 112698f3ca02Sbrad} SHA512_CTX; 112798f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */ 112898f3ca02Sbradvoid SHA512_Init(SHA512_CTX*); 112998f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t); 113098f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); 113198f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); 113298f3ca02Sbrad#endif /* COMPAT_SHA512 */ 113398f3ca02Sbrad 113498f3ca02Sbrad 113598f3ca02Sbrad 1136933707f3Ssthen#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)) 1137933707f3Ssthen /* using version of libevent that is not threadsafe. */ 1138933707f3Ssthen# define LIBEVENT_SIGNAL_PROBLEM 1 1139933707f3Ssthen#endif 1140933707f3Ssthen 1141933707f3Ssthen#ifndef CHECKED_INET6 1142933707f3Ssthen# define CHECKED_INET6 1143933707f3Ssthen# ifdef AF_INET6 1144933707f3Ssthen# define INET6 1145933707f3Ssthen# else 1146933707f3Ssthen# define AF_INET6 28 1147933707f3Ssthen# endif 1148933707f3Ssthen#endif /* CHECKED_INET6 */ 1149933707f3Ssthen 1150933707f3Ssthen#ifndef HAVE_GETADDRINFO 1151933707f3Ssthenstruct sockaddr_storage; 1152933707f3Ssthen#include "compat/fake-rfc2553.h" 1153933707f3Ssthen#endif 1154933707f3Ssthen 1155933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS 1156933707f3Ssthen# define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__) 1157933707f3Ssthen# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__) 1158933707f3Ssthen# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__) 1159933707f3Ssthen# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__) 1160933707f3Ssthenvoid *unbound_stat_malloc(size_t size); 1161933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size); 1162933707f3Ssthenvoid unbound_stat_free(void *ptr); 1163933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size); 1164933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line, 1165933707f3Ssthen const char* func); 1166933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file, 1167933707f3Ssthen int line, const char* func); 1168933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line, 1169933707f3Ssthen const char* func); 1170933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, 1171933707f3Ssthen int line, const char* func); 1172933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE) 1173933707f3Ssthen# include "util/alloc.h" 1174933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */ 1175933707f3Ssthen 1176933707f3Ssthen/** default port for DNS traffic. */ 1177933707f3Ssthen#define UNBOUND_DNS_PORT 53 1178933707f3Ssthen/** default port for unbound control traffic, registered port with IANA, 1179933707f3Ssthen ub-dns-control 8953/tcp unbound dns nameserver control */ 1180933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953 1181933707f3Ssthen/** the version of unbound-control that this software implements */ 1182933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1 1183933707f3Ssthen 1184933707f3Ssthen 1185