1/* config.h.in. Generated from configure.ac by autoheader. */ 2 3/* apply the noreturn attribute to a function that exits the program */ 4#undef ATTR_NORETURN 5 6/* apply the weak attribute to a symbol */ 7#undef ATTR_WEAK 8 9/* Directory to chroot to */ 10#undef CHROOT_DIR 11 12/* Define this to enable client subnet option. */ 13#undef CLIENT_SUBNET 14 15/* Do sha512 definitions in config.h */ 16#undef COMPAT_SHA512 17 18/* Command line arguments used with configure */ 19#undef CONFCMDLINE 20 21/* Pathname to the Unbound configuration file */ 22#undef CONFIGFILE 23 24/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 25 */ 26#undef DARWIN_BROKEN_SETREUID 27 28/* Whether daemon is deprecated */ 29#undef DEPRECATED_DAEMON 30 31/* default dnstap socket path */ 32#undef DNSTAP_SOCKET_PATH 33 34/* Define if you want to use debug lock checking (slow). */ 35#undef ENABLE_LOCK_CHECKS 36 37/* Define this if you enabled-allsymbols from libunbound to link binaries to 38 it for smaller install size, but the libunbound export table is polluted by 39 internal symbols */ 40#undef EXPORT_ALL_SYMBOLS 41 42/* Define to 1 if you have the `accept4' function. */ 43#undef HAVE_ACCEPT4 44 45/* Define to 1 if you have the `arc4random' function. */ 46#undef HAVE_ARC4RANDOM 47 48/* Define to 1 if you have the `arc4random_uniform' function. */ 49#undef HAVE_ARC4RANDOM_UNIFORM 50 51/* Define to 1 if you have the <arpa/inet.h> header file. */ 52#undef HAVE_ARPA_INET_H 53 54/* Whether the C compiler accepts the "format" attribute */ 55#undef HAVE_ATTR_FORMAT 56 57/* Whether the C compiler accepts the "noreturn" attribute */ 58#undef HAVE_ATTR_NORETURN 59 60/* Whether the C compiler accepts the "unused" attribute */ 61#undef HAVE_ATTR_UNUSED 62 63/* Whether the C compiler accepts the "weak" attribute */ 64#undef HAVE_ATTR_WEAK 65 66/* Define to 1 if you have the `chown' function. */ 67#undef HAVE_CHOWN 68 69/* Define to 1 if you have the `chroot' function. */ 70#undef HAVE_CHROOT 71 72/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ 73#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 74 75/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */ 76#undef HAVE_CRYPTO_THREADID_SET_CALLBACK 77 78/* Define to 1 if you have the `ctime_r' function. */ 79#undef HAVE_CTIME_R 80 81/* Define to 1 if you have the `daemon' function. */ 82#undef HAVE_DAEMON 83 84/* Define to 1 if you have the declaration of `arc4random', and to 0 if you 85 don't. */ 86#undef HAVE_DECL_ARC4RANDOM 87 88/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 89 if you don't. */ 90#undef HAVE_DECL_ARC4RANDOM_UNIFORM 91 92/* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if 93 you don't. */ 94#undef HAVE_DECL_EVSIGNAL_ASSIGN 95 96/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 97 don't. */ 98#undef HAVE_DECL_INET_NTOP 99 100/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you 101 don't. */ 102#undef HAVE_DECL_INET_PTON 103 104/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you 105 don't. */ 106#undef HAVE_DECL_NID_ED25519 107 108/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you 109 don't. */ 110#undef HAVE_DECL_NID_ED448 111 112/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 113 don't. */ 114#undef HAVE_DECL_NID_SECP384R1 115 116/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 117 if you don't. */ 118#undef HAVE_DECL_NID_X9_62_PRIME256V1 119 120/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 121 don't. */ 122#undef HAVE_DECL_REALLOCARRAY 123 124/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you 125 don't. */ 126#undef HAVE_DECL_REDISCONNECT 127 128/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 129 if you don't. */ 130#undef HAVE_DECL_SK_SSL_COMP_POP_FREE 131 132/* Define to 1 if you have the declaration of 133 `SSL_COMP_get_compression_methods', and to 0 if you don't. */ 134#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 135 136/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 137 0 if you don't. */ 138#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 139 140/* Define to 1 if you have the declaration of `strlcat', and to 0 if you 141 don't. */ 142#undef HAVE_DECL_STRLCAT 143 144/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you 145 don't. */ 146#undef HAVE_DECL_STRLCPY 147 148/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if 149 you don't. */ 150#undef HAVE_DECL_XML_STOPPARSER 151 152/* Define to 1 if you have the <dlfcn.h> header file. */ 153#undef HAVE_DLFCN_H 154 155/* Define to 1 if you have the `DSA_SIG_set0' function. */ 156#undef HAVE_DSA_SIG_SET0 157 158/* Define to 1 if you have the <endian.h> header file. */ 159#undef HAVE_ENDIAN_H 160 161/* Define to 1 if you have the `endprotoent' function. */ 162#undef HAVE_ENDPROTOENT 163 164/* Define to 1 if you have the `endpwent' function. */ 165#undef HAVE_ENDPWENT 166 167/* Define to 1 if you have the `endservent' function. */ 168#undef HAVE_ENDSERVENT 169 170/* Define to 1 if you have the `ERR_free_strings' function. */ 171#undef HAVE_ERR_FREE_STRINGS 172 173/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 174#undef HAVE_ERR_LOAD_CRYPTO_STRINGS 175 176/* Define to 1 if you have the `event_assign' function. */ 177#undef HAVE_EVENT_ASSIGN 178 179/* Define to 1 if you have the `event_base_free' function. */ 180#undef HAVE_EVENT_BASE_FREE 181 182/* Define to 1 if you have the `event_base_get_method' function. */ 183#undef HAVE_EVENT_BASE_GET_METHOD 184 185/* Define to 1 if you have the `event_base_new' function. */ 186#undef HAVE_EVENT_BASE_NEW 187 188/* Define to 1 if you have the `event_base_once' function. */ 189#undef HAVE_EVENT_BASE_ONCE 190 191/* Define to 1 if you have the <event.h> header file. */ 192#undef HAVE_EVENT_H 193 194/* Define to 1 if you have the `EVP_aes_256_cbc' function. */ 195#undef HAVE_EVP_AES_256_CBC 196 197/* Define to 1 if you have the `EVP_cleanup' function. */ 198#undef HAVE_EVP_CLEANUP 199 200/* Define to 1 if you have the `EVP_DigestVerify' function. */ 201#undef HAVE_EVP_DIGESTVERIFY 202 203/* Define to 1 if you have the `EVP_dss1' function. */ 204#undef HAVE_EVP_DSS1 205 206/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */ 207#undef HAVE_EVP_ENCRYPTINIT_EX 208 209/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 210#undef HAVE_EVP_MD_CTX_NEW 211 212/* Define to 1 if you have the `EVP_sha1' function. */ 213#undef HAVE_EVP_SHA1 214 215/* Define to 1 if you have the `EVP_sha256' function. */ 216#undef HAVE_EVP_SHA256 217 218/* Define to 1 if you have the `EVP_sha512' function. */ 219#undef HAVE_EVP_SHA512 220 221/* Define to 1 if you have the `ev_default_loop' function. */ 222#undef HAVE_EV_DEFAULT_LOOP 223 224/* Define to 1 if you have the `ev_loop' function. */ 225#undef HAVE_EV_LOOP 226 227/* Define to 1 if you have the <expat.h> header file. */ 228#undef HAVE_EXPAT_H 229 230/* Define to 1 if you have the `explicit_bzero' function. */ 231#undef HAVE_EXPLICIT_BZERO 232 233/* Define to 1 if you have the `fcntl' function. */ 234#undef HAVE_FCNTL 235 236/* Define to 1 if you have the `FIPS_mode' function. */ 237#undef HAVE_FIPS_MODE 238 239/* Define to 1 if you have the `fork' function. */ 240#undef HAVE_FORK 241 242/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 243#undef HAVE_FSEEKO 244 245/* Define to 1 if you have the `fsync' function. */ 246#undef HAVE_FSYNC 247 248/* Whether getaddrinfo is available */ 249#undef HAVE_GETADDRINFO 250 251/* Define to 1 if you have the `getauxval' function. */ 252#undef HAVE_GETAUXVAL 253 254/* Define to 1 if you have the `getentropy' function. */ 255#undef HAVE_GETENTROPY 256 257/* Define to 1 if you have the <getopt.h> header file. */ 258#undef HAVE_GETOPT_H 259 260/* Define to 1 if you have the `getpwnam' function. */ 261#undef HAVE_GETPWNAM 262 263/* Define to 1 if you have the `getrlimit' function. */ 264#undef HAVE_GETRLIMIT 265 266/* Define to 1 if you have the `glob' function. */ 267#undef HAVE_GLOB 268 269/* Define to 1 if you have the <glob.h> header file. */ 270#undef HAVE_GLOB_H 271 272/* Define to 1 if you have the `gmtime_r' function. */ 273#undef HAVE_GMTIME_R 274 275/* Define to 1 if you have the <grp.h> header file. */ 276#undef HAVE_GRP_H 277 278/* Define to 1 if you have the <hiredis/hiredis.h> header file. */ 279#undef HAVE_HIREDIS_HIREDIS_H 280 281/* Define to 1 if you have the `HMAC_Init_ex' function. */ 282#undef HAVE_HMAC_INIT_EX 283 284/* If you have HMAC_Update */ 285#undef HAVE_HMAC_UPDATE 286 287/* Define to 1 if you have the `inet_aton' function. */ 288#undef HAVE_INET_ATON 289 290/* Define to 1 if you have the `inet_ntop' function. */ 291#undef HAVE_INET_NTOP 292 293/* Define to 1 if you have the `inet_pton' function. */ 294#undef HAVE_INET_PTON 295 296/* Define to 1 if you have the `initgroups' function. */ 297#undef HAVE_INITGROUPS 298 299/* Define to 1 if you have the <inttypes.h> header file. */ 300#undef HAVE_INTTYPES_H 301 302/* if the function 'ioctlsocket' is available */ 303#undef HAVE_IOCTLSOCKET 304 305/* Define to 1 if you have the <iphlpapi.h> header file. */ 306#undef HAVE_IPHLPAPI_H 307 308/* Define to 1 if you have the `isblank' function. */ 309#undef HAVE_ISBLANK 310 311/* Define to 1 if you have the `kill' function. */ 312#undef HAVE_KILL 313 314/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */ 315#undef HAVE_LIBKERN_OSBYTEORDER_H 316 317/* Define if we have LibreSSL */ 318#undef HAVE_LIBRESSL 319 320/* Define to 1 if you have the `localtime_r' function. */ 321#undef HAVE_LOCALTIME_R 322 323/* Define to 1 if you have the <login_cap.h> header file. */ 324#undef HAVE_LOGIN_CAP_H 325 326/* If have GNU libc compatible malloc */ 327#undef HAVE_MALLOC 328 329/* Define to 1 if you have the `memmove' function. */ 330#undef HAVE_MEMMOVE 331 332/* Define to 1 if you have the <memory.h> header file. */ 333#undef HAVE_MEMORY_H 334 335/* Define to 1 if you have the <netdb.h> header file. */ 336#undef HAVE_NETDB_H 337 338/* Define to 1 if you have the <netinet/in.h> header file. */ 339#undef HAVE_NETINET_IN_H 340 341/* Define to 1 if you have the <netinet/tcp.h> header file. */ 342#undef HAVE_NETINET_TCP_H 343 344/* Use libnettle for crypto */ 345#undef HAVE_NETTLE 346 347/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */ 348#undef HAVE_NETTLE_DSA_COMPAT_H 349 350/* Define to 1 if you have the <nettle/eddsa.h> header file. */ 351#undef HAVE_NETTLE_EDDSA_H 352 353/* Use libnss for crypto */ 354#undef HAVE_NSS 355 356/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ 357#undef HAVE_OPENSSL_ADD_ALL_DIGESTS 358 359/* Define to 1 if you have the <openssl/bn.h> header file. */ 360#undef HAVE_OPENSSL_BN_H 361 362/* Define to 1 if you have the `OPENSSL_config' function. */ 363#undef HAVE_OPENSSL_CONFIG 364 365/* Define to 1 if you have the <openssl/conf.h> header file. */ 366#undef HAVE_OPENSSL_CONF_H 367 368/* Define to 1 if you have the <openssl/dh.h> header file. */ 369#undef HAVE_OPENSSL_DH_H 370 371/* Define to 1 if you have the <openssl/dsa.h> header file. */ 372#undef HAVE_OPENSSL_DSA_H 373 374/* Define to 1 if you have the <openssl/engine.h> header file. */ 375#undef HAVE_OPENSSL_ENGINE_H 376 377/* Define to 1 if you have the <openssl/err.h> header file. */ 378#undef HAVE_OPENSSL_ERR_H 379 380/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 381#undef HAVE_OPENSSL_INIT_CRYPTO 382 383/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 384#undef HAVE_OPENSSL_INIT_SSL 385 386/* Define to 1 if you have the <openssl/rand.h> header file. */ 387#undef HAVE_OPENSSL_RAND_H 388 389/* Define to 1 if you have the <openssl/rsa.h> header file. */ 390#undef HAVE_OPENSSL_RSA_H 391 392/* Define to 1 if you have the <openssl/ssl.h> header file. */ 393#undef HAVE_OPENSSL_SSL_H 394 395/* Define if you have POSIX threads libraries and header files. */ 396#undef HAVE_PTHREAD 397 398/* Have PTHREAD_PRIO_INHERIT. */ 399#undef HAVE_PTHREAD_PRIO_INHERIT 400 401/* Define to 1 if the system has the type `pthread_rwlock_t'. */ 402#undef HAVE_PTHREAD_RWLOCK_T 403 404/* Define to 1 if the system has the type `pthread_spinlock_t'. */ 405#undef HAVE_PTHREAD_SPINLOCK_T 406 407/* Define to 1 if you have the <pwd.h> header file. */ 408#undef HAVE_PWD_H 409 410/* Define if you have Python libraries and header files. */ 411#undef HAVE_PYTHON 412 413/* Define to 1 if you have the `random' function. */ 414#undef HAVE_RANDOM 415 416/* Define to 1 if you have the `RAND_cleanup' function. */ 417#undef HAVE_RAND_CLEANUP 418 419/* If we have reallocarray(3) */ 420#undef HAVE_REALLOCARRAY 421 422/* Define to 1 if you have the `recvmsg' function. */ 423#undef HAVE_RECVMSG 424 425/* Define to 1 if you have the `sendmsg' function. */ 426#undef HAVE_SENDMSG 427 428/* Define to 1 if you have the `setregid' function. */ 429#undef HAVE_SETREGID 430 431/* Define to 1 if you have the `setresgid' function. */ 432#undef HAVE_SETRESGID 433 434/* Define to 1 if you have the `setresuid' function. */ 435#undef HAVE_SETRESUID 436 437/* Define to 1 if you have the `setreuid' function. */ 438#undef HAVE_SETREUID 439 440/* Define to 1 if you have the `setrlimit' function. */ 441#undef HAVE_SETRLIMIT 442 443/* Define to 1 if you have the `setsid' function. */ 444#undef HAVE_SETSID 445 446/* Define to 1 if you have the `setusercontext' function. */ 447#undef HAVE_SETUSERCONTEXT 448 449/* Define to 1 if you have the `SHA512_Update' function. */ 450#undef HAVE_SHA512_UPDATE 451 452/* Define to 1 if you have the `shmget' function. */ 453#undef HAVE_SHMGET 454 455/* Define to 1 if you have the `sigprocmask' function. */ 456#undef HAVE_SIGPROCMASK 457 458/* Define to 1 if you have the `sleep' function. */ 459#undef HAVE_SLEEP 460 461/* Define to 1 if you have the `snprintf' function. */ 462#undef HAVE_SNPRINTF 463 464/* Define to 1 if you have the `socketpair' function. */ 465#undef HAVE_SOCKETPAIR 466 467/* Using Solaris threads */ 468#undef HAVE_SOLARIS_THREADS 469 470/* Define to 1 if you have the `srandom' function. */ 471#undef HAVE_SRANDOM 472 473/* Define if you have the SSL libraries installed. */ 474#undef HAVE_SSL 475 476/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */ 477#undef HAVE_SSL_CTX_SET_CIPHERSUITES 478 479/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 480#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL 481 482/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_cb' function. */ 483#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 484 485/* Define to 1 if you have the `SSL_get0_peername' function. */ 486#undef HAVE_SSL_GET0_PEERNAME 487 488/* Define to 1 if you have the `SSL_set1_host' function. */ 489#undef HAVE_SSL_SET1_HOST 490 491/* Define to 1 if you have the <stdarg.h> header file. */ 492#undef HAVE_STDARG_H 493 494/* Define to 1 if you have the <stdbool.h> header file. */ 495#undef HAVE_STDBOOL_H 496 497/* Define to 1 if you have the <stdint.h> header file. */ 498#undef HAVE_STDINT_H 499 500/* Define to 1 if you have the <stdlib.h> header file. */ 501#undef HAVE_STDLIB_H 502 503/* Define to 1 if you have the `strftime' function. */ 504#undef HAVE_STRFTIME 505 506/* Define to 1 if you have the <strings.h> header file. */ 507#undef HAVE_STRINGS_H 508 509/* Define to 1 if you have the <string.h> header file. */ 510#undef HAVE_STRING_H 511 512/* Define to 1 if you have the `strlcat' function. */ 513#undef HAVE_STRLCAT 514 515/* Define to 1 if you have the `strlcpy' function. */ 516#undef HAVE_STRLCPY 517 518/* Define to 1 if you have the `strptime' function. */ 519#undef HAVE_STRPTIME 520 521/* Define to 1 if you have the `strsep' function. */ 522#undef HAVE_STRSEP 523 524/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ 525#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 526 527/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 528#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 529 530/* Define if you have Swig libraries and header files. */ 531#undef HAVE_SWIG 532 533/* Define to 1 if you have the <syslog.h> header file. */ 534#undef HAVE_SYSLOG_H 535 536/* Define to 1 if systemd should be used */ 537#undef HAVE_SYSTEMD 538 539/* Define to 1 if you have the <sys/endian.h> header file. */ 540#undef HAVE_SYS_ENDIAN_H 541 542/* Define to 1 if you have the <sys/ipc.h> header file. */ 543#undef HAVE_SYS_IPC_H 544 545/* Define to 1 if you have the <sys/param.h> header file. */ 546#undef HAVE_SYS_PARAM_H 547 548/* Define to 1 if you have the <sys/resource.h> header file. */ 549#undef HAVE_SYS_RESOURCE_H 550 551/* Define to 1 if you have the <sys/sha2.h> header file. */ 552#undef HAVE_SYS_SHA2_H 553 554/* Define to 1 if you have the <sys/shm.h> header file. */ 555#undef HAVE_SYS_SHM_H 556 557/* Define to 1 if you have the <sys/socket.h> header file. */ 558#undef HAVE_SYS_SOCKET_H 559 560/* Define to 1 if you have the <sys/stat.h> header file. */ 561#undef HAVE_SYS_STAT_H 562 563/* Define to 1 if you have the <sys/sysctl.h> header file. */ 564#undef HAVE_SYS_SYSCTL_H 565 566/* Define to 1 if you have the <sys/types.h> header file. */ 567#undef HAVE_SYS_TYPES_H 568 569/* Define to 1 if you have the <sys/uio.h> header file. */ 570#undef HAVE_SYS_UIO_H 571 572/* Define to 1 if you have the <sys/un.h> header file. */ 573#undef HAVE_SYS_UN_H 574 575/* Define to 1 if you have the <sys/wait.h> header file. */ 576#undef HAVE_SYS_WAIT_H 577 578/* Define to 1 if you have the <time.h> header file. */ 579#undef HAVE_TIME_H 580 581/* Define to 1 if you have the `tzset' function. */ 582#undef HAVE_TZSET 583 584/* Define to 1 if you have the <unistd.h> header file. */ 585#undef HAVE_UNISTD_H 586 587/* Define to 1 if you have the `usleep' function. */ 588#undef HAVE_USLEEP 589 590/* Define to 1 if you have the `vfork' function. */ 591#undef HAVE_VFORK 592 593/* Define to 1 if you have the <vfork.h> header file. */ 594#undef HAVE_VFORK_H 595 596/* Define to 1 if you have the <windows.h> header file. */ 597#undef HAVE_WINDOWS_H 598 599/* Using Windows threads */ 600#undef HAVE_WINDOWS_THREADS 601 602/* Define to 1 if you have the <winsock2.h> header file. */ 603#undef HAVE_WINSOCK2_H 604 605/* Define to 1 if `fork' works. */ 606#undef HAVE_WORKING_FORK 607 608/* Define to 1 if `vfork' works. */ 609#undef HAVE_WORKING_VFORK 610 611/* Define to 1 if you have the `writev' function. */ 612#undef HAVE_WRITEV 613 614/* Define to 1 if you have the <ws2tcpip.h> header file. */ 615#undef HAVE_WS2TCPIP_H 616 617/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */ 618#undef HAVE_X509_VERIFY_PARAM_SET1_HOST 619 620/* Define to 1 if you have the `_beginthreadex' function. */ 621#undef HAVE__BEGINTHREADEX 622 623/* if lex has yylex_destroy */ 624#undef LEX_HAS_YYLEX_DESTROY 625 626/* Define to the sub-directory where libtool stores uninstalled libraries. */ 627#undef LT_OBJDIR 628 629/* Define to the maximum message length to pass to syslog. */ 630#undef MAXSYSLOGMSGLEN 631 632/* Define if memcmp() does not compare unsigned bytes */ 633#undef MEMCMP_IS_BROKEN 634 635/* Define if mkdir has one argument. */ 636#undef MKDIR_HAS_ONE_ARG 637 638/* Define if the network stack does not fully support nonblocking io (causes 639 lower performance). */ 640#undef NONBLOCKING_IS_BROKEN 641 642/* Put -D_ALL_SOURCE define in config.h */ 643#undef OMITTED__D_ALL_SOURCE 644 645/* Put -D_BSD_SOURCE define in config.h */ 646#undef OMITTED__D_BSD_SOURCE 647 648/* Put -D_DEFAULT_SOURCE define in config.h */ 649#undef OMITTED__D_DEFAULT_SOURCE 650 651/* Put -D_GNU_SOURCE define in config.h */ 652#undef OMITTED__D_GNU_SOURCE 653 654/* Put -D_LARGEFILE_SOURCE=1 define in config.h */ 655#undef OMITTED__D_LARGEFILE_SOURCE_1 656 657/* Put -D_POSIX_C_SOURCE=200112 define in config.h */ 658#undef OMITTED__D_POSIX_C_SOURCE_200112 659 660/* Put -D_XOPEN_SOURCE=600 define in config.h */ 661#undef OMITTED__D_XOPEN_SOURCE_600 662 663/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ 664#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 665 666/* Put -D__EXTENSIONS__ define in config.h */ 667#undef OMITTED__D__EXTENSIONS__ 668 669/* Define to the address where bug reports for this package should be sent. */ 670#undef PACKAGE_BUGREPORT 671 672/* Define to the full name of this package. */ 673#undef PACKAGE_NAME 674 675/* Define to the full name and version of this package. */ 676#undef PACKAGE_STRING 677 678/* Define to the one symbol short name of this package. */ 679#undef PACKAGE_TARNAME 680 681/* Define to the home page for this package. */ 682#undef PACKAGE_URL 683 684/* Define to the version of this package. */ 685#undef PACKAGE_VERSION 686 687/* default pidfile location */ 688#undef PIDFILE 689 690/* Define to necessary symbol if this constant uses a non-standard name on 691 your system. */ 692#undef PTHREAD_CREATE_JOINABLE 693 694/* Define as the return type of signal handlers (`int' or `void'). */ 695#undef RETSIGTYPE 696 697/* if REUSEPORT is enabled by default */ 698#undef REUSEPORT_DEFAULT 699 700/* default rootkey location */ 701#undef ROOT_ANCHOR_FILE 702 703/* default rootcert location */ 704#undef ROOT_CERT_FILE 705 706/* version number for resource files */ 707#undef RSRC_PACKAGE_VERSION 708 709/* Directory to chdir to */ 710#undef RUN_DIR 711 712/* Shared data */ 713#undef SHARE_DIR 714 715/* The size of `time_t', as computed by sizeof. */ 716#undef SIZEOF_TIME_T 717 718/* define if (v)snprintf does not return length needed, (but length used) */ 719#undef SNPRINTF_RET_BROKEN 720 721/* Define to 1 if libsodium supports sodium_set_misuse_handler */ 722#undef SODIUM_MISUSE_HANDLER 723 724/* Define to 1 if you have the ANSI C header files. */ 725#undef STDC_HEADERS 726 727/* use default strptime. */ 728#undef STRPTIME_WORKS 729 730/* Use win32 resources and API */ 731#undef UB_ON_WINDOWS 732 733/* default username */ 734#undef UB_USERNAME 735 736/* use to enable lightweight alloc assertions, for debug use */ 737#undef UNBOUND_ALLOC_LITE 738 739/* use malloc not regions, for debug use */ 740#undef UNBOUND_ALLOC_NONREGIONAL 741 742/* use statistics for allocs and frees, for debug use */ 743#undef UNBOUND_ALLOC_STATS 744 745/* define this to enable debug checks. */ 746#undef UNBOUND_DEBUG 747 748/* Define to 1 to use cachedb support */ 749#undef USE_CACHEDB 750 751/* Define to 1 to enable dnscrypt support */ 752#undef USE_DNSCRYPT 753 754/* Define to 1 to enable dnscrypt with xchacha20 support */ 755#undef USE_DNSCRYPT_XCHACHA20 756 757/* Define to 1 to enable dnstap support */ 758#undef USE_DNSTAP 759 760/* Define this to enable DSA support. */ 761#undef USE_DSA 762 763/* Define this to enable ECDSA support. */ 764#undef USE_ECDSA 765 766/* Define this to enable an EVP workaround for older openssl */ 767#undef USE_ECDSA_EVP_WORKAROUND 768 769/* Define this to enable ED25519 support. */ 770#undef USE_ED25519 771 772/* Define this to enable ED448 support. */ 773#undef USE_ED448 774 775/* Define this to enable GOST support. */ 776#undef USE_GOST 777 778/* Define to 1 to use ipsecmod support. */ 779#undef USE_IPSECMOD 780 781/* Define to 1 to use ipset support */ 782#undef USE_IPSET 783 784/* Define if you want to use internal select based events */ 785#undef USE_MINI_EVENT 786 787/* Define this to enable client TCP Fast Open. */ 788#undef USE_MSG_FASTOPEN 789 790/* Define this to enable client TCP Fast Open. */ 791#undef USE_OSX_MSG_FASTOPEN 792 793/* Define this to use hiredis client. */ 794#undef USE_REDIS 795 796/* Define this to enable SHA1 support. */ 797#undef USE_SHA1 798 799/* Define this to enable SHA256 and SHA512 support. */ 800#undef USE_SHA2 801 802/* Enable extensions on AIX 3, Interix. */ 803#ifndef _ALL_SOURCE 804# undef _ALL_SOURCE 805#endif 806/* Enable GNU extensions on systems that have them. */ 807#ifndef _GNU_SOURCE 808# undef _GNU_SOURCE 809#endif 810/* Enable threading extensions on Solaris. */ 811#ifndef _POSIX_PTHREAD_SEMANTICS 812# undef _POSIX_PTHREAD_SEMANTICS 813#endif 814/* Enable extensions on HP NonStop. */ 815#ifndef _TANDEM_SOURCE 816# undef _TANDEM_SOURCE 817#endif 818/* Enable general extensions on Solaris. */ 819#ifndef __EXTENSIONS__ 820# undef __EXTENSIONS__ 821#endif 822 823 824/* Define this to enable server TCP Fast Open. */ 825#undef USE_TCP_FASTOPEN 826 827/* Whether the windows socket API is used */ 828#undef USE_WINSOCK 829 830/* the version of the windows API enabled */ 831#undef WINVER 832 833/* Define if you want Python module. */ 834#undef WITH_PYTHONMODULE 835 836/* Define if you want PyUnbound. */ 837#undef WITH_PYUNBOUND 838 839/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 840 `char[]'. */ 841#undef YYTEXT_POINTER 842 843/* Enable large inode numbers on Mac OS X 10.5. */ 844#ifndef _DARWIN_USE_64_BIT_INODE 845# define _DARWIN_USE_64_BIT_INODE 1 846#endif 847 848/* Number of bits in a file offset, on hosts where this is settable. */ 849#undef _FILE_OFFSET_BITS 850 851/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 852#undef _LARGEFILE_SOURCE 853 854/* Define for large files, on AIX-style hosts. */ 855#undef _LARGE_FILES 856 857/* Define to 1 if on MINIX. */ 858#undef _MINIX 859 860/* Enable for compile on Minix */ 861#undef _NETBSD_SOURCE 862 863/* Define to 2 if the system does not provide POSIX.1 features except with 864 this defined. */ 865#undef _POSIX_1_SOURCE 866 867/* Define to 1 if you need to in order for `stat' and other things to work. */ 868#undef _POSIX_SOURCE 869 870/* Define to empty if `const' does not conform to ANSI C. */ 871#undef const 872 873/* Define to `int' if <sys/types.h> doesn't define. */ 874#undef gid_t 875 876/* in_addr_t */ 877#undef in_addr_t 878 879/* in_port_t */ 880#undef in_port_t 881 882/* Define to `__inline__' or `__inline' if that's what the C compiler 883 calls it, or to nothing if 'inline' is not supported under any name. */ 884#ifndef __cplusplus 885#undef inline 886#endif 887 888/* Define to `short' if <sys/types.h> does not define. */ 889#undef int16_t 890 891/* Define to `int' if <sys/types.h> does not define. */ 892#undef int32_t 893 894/* Define to `long long' if <sys/types.h> does not define. */ 895#undef int64_t 896 897/* Define to `signed char' if <sys/types.h> does not define. */ 898#undef int8_t 899 900/* Define if replacement function should be used. */ 901#undef malloc 902 903/* Define to `long int' if <sys/types.h> does not define. */ 904#undef off_t 905 906/* Define to `int' if <sys/types.h> does not define. */ 907#undef pid_t 908 909/* Define to 'int' if not defined */ 910#undef rlim_t 911 912/* Define to `unsigned int' if <sys/types.h> does not define. */ 913#undef size_t 914 915/* Define to 'int' if not defined */ 916#undef socklen_t 917 918/* Define to `int' if <sys/types.h> does not define. */ 919#undef ssize_t 920 921/* Define to 'unsigned char if not defined */ 922#undef u_char 923 924/* Define to `int' if <sys/types.h> doesn't define. */ 925#undef uid_t 926 927/* Define to `unsigned short' if <sys/types.h> does not define. */ 928#undef uint16_t 929 930/* Define to `unsigned int' if <sys/types.h> does not define. */ 931#undef uint32_t 932 933/* Define to `unsigned long long' if <sys/types.h> does not define. */ 934#undef uint64_t 935 936/* Define to `unsigned char' if <sys/types.h> does not define. */ 937#undef uint8_t 938 939/* Define as `fork' if `vfork' does not work. */ 940#undef vfork 941 942#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) 943#define _GNU_SOURCE 1 944#endif 945 946#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) 947#define _BSD_SOURCE 1 948#endif 949 950#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) 951#define _DEFAULT_SOURCE 1 952#endif 953 954#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) 955#define __EXTENSIONS__ 1 956#endif 957 958#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) 959#define _POSIX_C_SOURCE 200112 960#endif 961 962#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) 963#define _XOPEN_SOURCE 600 964#endif 965 966#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) 967#define _XOPEN_SOURCE_EXTENDED 1 968#endif 969 970#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) 971#define _ALL_SOURCE 1 972#endif 973 974#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) 975#define _LARGEFILE_SOURCE 1 976#endif 977 978 979 980 981#ifndef _OPENBSD_SOURCE 982#define _OPENBSD_SOURCE 1 983#endif 984 985#ifndef UNBOUND_DEBUG 986# ifndef NDEBUG 987# define NDEBUG 988# endif 989#endif 990 991/** Use small-ldns codebase */ 992#define USE_SLDNS 1 993#ifdef HAVE_SSL 994# define LDNS_BUILD_CONFIG_HAVE_SSL 1 995#endif 996 997#include <stdio.h> 998#include <string.h> 999#include <unistd.h> 1000#include <assert.h> 1001 1002#if STDC_HEADERS 1003#include <stdlib.h> 1004#include <stddef.h> 1005#endif 1006 1007#ifdef HAVE_STDARG_H 1008#include <stdarg.h> 1009#endif 1010 1011#ifdef HAVE_STDINT_H 1012#include <stdint.h> 1013#endif 1014 1015#include <errno.h> 1016 1017#if HAVE_SYS_PARAM_H 1018#include <sys/param.h> 1019#endif 1020 1021#ifdef HAVE_SYS_SOCKET_H 1022#include <sys/socket.h> 1023#endif 1024 1025#ifdef HAVE_SYS_UIO_H 1026#include <sys/uio.h> 1027#endif 1028 1029#ifdef HAVE_NETINET_IN_H 1030#include <netinet/in.h> 1031#endif 1032 1033#ifdef HAVE_NETINET_TCP_H 1034#include <netinet/tcp.h> 1035#endif 1036 1037#ifdef HAVE_ARPA_INET_H 1038#include <arpa/inet.h> 1039#endif 1040 1041#ifdef HAVE_WINSOCK2_H 1042#include <winsock2.h> 1043#endif 1044 1045#ifdef HAVE_WS2TCPIP_H 1046#include <ws2tcpip.h> 1047#endif 1048 1049#ifndef USE_WINSOCK 1050#define ARG_LL "%ll" 1051#else 1052#define ARG_LL "%I64" 1053#endif 1054 1055#ifndef AF_LOCAL 1056#define AF_LOCAL AF_UNIX 1057#endif 1058 1059 1060 1061#ifdef HAVE_ATTR_FORMAT 1062# define ATTR_FORMAT(archetype, string_index, first_to_check) \ 1063 __attribute__ ((format (archetype, string_index, first_to_check))) 1064#else /* !HAVE_ATTR_FORMAT */ 1065# define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 1066#endif /* !HAVE_ATTR_FORMAT */ 1067 1068 1069#if defined(DOXYGEN) 1070# define ATTR_UNUSED(x) x 1071#elif defined(__cplusplus) 1072# define ATTR_UNUSED(x) 1073#elif defined(HAVE_ATTR_UNUSED) 1074# define ATTR_UNUSED(x) x __attribute__((unused)) 1075#else /* !HAVE_ATTR_UNUSED */ 1076# define ATTR_UNUSED(x) x 1077#endif /* !HAVE_ATTR_UNUSED */ 1078 1079 1080#ifndef HAVE_FSEEKO 1081#define fseeko fseek 1082#define ftello ftell 1083#endif /* HAVE_FSEEKO */ 1084 1085 1086#ifndef MAXHOSTNAMELEN 1087#define MAXHOSTNAMELEN 256 1088#endif 1089 1090#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) 1091#define snprintf snprintf_unbound 1092#define vsnprintf vsnprintf_unbound 1093#include <stdarg.h> 1094int snprintf (char *str, size_t count, const char *fmt, ...); 1095int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 1096#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */ 1097 1098#ifndef HAVE_INET_PTON 1099#define inet_pton inet_pton_unbound 1100int inet_pton(int af, const char* src, void* dst); 1101#endif /* HAVE_INET_PTON */ 1102 1103 1104#ifndef HAVE_INET_NTOP 1105#define inet_ntop inet_ntop_unbound 1106const char *inet_ntop(int af, const void *src, char *dst, size_t size); 1107#endif 1108 1109 1110#ifndef HAVE_INET_ATON 1111#define inet_aton inet_aton_unbound 1112int inet_aton(const char *cp, struct in_addr *addr); 1113#endif 1114 1115 1116#ifndef HAVE_MEMMOVE 1117#define memmove memmove_unbound 1118void *memmove(void *dest, const void *src, size_t n); 1119#endif 1120 1121 1122#ifndef HAVE_STRLCAT 1123#define strlcat strlcat_unbound 1124size_t strlcat(char *dst, const char *src, size_t siz); 1125#endif 1126 1127 1128#ifndef HAVE_STRLCPY 1129#define strlcpy strlcpy_unbound 1130size_t strlcpy(char *dst, const char *src, size_t siz); 1131#endif 1132 1133 1134#ifndef HAVE_GMTIME_R 1135#define gmtime_r gmtime_r_unbound 1136struct tm *gmtime_r(const time_t *timep, struct tm *result); 1137#endif 1138 1139 1140#ifndef HAVE_REALLOCARRAY 1141#define reallocarray reallocarrayunbound 1142void* reallocarray(void *ptr, size_t nmemb, size_t size); 1143#endif 1144 1145 1146#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H) 1147#define sleep(x) Sleep((x)*1000) /* on win32 */ 1148#endif /* HAVE_SLEEP */ 1149 1150 1151#ifndef HAVE_USLEEP 1152#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */ 1153#endif /* HAVE_USLEEP */ 1154 1155 1156#ifndef HAVE_RANDOM 1157#define random rand /* on win32, for tests only (bad random) */ 1158#endif /* HAVE_RANDOM */ 1159 1160 1161#ifndef HAVE_SRANDOM 1162#define srandom(x) srand(x) /* on win32, for tests only (bad random) */ 1163#endif /* HAVE_SRANDOM */ 1164 1165 1166/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 1167#ifdef HAVE_WINSOCK2_H 1168#define FD_SET_T (u_int) 1169#else 1170#define FD_SET_T 1171#endif 1172 1173 1174#ifndef IPV6_MIN_MTU 1175#define IPV6_MIN_MTU 1280 1176#endif /* IPV6_MIN_MTU */ 1177 1178 1179#ifdef MEMCMP_IS_BROKEN 1180#include "compat/memcmp.h" 1181#define memcmp memcmp_unbound 1182int memcmp(const void *x, const void *y, size_t n); 1183#endif 1184 1185 1186 1187#ifndef HAVE_CTIME_R 1188#define ctime_r unbound_ctime_r 1189char *ctime_r(const time_t *timep, char *buf); 1190#endif 1191 1192#ifndef HAVE_STRSEP 1193#define strsep unbound_strsep 1194char *strsep(char **stringp, const char *delim); 1195#endif 1196 1197#ifndef HAVE_ISBLANK 1198#define isblank unbound_isblank 1199int isblank(int c); 1200#endif 1201 1202#ifndef HAVE_EXPLICIT_BZERO 1203#define explicit_bzero unbound_explicit_bzero 1204void explicit_bzero(void* buf, size_t len); 1205#endif 1206 1207#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP 1208const char *inet_ntop(int af, const void *src, char *dst, size_t size); 1209#endif 1210 1211#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON 1212int inet_pton(int af, const char* src, void* dst); 1213#endif 1214 1215#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS) 1216#define strptime unbound_strptime 1217struct tm; 1218char *strptime(const char *s, const char *format, struct tm *tm); 1219#endif 1220 1221#ifdef HAVE_LIBRESSL 1222# if !HAVE_DECL_STRLCPY 1223size_t strlcpy(char *dst, const char *src, size_t siz); 1224# endif 1225# if !HAVE_DECL_STRLCAT 1226size_t strlcat(char *dst, const char *src, size_t siz); 1227# endif 1228# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM) 1229uint32_t arc4random(void); 1230# endif 1231# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM) 1232uint32_t arc4random_uniform(uint32_t upper_bound); 1233# endif 1234# if !HAVE_DECL_REALLOCARRAY 1235void *reallocarray(void *ptr, size_t nmemb, size_t size); 1236# endif 1237#endif /* HAVE_LIBRESSL */ 1238#ifndef HAVE_ARC4RANDOM 1239int getentropy(void* buf, size_t len); 1240uint32_t arc4random(void); 1241void arc4random_buf(void* buf, size_t n); 1242void _ARC4_LOCK(void); 1243void _ARC4_UNLOCK(void); 1244void _ARC4_LOCK_DESTROY(void); 1245#endif 1246#ifndef HAVE_ARC4RANDOM_UNIFORM 1247uint32_t arc4random_uniform(uint32_t upper_bound); 1248#endif 1249#ifdef COMPAT_SHA512 1250#ifndef SHA512_DIGEST_LENGTH 1251#define SHA512_BLOCK_LENGTH 128 1252#define SHA512_DIGEST_LENGTH 64 1253#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) 1254typedef struct _SHA512_CTX { 1255 uint64_t state[8]; 1256 uint64_t bitcount[2]; 1257 uint8_t buffer[SHA512_BLOCK_LENGTH]; 1258} SHA512_CTX; 1259#endif /* SHA512_DIGEST_LENGTH */ 1260void SHA512_Init(SHA512_CTX*); 1261void SHA512_Update(SHA512_CTX*, void*, size_t); 1262void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); 1263unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); 1264#endif /* COMPAT_SHA512 */ 1265 1266 1267 1268#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)) 1269 /* using version of libevent that is not threadsafe. */ 1270# define LIBEVENT_SIGNAL_PROBLEM 1 1271#endif 1272 1273#ifndef CHECKED_INET6 1274# define CHECKED_INET6 1275# ifdef AF_INET6 1276# define INET6 1277# else 1278# define AF_INET6 28 1279# endif 1280#endif /* CHECKED_INET6 */ 1281 1282#ifndef HAVE_GETADDRINFO 1283struct sockaddr_storage; 1284#include "compat/fake-rfc2553.h" 1285#endif 1286 1287#ifdef UNBOUND_ALLOC_STATS 1288# define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__) 1289# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__) 1290# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__) 1291# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__) 1292void *unbound_stat_malloc(size_t size); 1293void *unbound_stat_calloc(size_t nmemb, size_t size); 1294void unbound_stat_free(void *ptr); 1295void *unbound_stat_realloc(void *ptr, size_t size); 1296void *unbound_stat_malloc_log(size_t size, const char* file, int line, 1297 const char* func); 1298void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file, 1299 int line, const char* func); 1300void unbound_stat_free_log(void *ptr, const char* file, int line, 1301 const char* func); 1302void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, 1303 int line, const char* func); 1304#elif defined(UNBOUND_ALLOC_LITE) 1305# include "util/alloc.h" 1306#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */ 1307 1308/** default port for DNS traffic. */ 1309#define UNBOUND_DNS_PORT 53 1310/** default port for DNS over TLS traffic. */ 1311#define UNBOUND_DNS_OVER_TLS_PORT 853 1312/** default port for unbound control traffic, registered port with IANA, 1313 ub-dns-control 8953/tcp unbound dns nameserver control */ 1314#define UNBOUND_CONTROL_PORT 8953 1315/** the version of unbound-control that this software implements */ 1316#define UNBOUND_CONTROL_VERSION 1 1317 1318 1319