1 /* config.h. Generated from config.h.in by configure. */ 2 /* config.h.in. Generated from configure.ac by autoheader. */ 3 4 /* apply the fallthrough attribute. */ 5#if defined(__clang__) 6#define ATTR_FALLTHROUGH __attribute__((fallthrough)); 7#else 8#define ATTR_FALLTHROUGH 9#endif 10 11 /* apply the noreturn attribute to a function that exits the program */ 12#define ATTR_NORETURN __attribute__((__noreturn__)) 13 14 /* apply the weak attribute to a symbol */ 15#define ATTR_WEAK __attribute__((weak)) 16 17 /* Directory to chroot to */ 18#define CHROOT_DIR "/var/unbound" 19 20 /* Define this to enable client subnet option. */ 21 /* #undef CLIENT_SUBNET */ 22 23 /* Do sha512 definitions in config.h */ 24 /* #undef COMPAT_SHA512 */ 25 26 /* Command line arguments used with configure */ 27#define CONFCMDLINE "--enable-allsymbols --with-ssl=/usr --with-libevent=/usr --with-libexpat=/usr --without-pythonmodule --with-chroot-dir=/var/unbound --with-pidfile= --with-rootkey-file=/var/unbound/db/root.key --with-conf-file=/var/unbound/etc/unbound.conf --with-username=_unbound --disable-shared --disable-explicit-port-randomisation --without-pthreads" 28 29 /* Pathname to the Unbound configuration file */ 30#define CONFIGFILE "/var/unbound/etc/unbound.conf" 31 32 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work 33 */ 34 /* #undef DARWIN_BROKEN_SETREUID */ 35 36 /* Whether daemon is deprecated */ 37 /* #undef DEPRECATED_DAEMON */ 38 39 /* Deprecate RSA 1024 bit length, makes that an unsupported key */ 40 /* #undef DEPRECATE_RSA_1024 */ 41 42 /* Define this to enable kernel based UDP source port randomization. */ 43#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1 44 45 /* default dnstap socket path */ 46 /* #undef DNSTAP_SOCKET_PATH */ 47 48 /* Define if you want to use debug lock checking (slow). */ 49 /* #undef ENABLE_LOCK_CHECKS */ 50 51 /* Define this if you enabled-allsymbols from libunbound to link binaries to 52 it for smaller install size, but the libunbound export table is polluted by 53 internal symbols */ 54#define EXPORT_ALL_SYMBOLS 1 55 56 /* Define to 1 if you have the `accept4' function. */ 57#define HAVE_ACCEPT4 1 58 59 /* Define to 1 if you have the `arc4random' function. */ 60#define HAVE_ARC4RANDOM 1 61 62 /* Define to 1 if you have the `arc4random_uniform' function. */ 63#define HAVE_ARC4RANDOM_UNIFORM 1 64 65 /* Define to 1 if you have the <arpa/inet.h> header file. */ 66#define HAVE_ARPA_INET_H 1 67 68 /* Whether the C compiler accepts the "fallthrough" attribute */ 69#define HAVE_ATTR_FALLTHROUGH 1 70 71 /* Whether the C compiler accepts the "format" attribute */ 72#define HAVE_ATTR_FORMAT 1 73 74 /* Whether the C compiler accepts the "noreturn" attribute */ 75#define HAVE_ATTR_NORETURN 1 76 77 /* Whether the C compiler accepts the "unused" attribute */ 78#define HAVE_ATTR_UNUSED 1 79 80 /* Whether the C compiler accepts the "weak" attribute */ 81#define HAVE_ATTR_WEAK 1 82 83 /* If we have be64toh */ 84#define HAVE_BE64TOH 1 85 86 /* Define to 1 if you have the `BIO_set_callback_ex' function. */ 87#define HAVE_BIO_SET_CALLBACK_EX 1 88 89 /* Define to 1 if you have the <bsd/stdlib.h> header file. */ 90 /* #undef HAVE_BSD_STDLIB_H */ 91 92 /* Define to 1 if you have the <bsd/string.h> header file. */ 93 /* #undef HAVE_BSD_STRING_H */ 94 95 /* Define to 1 if you have the `chown' function. */ 96#define HAVE_CHOWN 1 97 98 /* Define to 1 if you have the `chroot' function. */ 99#define HAVE_CHROOT 1 100 101 /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ 102#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1 103 104 /* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */ 105#define HAVE_CRYPTO_THREADID_SET_CALLBACK 1 106 107 /* Define to 1 if you have the `ctime_r' function. */ 108#define HAVE_CTIME_R 1 109 110 /* Define to 1 if you have the `daemon' function. */ 111#define HAVE_DAEMON 1 112 113 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you 114 don't. */ 115#define HAVE_DECL_ARC4RANDOM 1 116 117 /* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 118 if you don't. */ 119#define HAVE_DECL_ARC4RANDOM_UNIFORM 1 120 121 /* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if 122 you don't. */ 123#define HAVE_DECL_EVSIGNAL_ASSIGN 0 124 125 /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you 126 don't. */ 127#define HAVE_DECL_INET_NTOP 1 128 129 /* Define to 1 if you have the declaration of `inet_pton', and to 0 if you 130 don't. */ 131#define HAVE_DECL_INET_PTON 1 132 133 /* Define to 1 if you have the declaration of `nghttp2_session_server_new', 134 and to 0 if you don't. */ 135 /* #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW */ 136 137 /* Define to 1 if you have the declaration of `ngtcp2_conn_server_new', and to 138 0 if you don't. */ 139 /* #undef HAVE_DECL_NGTCP2_CONN_SERVER_NEW */ 140 141 /* Define to 1 if you have the declaration of `ngtcp2_crypto_encrypt_cb', and 142 to 0 if you don't. */ 143 /* #undef HAVE_DECL_NGTCP2_CRYPTO_ENCRYPT_CB */ 144 145 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you 146 don't. */ 147#define HAVE_DECL_NID_ED25519 1 148 149 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you 150 don't. */ 151#define HAVE_DECL_NID_ED448 0 152 153 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 154 don't. */ 155#define HAVE_DECL_NID_SECP384R1 1 156 157 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 158 if you don't. */ 159#define HAVE_DECL_NID_X9_62_PRIME256V1 1 160 161 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you 162 don't. */ 163#define HAVE_DECL_REALLOCARRAY 1 164 165 /* Define to 1 if you have the declaration of `redisConnect', and to 0 if you 166 don't. */ 167 /* #undef HAVE_DECL_REDISCONNECT */ 168 169 /* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 170 if you don't. */ 171#define HAVE_DECL_SK_SSL_COMP_POP_FREE 1 172 173 /* Define to 1 if you have the declaration of 174 `SSL_COMP_get_compression_methods', and to 0 if you don't. */ 175#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1 176 177 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to 178 0 if you don't. */ 179#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 1 180 181 /* Define to 1 if you have the declaration of `SSL_CTX_set_tmp_ecdh', and to 0 182 if you don't. */ 183#define HAVE_DECL_SSL_CTX_SET_TMP_ECDH 1 184 185 /* Define to 1 if you have the declaration of `strlcat', and to 0 if you 186 don't. */ 187#define HAVE_DECL_STRLCAT 1 188 189 /* Define to 1 if you have the declaration of `strlcpy', and to 0 if you 190 don't. */ 191#define HAVE_DECL_STRLCPY 1 192 193 /* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if 194 you don't. */ 195#define HAVE_DECL_XML_STOPPARSER 1 196 197 /* Define to 1 if you have the <dlfcn.h> header file. */ 198#define HAVE_DLFCN_H 1 199 200 /* Define to 1 if you have the `DSA_SIG_set0' function. */ 201#define HAVE_DSA_SIG_SET0 1 202 203 /* Define to 1 if you have the <endian.h> header file. */ 204#define HAVE_ENDIAN_H 1 205 206 /* Define to 1 if you have the `endprotoent' function. */ 207#define HAVE_ENDPROTOENT 1 208 209 /* Define to 1 if you have the `endpwent' function. */ 210#define HAVE_ENDPWENT 1 211 212 /* Define to 1 if you have the `endservent' function. */ 213#define HAVE_ENDSERVENT 1 214 215 /* Define to 1 if you have the `ENGINE_cleanup' function. */ 216#define HAVE_ENGINE_CLEANUP 1 217 218 /* Define to 1 if you have the `ERR_free_strings' function. */ 219#define HAVE_ERR_FREE_STRINGS 1 220 221 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */ 222#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1 223 224 /* Define to 1 if you have the `event_assign' function. */ 225 /* #undef HAVE_EVENT_ASSIGN */ 226 227 /* Define to 1 if you have the `event_base_free' function. */ 228#define HAVE_EVENT_BASE_FREE 1 229 230 /* Define to 1 if you have the `event_base_get_method' function. */ 231#define HAVE_EVENT_BASE_GET_METHOD 1 232 233 /* Define to 1 if you have the `event_base_new' function. */ 234#define HAVE_EVENT_BASE_NEW 1 235 236 /* Define to 1 if you have the `event_base_once' function. */ 237#define HAVE_EVENT_BASE_ONCE 1 238 239 /* Define to 1 if you have the <event.h> header file. */ 240#define HAVE_EVENT_H 1 241 242 /* Define to 1 if you have the `EVP_aes_256_cbc' function. */ 243#define HAVE_EVP_AES_256_CBC 1 244 245 /* Define to 1 if you have the `EVP_cleanup' function. */ 246#define HAVE_EVP_CLEANUP 1 247 248 /* Define to 1 if you have the `EVP_default_properties_is_fips_enabled' 249 function. */ 250 /* #undef HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED */ 251 252 /* Define to 1 if you have the `EVP_DigestVerify' function. */ 253#define HAVE_EVP_DIGESTVERIFY 1 254 255 /* Define to 1 if you have the `EVP_dss1' function. */ 256 /* #undef HAVE_EVP_DSS1 */ 257 258 /* Define to 1 if you have the `EVP_EncryptInit_ex' function. */ 259#define HAVE_EVP_ENCRYPTINIT_EX 1 260 261 /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */ 262 /* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */ 263 264 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */ 265#define HAVE_EVP_MD_CTX_NEW 1 266 267 /* Define to 1 if you have the `EVP_sha1' function. */ 268#define HAVE_EVP_SHA1 1 269 270 /* Define to 1 if you have the `EVP_sha256' function. */ 271#define HAVE_EVP_SHA256 1 272 273 /* Define to 1 if you have the `EVP_sha512' function. */ 274#define HAVE_EVP_SHA512 1 275 276 /* Define to 1 if you have the `ev_default_loop' function. */ 277 /* #undef HAVE_EV_DEFAULT_LOOP */ 278 279 /* Define to 1 if you have the `ev_loop' function. */ 280 /* #undef HAVE_EV_LOOP */ 281 282 /* Define to 1 if you have the <expat.h> header file. */ 283#define HAVE_EXPAT_H 1 284 285 /* Define to 1 if you have the `explicit_bzero' function. */ 286#define HAVE_EXPLICIT_BZERO 1 287 288 /* Define to 1 if you have the `fcntl' function. */ 289#define HAVE_FCNTL 1 290 291 /* Define to 1 if you have the `FIPS_mode' function. */ 292#define HAVE_FIPS_MODE 1 293 294 /* Define to 1 if you have the `fork' function. */ 295#define HAVE_FORK 1 296 297 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 298#define HAVE_FSEEKO 1 299 300 /* Define to 1 if you have the `fsync' function. */ 301#define HAVE_FSYNC 1 302 303 /* Whether getaddrinfo is available */ 304#define HAVE_GETADDRINFO 1 305 306 /* Define to 1 if you have the `getauxval' function. */ 307 /* #undef HAVE_GETAUXVAL */ 308 309 /* Define to 1 if you have the `getentropy' function. */ 310 /* #undef HAVE_GETENTROPY */ 311 312 /* Define to 1 if you have the `getifaddrs' function. */ 313#define HAVE_GETIFADDRS 1 314 315 /* Define to 1 if you have the <getopt.h> header file. */ 316#define HAVE_GETOPT_H 1 317 318 /* Define to 1 if you have the `getpwnam' function. */ 319#define HAVE_GETPWNAM 1 320 321 /* Define to 1 if you have the `getrlimit' function. */ 322#define HAVE_GETRLIMIT 1 323 324 /* Define to 1 if you have the `gettid' function. */ 325 /* #undef HAVE_GETTID */ 326 327 /* Define to 1 if you have the `glob' function. */ 328#define HAVE_GLOB 1 329 330 /* Define to 1 if you have the <glob.h> header file. */ 331#define HAVE_GLOB_H 1 332 333 /* Define to 1 if you have the `gmtime_r' function. */ 334#define HAVE_GMTIME_R 1 335 336 /* Define to 1 if you have the <grp.h> header file. */ 337#define HAVE_GRP_H 1 338 339 /* Define to 1 if you have the <hiredis/hiredis.h> header file. */ 340 /* #undef HAVE_HIREDIS_HIREDIS_H */ 341 342 /* Define to 1 if you have the `HMAC_Init_ex' function. */ 343#define HAVE_HMAC_INIT_EX 1 344 345 /* If we have htobe64 */ 346#define HAVE_HTOBE64 1 347 348 /* Define to 1 if you have the <ifaddrs.h> header file. */ 349#define HAVE_IFADDRS_H 1 350 351 /* Define to 1 if you have the `if_nametoindex' function. */ 352#define HAVE_IF_NAMETOINDEX 1 353 354 /* Define to 1 if you have the `inet_aton' function. */ 355#define HAVE_INET_ATON 1 356 357 /* Define to 1 if you have the `inet_ntop' function. */ 358#define HAVE_INET_NTOP 1 359 360 /* Define to 1 if you have the `inet_pton' function. */ 361#define HAVE_INET_PTON 1 362 363 /* Define to 1 if you have the `initgroups' function. */ 364#define HAVE_INITGROUPS 1 365 366 /* Define to 1 if you have the <inttypes.h> header file. */ 367#define HAVE_INTTYPES_H 1 368 369 /* if the function 'ioctlsocket' is available */ 370 /* #undef HAVE_IOCTLSOCKET */ 371 372 /* Define to 1 if you have the <iphlpapi.h> header file. */ 373 /* #undef HAVE_IPHLPAPI_H */ 374 375 /* Define to 1 if you have the `isblank' function. */ 376#define HAVE_ISBLANK 1 377 378 /* Define to 1 if you have the `kill' function. */ 379#define HAVE_KILL 1 380 381 /* Use portable libbsd functions */ 382 /* #undef HAVE_LIBBSD */ 383 384 /* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */ 385 /* #undef HAVE_LIBKERN_OSBYTEORDER_H */ 386 387 /* Define if we have LibreSSL */ 388#define HAVE_LIBRESSL 1 389 390 /* If we have atomic_store */ 391#define HAVE_LINK_ATOMIC_STORE 1 392 393 /* Define to 1 if you have the <linux/net_tstamp.h> header file. */ 394 /* #undef HAVE_LINUX_NET_TSTAMP_H */ 395 396 /* Define to 1 if you have the `localtime_r' function. */ 397#define HAVE_LOCALTIME_R 1 398 399 /* Define to 1 if you have the <login_cap.h> header file. */ 400#define HAVE_LOGIN_CAP_H 1 401 402 /* If have GNU libc compatible malloc */ 403#define HAVE_MALLOC 1 404 405 /* Define to 1 if you have the `memmove' function. */ 406#define HAVE_MEMMOVE 1 407 408 /* Define to 1 if you have the <minix/config.h> header file. */ 409 /* #undef HAVE_MINIX_CONFIG_H */ 410 411 /* Define to 1 if you have the <netdb.h> header file. */ 412#define HAVE_NETDB_H 1 413 414 /* Define to 1 if you have the <netinet/in.h> header file. */ 415#define HAVE_NETINET_IN_H 1 416 417 /* Define to 1 if you have the <netinet/tcp.h> header file. */ 418#define HAVE_NETINET_TCP_H 1 419 420 /* Define to 1 if you have the <netioapi.h> header file. */ 421 /* #undef HAVE_NETIOAPI_H */ 422 423 /* Use libnettle for crypto */ 424 /* #undef HAVE_NETTLE */ 425 426 /* Define to 1 if you have the <nettle/dsa-compat.h> header file. */ 427 /* #undef HAVE_NETTLE_DSA_COMPAT_H */ 428 429 /* Define to 1 if you have the <nettle/eddsa.h> header file. */ 430 /* #undef HAVE_NETTLE_EDDSA_H */ 431 432 /* Define to 1 if you have the <net/if.h> header file. */ 433#define HAVE_NET_IF_H 1 434 435 /* Define to 1 if you have the <net/pfvar.h> header file. */ 436 /* #undef HAVE_NET_PFVAR_H */ 437 438 /* Define this to use nghttp2 client. */ 439 /* #undef HAVE_NGHTTP2 */ 440 441 /* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */ 442 /* #undef HAVE_NGHTTP2_NGHTTP2_H */ 443 444 /* Define this to use ngtcp2. */ 445 /* #undef HAVE_NGTCP2 */ 446 447 /* Define to 1 if you have the `ngtcp2_ccerr_default' function. */ 448 /* #undef HAVE_NGTCP2_CCERR_DEFAULT */ 449 450 /* Define to 1 if you have the `ngtcp2_conn_encode_0rtt_transport_params' 451 function. */ 452 /* #undef HAVE_NGTCP2_CONN_ENCODE_0RTT_TRANSPORT_PARAMS */ 453 454 /* Define to 1 if you have the `ngtcp2_conn_get_max_local_streams_uni' 455 function. */ 456 /* #undef HAVE_NGTCP2_CONN_GET_MAX_LOCAL_STREAMS_UNI */ 457 458 /* Define to 1 if you have the `ngtcp2_conn_get_num_scid' function. */ 459 /* #undef HAVE_NGTCP2_CONN_GET_NUM_SCID */ 460 461 /* Define to 1 if you have the `ngtcp2_conn_in_closing_period' function. */ 462 /* #undef HAVE_NGTCP2_CONN_IN_CLOSING_PERIOD */ 463 464 /* Define to 1 if you have the `ngtcp2_conn_in_draining_period' function. */ 465 /* #undef HAVE_NGTCP2_CONN_IN_DRAINING_PERIOD */ 466 467 /* Define if ngtcp2_conn_shutdown_stream has 4 arguments. */ 468 /* #undef HAVE_NGTCP2_CONN_SHUTDOWN_STREAM4 */ 469 470 /* Define to 1 if you have the `ngtcp2_conn_tls_early_data_rejected' function. 471 */ 472 /* #undef HAVE_NGTCP2_CONN_TLS_EARLY_DATA_REJECTED */ 473 474 /* Define to 1 if you have the `ngtcp2_crypto_encrypt_cb' function. */ 475 /* #undef HAVE_NGTCP2_CRYPTO_ENCRYPT_CB */ 476 477 /* Define to 1 if you have the 478 `ngtcp2_crypto_quictls_configure_client_context' function. */ 479 /* #undef HAVE_NGTCP2_CRYPTO_QUICTLS_CONFIGURE_CLIENT_CONTEXT */ 480 481 /* Define to 1 if you have the 482 `ngtcp2_crypto_quictls_configure_server_context' function. */ 483 /* #undef HAVE_NGTCP2_CRYPTO_QUICTLS_CONFIGURE_SERVER_CONTEXT */ 484 485 /* Define to 1 if you have the 486 `ngtcp2_crypto_quictls_from_ossl_encryption_level' function. */ 487 /* #undef HAVE_NGTCP2_CRYPTO_QUICTLS_FROM_OSSL_ENCRYPTION_LEVEL */ 488 489 /* Define to 1 if you have the `ngtcp2_crypto_quictls_init' function. */ 490 /* #undef HAVE_NGTCP2_CRYPTO_QUICTLS_INIT */ 491 492 /* Define to 1 if the system has the type `ngtcp2_encryption_level'. */ 493 /* #undef HAVE_NGTCP2_ENCRYPTION_LEVEL */ 494 495 /* Define to 1 if you have the <ngtcp2/ngtcp2_crypto_openssl.h> header file. 496 */ 497 /* #undef HAVE_NGTCP2_NGTCP2_CRYPTO_OPENSSL_H */ 498 499 /* Define to 1 if you have the <ngtcp2/ngtcp2_crypto_ossl.h> header file. */ 500 /* #undef HAVE_NGTCP2_NGTCP2_CRYPTO_OSSL_H */ 501 502 /* Define to 1 if you have the <ngtcp2/ngtcp2_crypto_quictls.h> header file. 503 */ 504 /* #undef HAVE_NGTCP2_NGTCP2_CRYPTO_QUICTLS_H */ 505 506 /* Define to 1 if you have the <ngtcp2/ngtcp2.h> header file. */ 507 /* #undef HAVE_NGTCP2_NGTCP2_H */ 508 509 /* Use libnss for crypto */ 510 /* #undef HAVE_NSS */ 511 512 /* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ 513#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1 514 515 /* Define to 1 if you have the <openssl/bn.h> header file. */ 516#define HAVE_OPENSSL_BN_H 1 517 518 /* Define to 1 if you have the `OPENSSL_config' function. */ 519#define HAVE_OPENSSL_CONFIG 1 520 521 /* Define to 1 if you have the <openssl/conf.h> header file. */ 522#define HAVE_OPENSSL_CONF_H 1 523 524 /* Define to 1 if you have the <openssl/core_names.h> header file. */ 525 /* #undef HAVE_OPENSSL_CORE_NAMES_H */ 526 527 /* Define to 1 if you have the <openssl/dh.h> header file. */ 528#define HAVE_OPENSSL_DH_H 1 529 530 /* Define to 1 if you have the <openssl/dsa.h> header file. */ 531#define HAVE_OPENSSL_DSA_H 1 532 533 /* Define to 1 if you have the <openssl/engine.h> header file. */ 534#define HAVE_OPENSSL_ENGINE_H 1 535 536 /* Define to 1 if you have the <openssl/err.h> header file. */ 537#define HAVE_OPENSSL_ERR_H 1 538 539 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */ 540#define HAVE_OPENSSL_INIT_CRYPTO 1 541 542 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */ 543#define HAVE_OPENSSL_INIT_SSL 1 544 545 /* Define to 1 if you have the <openssl/param_build.h> header file. */ 546 /* #undef HAVE_OPENSSL_PARAM_BUILD_H */ 547 548 /* Define to 1 if you have the <openssl/rand.h> header file. */ 549#define HAVE_OPENSSL_RAND_H 1 550 551 /* Define to 1 if you have the <openssl/rsa.h> header file. */ 552#define HAVE_OPENSSL_RSA_H 1 553 554 /* Define to 1 if you have the <openssl/ssl.h> header file. */ 555#define HAVE_OPENSSL_SSL_H 1 556 557 /* Define to 1 if you have the `OSSL_PARAM_BLD_new' function. */ 558 /* #undef HAVE_OSSL_PARAM_BLD_NEW */ 559 560 /* Define to 1 if you have the `poll' function. */ 561#define HAVE_POLL 1 562 563 /* Define to 1 if you have the <poll.h> header file. */ 564#define HAVE_POLL_H 1 565 566 /* Define if you have POSIX threads libraries and header files. */ 567 /* #undef HAVE_PTHREAD */ 568 569 /* Have PTHREAD_PRIO_INHERIT. */ 570 /* #undef HAVE_PTHREAD_PRIO_INHERIT */ 571 572 /* Define to 1 if the system has the type `pthread_rwlock_t'. */ 573 /* #undef HAVE_PTHREAD_RWLOCK_T */ 574 575 /* Define to 1 if the system has the type `pthread_spinlock_t'. */ 576 /* #undef HAVE_PTHREAD_SPINLOCK_T */ 577 578 /* Define to 1 if you have the <pwd.h> header file. */ 579#define HAVE_PWD_H 1 580 581 /* Define if you have Python libraries and header files. */ 582 /* #undef HAVE_PYTHON */ 583 584 /* Define to 1 if you have the `random' function. */ 585#define HAVE_RANDOM 1 586 587 /* Define to 1 if you have the `RAND_cleanup' function. */ 588#define HAVE_RAND_CLEANUP 1 589 590 /* If we have reallocarray(3) */ 591#define HAVE_REALLOCARRAY 1 592 593 /* Define to 1 if you have the `recvmsg' function. */ 594#define HAVE_RECVMSG 1 595 596 /* Define to 1 if you have the `sendmsg' function. */ 597#define HAVE_SENDMSG 1 598 599 /* Define to 1 if you have the `setregid' function. */ 600 /* #undef HAVE_SETREGID */ 601 602 /* Define to 1 if you have the `setresgid' function. */ 603#define HAVE_SETRESGID 1 604 605 /* Define to 1 if you have the `setresuid' function. */ 606#define HAVE_SETRESUID 1 607 608 /* Define to 1 if you have the `setreuid' function. */ 609 /* #undef HAVE_SETREUID */ 610 611 /* Define to 1 if you have the `setrlimit' function. */ 612#define HAVE_SETRLIMIT 1 613 614 /* Define to 1 if you have the `setsid' function. */ 615#define HAVE_SETSID 1 616 617 /* Define to 1 if you have the `setusercontext' function. */ 618#define HAVE_SETUSERCONTEXT 1 619 620 /* Define to 1 if you have the `SHA512_Update' function. */ 621 /* #undef HAVE_SHA512_UPDATE */ 622 623 /* Define to 1 if you have the `shmget' function. */ 624#define HAVE_SHMGET 1 625 626 /* Define to 1 if you have the `sigprocmask' function. */ 627#define HAVE_SIGPROCMASK 1 628 629 /* Define to 1 if you have the `sleep' function. */ 630#define HAVE_SLEEP 1 631 632 /* Define to 1 if you have the `snprintf' function. */ 633#define HAVE_SNPRINTF 1 634 635 /* Define to 1 if you have the `socketpair' function. */ 636#define HAVE_SOCKETPAIR 1 637 638 /* Using Solaris threads */ 639 /* #undef HAVE_SOLARIS_THREADS */ 640 641 /* Define to 1 if you have the `srandom' function. */ 642#define HAVE_SRANDOM 1 643 644 /* Define if you have the SSL libraries installed. */ 645#define HAVE_SSL /**/ 646 647 /* Define to 1 if you have the `SSL_CTX_set_alpn_protos' function. */ 648#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1 649 650 /* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */ 651#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1 652 653 /* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */ 654#define HAVE_SSL_CTX_SET_CIPHERSUITES 1 655 656 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ 657#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1 658 659 /* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb' 660 function. */ 661 /* #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB */ 662 663 /* Define to 1 if you have the `SSL_get0_alpn_selected' function. */ 664#define HAVE_SSL_GET0_ALPN_SELECTED 1 665 666 /* Define to 1 if you have the `SSL_get0_peername' function. */ 667#define HAVE_SSL_GET0_PEERNAME 1 668 669 /* Define to 1 if you have the `SSL_get1_peer_certificate' function. */ 670 /* #undef HAVE_SSL_GET1_PEER_CERTIFICATE */ 671 672 /* Define to 1 if you have the `SSL_is_quic' function. */ 673 /* #undef HAVE_SSL_IS_QUIC */ 674 675 /* Define to 1 if you have the `SSL_set1_host' function. */ 676#define HAVE_SSL_SET1_HOST 1 677 678 /* Define to 1 if you have the <stdarg.h> header file. */ 679#define HAVE_STDARG_H 1 680 681 /* Define to 1 if you have the <stdatomic.h> header file. */ 682#define HAVE_STDATOMIC_H 1 683 684 /* Define to 1 if you have the <stdbool.h> header file. */ 685#define HAVE_STDBOOL_H 1 686 687 /* Define to 1 if you have the <stdint.h> header file. */ 688#define HAVE_STDINT_H 1 689 690 /* Define to 1 if you have the <stdio.h> header file. */ 691#define HAVE_STDIO_H 1 692 693 /* Define to 1 if you have the <stdlib.h> header file. */ 694#define HAVE_STDLIB_H 1 695 696 /* Define to 1 if you have the `strftime' function. */ 697#define HAVE_STRFTIME 1 698 699 /* Define to 1 if you have the <strings.h> header file. */ 700#define HAVE_STRINGS_H 1 701 702 /* Define to 1 if you have the <string.h> header file. */ 703#define HAVE_STRING_H 1 704 705 /* Define to 1 if you have the `strlcat' function. */ 706#define HAVE_STRLCAT 1 707 708 /* Define to 1 if you have the `strlcpy' function. */ 709#define HAVE_STRLCPY 1 710 711 /* Define to 1 if you have the `strptime' function. */ 712#define HAVE_STRPTIME 1 713 714 /* Define to 1 if you have the `strsep' function. */ 715#define HAVE_STRSEP 1 716 717 /* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ 718 /* #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST */ 719 720 /* Define to 1 if `tokenlen' is a member of `struct ngtcp2_pkt_hd'. */ 721 /* #undef HAVE_STRUCT_NGTCP2_PKT_HD_TOKENLEN */ 722 723 /* Define to 1 if `max_tx_udp_payload_size' is a member of `struct 724 ngtcp2_settings'. */ 725 /* #undef HAVE_STRUCT_NGTCP2_SETTINGS_MAX_TX_UDP_PAYLOAD_SIZE */ 726 727 /* Define to 1 if `tokenlen' is a member of `struct ngtcp2_settings'. */ 728 /* #undef HAVE_STRUCT_NGTCP2_SETTINGS_TOKENLEN */ 729 730 /* Define to 1 if `original_dcid_present' is a member of `struct 731 ngtcp2_transport_params'. */ 732 /* #undef HAVE_STRUCT_NGTCP2_TRANSPORT_PARAMS_ORIGINAL_DCID_PRESENT */ 733 734 /* Define to 1 if the system has the type `struct ngtcp2_version_cid'. */ 735 /* #undef HAVE_STRUCT_NGTCP2_VERSION_CID */ 736 737 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ 738#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 739 740 /* Define if you have Swig libraries and header files. */ 741 /* #undef HAVE_SWIG */ 742 743 /* Define to 1 if you have the <syslog.h> header file. */ 744#define HAVE_SYSLOG_H 1 745 746 /* Define to 1 if systemd should be used */ 747 /* #undef HAVE_SYSTEMD */ 748 749 /* Define to 1 if you have the <sys/endian.h> header file. */ 750#define HAVE_SYS_ENDIAN_H 1 751 752 /* Define to 1 if you have the <sys/ipc.h> header file. */ 753#define HAVE_SYS_IPC_H 1 754 755 /* Define to 1 if you have the <sys/param.h> header file. */ 756#define HAVE_SYS_PARAM_H 1 757 758 /* Define to 1 if you have the <sys/resource.h> header file. */ 759#define HAVE_SYS_RESOURCE_H 1 760 761 /* Define to 1 if you have the <sys/select.h> header file. */ 762#define HAVE_SYS_SELECT_H 1 763 764 /* Define to 1 if you have the <sys/sha2.h> header file. */ 765 /* #undef HAVE_SYS_SHA2_H */ 766 767 /* Define to 1 if you have the <sys/shm.h> header file. */ 768#define HAVE_SYS_SHM_H 1 769 770 /* Define to 1 if you have the <sys/socket.h> header file. */ 771#define HAVE_SYS_SOCKET_H 1 772 773 /* Define to 1 if you have the <sys/stat.h> header file. */ 774#define HAVE_SYS_STAT_H 1 775 776 /* Define to 1 if you have the <sys/sysctl.h> header file. */ 777 /* #undef HAVE_SYS_SYSCTL_H */ 778 779 /* Define to 1 if you have the <sys/types.h> header file. */ 780#define HAVE_SYS_TYPES_H 1 781 782 /* Define to 1 if you have the <sys/uio.h> header file. */ 783#define HAVE_SYS_UIO_H 1 784 785 /* Define to 1 if you have the <sys/un.h> header file. */ 786#define HAVE_SYS_UN_H 1 787 788 /* Define to 1 if you have the <sys/wait.h> header file. */ 789#define HAVE_SYS_WAIT_H 1 790 791 /* Define to 1 if you have the <TargetConditionals.h> header file. */ 792 /* #undef HAVE_TARGETCONDITIONALS_H */ 793 794 /* Define to 1 if you have the <time.h> header file. */ 795#define HAVE_TIME_H 1 796 797 /* Define to 1 if you have the `tzset' function. */ 798#define HAVE_TZSET 1 799 800 /* Define to 1 if you have the <unistd.h> header file. */ 801#define HAVE_UNISTD_H 1 802 803 /* Define to 1 if you have the `usleep' function. */ 804#define HAVE_USLEEP 1 805 806 /* Define to 1 if you have the `vfork' function. */ 807#define HAVE_VFORK 1 808 809 /* Define to 1 if you have the <vfork.h> header file. */ 810 /* #undef HAVE_VFORK_H */ 811 812 /* Define to 1 if you have the <wchar.h> header file. */ 813#define HAVE_WCHAR_H 1 814 815 /* Define to 1 if you have the <windows.h> header file. */ 816 /* #undef HAVE_WINDOWS_H */ 817 818 /* Using Windows threads */ 819 /* #undef HAVE_WINDOWS_THREADS */ 820 821 /* Define to 1 if you have the <winsock2.h> header file. */ 822 /* #undef HAVE_WINSOCK2_H */ 823 824 /* Define to 1 if `fork' works. */ 825#define HAVE_WORKING_FORK 1 826 827 /* Define to 1 if `vfork' works. */ 828#define HAVE_WORKING_VFORK 1 829 830 /* Define to 1 if you have the `writev' function. */ 831#define HAVE_WRITEV 1 832 833 /* Define to 1 if you have the <ws2tcpip.h> header file. */ 834 /* #undef HAVE_WS2TCPIP_H */ 835 836 /* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */ 837#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1 838 839 /* Define to 1 if you have the `_beginthreadex' function. */ 840 /* #undef HAVE__BEGINTHREADEX */ 841 842 /* If HMAC_Init_ex() returns void */ 843 /* #undef HMAC_INIT_EX_RETURNS_VOID */ 844 845 /* if lex has yylex_destroy */ 846#define LEX_HAS_YYLEX_DESTROY 1 847 848 /* Define to the sub-directory where libtool stores uninstalled libraries. */ 849#define LT_OBJDIR ".libs/" 850 851 /* Define to the maximum message length to pass to syslog. */ 852#define MAXSYSLOGMSGLEN 10240 853 854 /* Define if memcmp() does not compare unsigned bytes */ 855 /* #undef MEMCMP_IS_BROKEN */ 856 857 /* Define if mkdir has one argument. */ 858 /* #undef MKDIR_HAS_ONE_ARG */ 859 860 /* Define if the network stack does not fully support nonblocking io (causes 861 lower performance). */ 862 /* #undef NONBLOCKING_IS_BROKEN */ 863 864 /* Put -D_ALL_SOURCE define in config.h */ 865 /* #undef OMITTED__D_ALL_SOURCE */ 866 867 /* Put -D_BSD_SOURCE define in config.h */ 868 /* #undef OMITTED__D_BSD_SOURCE */ 869 870 /* Put -D_DEFAULT_SOURCE define in config.h */ 871 /* #undef OMITTED__D_DEFAULT_SOURCE */ 872 873 /* Put -D_GNU_SOURCE define in config.h */ 874 /* #undef OMITTED__D_GNU_SOURCE */ 875 876 /* Put -D_LARGEFILE_SOURCE=1 define in config.h */ 877 /* #undef OMITTED__D_LARGEFILE_SOURCE_1 */ 878 879 /* Put -D_POSIX_C_SOURCE=200112 define in config.h */ 880 /* #undef OMITTED__D_POSIX_C_SOURCE_200112 */ 881 882 /* Put -D_XOPEN_SOURCE=600 define in config.h */ 883 /* #undef OMITTED__D_XOPEN_SOURCE_600 */ 884 885 /* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ 886 /* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */ 887 888 /* Put -D__EXTENSIONS__ define in config.h */ 889 /* #undef OMITTED__D__EXTENSIONS__ */ 890 891 /* Define to the address where bug reports for this package should be sent. */ 892#define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues" 893 894 /* Define to the full name of this package. */ 895#define PACKAGE_NAME "unbound" 896 897 /* Define to the full name and version of this package. */ 898#define PACKAGE_STRING "unbound 1.24.0" 899 900 /* Define to the one symbol short name of this package. */ 901#define PACKAGE_TARNAME "unbound" 902 903 /* Define to the home page for this package. */ 904#define PACKAGE_URL "" 905 906 /* Define to the version of this package. */ 907#define PACKAGE_VERSION "1.24.0" 908 909 /* default pidfile location */ 910#define PIDFILE "" 911 912 /* Define to necessary symbol if this constant uses a non-standard name on 913 your system. */ 914 /* #undef PTHREAD_CREATE_JOINABLE */ 915 916 /* Return type of signal handlers, but autoconf 2.70 says 'your code may 917 safely assume C89 semantics that RETSIGTYPE is void.' */ 918#define RETSIGTYPE void 919 920 /* if REUSEPORT is enabled by default */ 921#define REUSEPORT_DEFAULT 0 922 923 /* default rootkey location */ 924#define ROOT_ANCHOR_FILE "/var/unbound/db/root.key" 925 926 /* default rootcert location */ 927#define ROOT_CERT_FILE "/var/unbound/etc/icannbundle.pem" 928 929 /* version number for resource files */ 930#define RSRC_PACKAGE_VERSION 1,24,0,0 931 932 /* Directory to chdir to */ 933#define RUN_DIR "/var/unbound/etc" 934 935 /* Shared data */ 936#define SHARE_DIR "/var/unbound/etc" 937 938 /* The size of `pthread_t', as computed by sizeof. */ 939 /* #undef SIZEOF_PTHREAD_T */ 940 941 /* The size of `size_t', as computed by sizeof. */ 942#define SIZEOF_SIZE_T 8 943 944 /* The size of `time_t', as computed by sizeof. */ 945#define SIZEOF_TIME_T 8 946 947 /* The size of `unsigned long', as computed by sizeof. */ 948 /* #undef SIZEOF_UNSIGNED_LONG */ 949 950 /* define if (v)snprintf does not return length needed, (but length used) */ 951 /* #undef SNPRINTF_RET_BROKEN */ 952 953 /* Define to 1 if libsodium supports sodium_set_misuse_handler */ 954 /* #undef SODIUM_MISUSE_HANDLER */ 955 956 /* Define to 1 if all of the C90 standard headers exist (not just the ones 957 required in a freestanding environment). This macro is provided for 958 backward compatibility; new code need not use it. */ 959#define STDC_HEADERS 1 960 961 /* use default strptime. */ 962#define STRPTIME_WORKS 1 963 964 /* Use win32 resources and API */ 965 /* #undef UB_ON_WINDOWS */ 966 967 /* the SYSLOG_FACILITY to use, default LOG_DAEMON */ 968#define UB_SYSLOG_FACILITY LOG_DAEMON 969 970 /* default username */ 971#define UB_USERNAME "_unbound" 972 973 /* use to enable lightweight alloc assertions, for debug use */ 974 /* #undef UNBOUND_ALLOC_LITE */ 975 976 /* use malloc not regions, for debug use */ 977 /* #undef UNBOUND_ALLOC_NONREGIONAL */ 978 979 /* use statistics for allocs and frees, for debug use */ 980 /* #undef UNBOUND_ALLOC_STATS */ 981 982 /* define this to enable debug checks. */ 983 /* #undef UNBOUND_DEBUG */ 984 985 /* Define to 1 to use cachedb support */ 986 /* #undef USE_CACHEDB */ 987 988 /* Define to 1 to enable dnscrypt support */ 989 /* #undef USE_DNSCRYPT */ 990 991 /* Define to 1 to enable dnscrypt with xchacha20 support */ 992 /* #undef USE_DNSCRYPT_XCHACHA20 */ 993 994 /* Define to 1 to enable dnstap support */ 995 /* #undef USE_DNSTAP */ 996 997 /* Define this to enable DSA support. */ 998 /* #undef USE_DSA */ 999 1000 /* Define this to enable ECDSA support. */ 1001#define USE_ECDSA 1 1002 1003 /* Define this to enable an EVP workaround for older openssl */ 1004 /* #undef USE_ECDSA_EVP_WORKAROUND */ 1005 1006 /* Define this to enable ED25519 support. */ 1007#define USE_ED25519 1 1008 1009 /* Define this to enable ED448 support. */ 1010 /* #undef USE_ED448 */ 1011 1012 /* Define this to enable GOST support. */ 1013 /* #undef USE_GOST */ 1014 1015 /* Define to 1 to use ipsecmod support. */ 1016 /* #undef USE_IPSECMOD */ 1017 1018 /* Define to 1 to use ipset support */ 1019 /* #undef USE_IPSET */ 1020 1021 /* Define if you enable libevent */ 1022#define USE_LIBEVENT 1 1023 1024 /* Define this to enable use of /proc/sys/net/ipv4/ip_local_port_range as a 1025 default outgoing port range. This is only for the libunbound on Linux and 1026 does not affect unbound resolving daemon itself. This may severely limit 1027 the number of available outgoing ports and thus decrease randomness. Define 1028 this only when the target system restricts (e.g. some of SELinux enabled 1029 distributions) the use of non-ephemeral ports. */ 1030 /* #undef USE_LINUX_IP_LOCAL_PORT_RANGE */ 1031 1032 /* Define if you want to use internal select based events */ 1033 /* #undef USE_MINI_EVENT */ 1034 1035 /* Define this to enable client TCP Fast Open. */ 1036 /* #undef USE_MSG_FASTOPEN */ 1037 1038 /* Define this to use ngtcp2_crypto_ossl. */ 1039 /* #undef USE_NGTCP2_CRYPTO_OSSL */ 1040 1041 /* Define this to enable client TCP Fast Open. */ 1042 /* #undef USE_OSX_MSG_FASTOPEN */ 1043 1044 /* Define this to use hiredis client. */ 1045 /* #undef USE_REDIS */ 1046 1047 /* Define this to enable SHA1 support. */ 1048#define USE_SHA1 1 1049 1050 /* Define this to enable SHA256 and SHA512 support. */ 1051#define USE_SHA2 1 1052 1053 /* Enable extensions on AIX 3, Interix. */ 1054#ifndef _ALL_SOURCE 1055# define _ALL_SOURCE 1 1056#endif 1057 /* Enable general extensions on macOS. */ 1058#ifndef _DARWIN_C_SOURCE 1059# define _DARWIN_C_SOURCE 1 1060#endif 1061 /* Enable general extensions on Solaris. */ 1062#ifndef __EXTENSIONS__ 1063# define __EXTENSIONS__ 1 1064#endif 1065 /* Enable GNU extensions on systems that have them. */ 1066#ifndef _GNU_SOURCE 1067# define _GNU_SOURCE 1 1068#endif 1069 /* Enable X/Open compliant socket functions that do not require linking 1070 with -lxnet on HP-UX 11.11. */ 1071#ifndef _HPUX_ALT_XOPEN_SOCKET_API 1072# define _HPUX_ALT_XOPEN_SOCKET_API 1 1073#endif 1074 /* Identify the host operating system as Minix. 1075 This macro does not affect the system headers' behavior. 1076 A future release of Autoconf may stop defining this macro. */ 1077#ifndef _MINIX 1078 /* # undef _MINIX */ 1079#endif 1080 /* Enable general extensions on NetBSD. 1081 Enable NetBSD compatibility extensions on Minix. */ 1082#ifndef _NETBSD_SOURCE 1083# define _NETBSD_SOURCE 1 1084#endif 1085 /* Enable OpenBSD compatibility extensions on NetBSD. 1086 Oddly enough, this does nothing on OpenBSD. */ 1087#ifndef _OPENBSD_SOURCE 1088# define _OPENBSD_SOURCE 1 1089#endif 1090 /* Define to 1 if needed for POSIX-compatible behavior. */ 1091#ifndef _POSIX_SOURCE 1092 /* # undef _POSIX_SOURCE */ 1093#endif 1094 /* Define to 2 if needed for POSIX-compatible behavior. */ 1095#ifndef _POSIX_1_SOURCE 1096 /* # undef _POSIX_1_SOURCE */ 1097#endif 1098 /* Enable POSIX-compatible threading on Solaris. */ 1099#ifndef _POSIX_PTHREAD_SEMANTICS 1100# define _POSIX_PTHREAD_SEMANTICS 1 1101#endif 1102 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ 1103#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1104# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 1105#endif 1106 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ 1107#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 1108# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 1109#endif 1110 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ 1111#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ 1112# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 1113#endif 1114 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ 1115#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ 1116# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 1117#endif 1118 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ 1119#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ 1120# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 1121#endif 1122 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ 1123#ifndef __STDC_WANT_LIB_EXT2__ 1124# define __STDC_WANT_LIB_EXT2__ 1 1125#endif 1126 /* Enable extensions specified by ISO/IEC 24747:2009. */ 1127#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ 1128# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 1129#endif 1130 /* Enable extensions on HP NonStop. */ 1131#ifndef _TANDEM_SOURCE 1132# define _TANDEM_SOURCE 1 1133#endif 1134 /* Enable X/Open extensions. Define to 500 only if necessary 1135 to make mbstate_t available. */ 1136#ifndef _XOPEN_SOURCE 1137 /* # undef _XOPEN_SOURCE */ 1138#endif 1139 1140 1141 /* Define this to enable server TCP Fast Open. */ 1142 /* #undef USE_TCP_FASTOPEN */ 1143 1144 /* Whether the windows socket API is used */ 1145 /* #undef USE_WINSOCK */ 1146 1147 /* the version of the windows API enabled */ 1148#define WINVER 0x0502 1149 1150 /* Define if you want dynlib module. */ 1151 /* #undef WITH_DYNLIBMODULE */ 1152 1153 /* Define if you want Python module. */ 1154 /* #undef WITH_PYTHONMODULE */ 1155 1156 /* Define if you want PyUnbound. */ 1157 /* #undef WITH_PYUNBOUND */ 1158 1159 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a 1160 `char[]'. */ 1161#define YYTEXT_POINTER 1 1162 1163 /* Number of bits in a file offset, on hosts where this is settable. */ 1164 /* #undef _FILE_OFFSET_BITS */ 1165 1166 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 1167 /* #undef _LARGEFILE_SOURCE */ 1168 1169 /* Define for large files, on AIX-style hosts. */ 1170 /* #undef _LARGE_FILES */ 1171 1172 /* Enable for compile on Minix */ 1173#define _NETBSD_SOURCE 1 1174 1175 /* defined to use gcc ansi snprintf and sscanf that understands %lld when 1176 compiled for windows. */ 1177 /* #undef __USE_MINGW_ANSI_STDIO */ 1178 1179 /* Define to empty if `const' does not conform to ANSI C. */ 1180 /* #undef const */ 1181 1182 /* Define to `int' if <sys/types.h> doesn't define. */ 1183 /* #undef gid_t */ 1184 1185 /* in_addr_t */ 1186 /* #undef in_addr_t */ 1187 1188 /* in_port_t */ 1189 /* #undef in_port_t */ 1190 1191 /* Define to `__inline__' or `__inline' if that's what the C compiler 1192 calls it, or to nothing if 'inline' is not supported under any name. */ 1193#ifndef __cplusplus 1194 /* #undef inline */ 1195#endif 1196 1197 /* Define to `short' if <sys/types.h> does not define. */ 1198 /* #undef int16_t */ 1199 1200 /* Define to `int' if <sys/types.h> does not define. */ 1201 /* #undef int32_t */ 1202 1203 /* Define to `long long' if <sys/types.h> does not define. */ 1204 /* #undef int64_t */ 1205 1206 /* Define to `signed char' if <sys/types.h> does not define. */ 1207 /* #undef int8_t */ 1208 1209 /* Define if replacement function should be used. */ 1210 /* #undef malloc */ 1211 1212 /* Define to `long int' if <sys/types.h> does not define. */ 1213 /* #undef off_t */ 1214 1215 /* Define as a signed integer type capable of holding a process identifier. */ 1216 /* #undef pid_t */ 1217 1218 /* Define to 'int' if not defined */ 1219 /* #undef rlim_t */ 1220 1221 /* Define to `unsigned int' if <sys/types.h> does not define. */ 1222 /* #undef size_t */ 1223 1224 /* Define to 'int' if not defined */ 1225 /* #undef socklen_t */ 1226 1227 /* Define to `int' if <sys/types.h> does not define. */ 1228 /* #undef ssize_t */ 1229 1230 /* Define to 'unsigned char if not defined */ 1231 /* #undef u_char */ 1232 1233 /* Define to `int' if <sys/types.h> doesn't define. */ 1234 /* #undef uid_t */ 1235 1236 /* Define to `unsigned short' if <sys/types.h> does not define. */ 1237 /* #undef uint16_t */ 1238 1239 /* Define to `unsigned int' if <sys/types.h> does not define. */ 1240 /* #undef uint32_t */ 1241 1242 /* Define to `unsigned long long' if <sys/types.h> does not define. */ 1243 /* #undef uint64_t */ 1244 1245 /* Define to `unsigned char' if <sys/types.h> does not define. */ 1246 /* #undef uint8_t */ 1247 1248 /* Define as `fork' if `vfork' does not work. */ 1249 /* #undef vfork */ 1250 1251#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) 1252#define _GNU_SOURCE 1 1253#endif 1254 1255#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) 1256#define _BSD_SOURCE 1 1257#endif 1258 1259#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) 1260#define _DEFAULT_SOURCE 1 1261#endif 1262 1263#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) 1264#define __EXTENSIONS__ 1 1265#endif 1266 1267#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) 1268#define _POSIX_C_SOURCE 200112 1269#endif 1270 1271#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) 1272#define _XOPEN_SOURCE 600 1273#endif 1274 1275#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) 1276#define _XOPEN_SOURCE_EXTENDED 1 1277#endif 1278 1279#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) 1280#define _ALL_SOURCE 1 1281#endif 1282 1283#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) 1284#define _LARGEFILE_SOURCE 1 1285#endif 1286 1287 1288 1289 1290#ifndef _OPENBSD_SOURCE 1291#define _OPENBSD_SOURCE 1 1292#endif 1293 1294#ifndef UNBOUND_DEBUG 1295# ifndef NDEBUG 1296# define NDEBUG 1297# endif 1298#endif 1299 1300 /** Use small-ldns codebase */ 1301#define USE_SLDNS 1 1302#ifdef HAVE_SSL 1303# define LDNS_BUILD_CONFIG_HAVE_SSL 1 1304#endif 1305 1306#include <stdio.h> 1307#include <string.h> 1308#include <unistd.h> 1309#include <assert.h> 1310 1311#if STDC_HEADERS 1312#include <stdlib.h> 1313#include <stddef.h> 1314#endif 1315 1316#ifdef HAVE_STDARG_H 1317#include <stdarg.h> 1318#endif 1319 1320#ifdef HAVE_STDINT_H 1321#include <stdint.h> 1322#endif 1323 1324#include <errno.h> 1325 1326#if HAVE_SYS_PARAM_H 1327#include <sys/param.h> 1328#endif 1329 1330#ifdef HAVE_SYS_SOCKET_H 1331#include <sys/socket.h> 1332#endif 1333 1334#ifdef HAVE_SYS_UIO_H 1335#include <sys/uio.h> 1336#endif 1337 1338#ifdef HAVE_NETINET_IN_H 1339#include <netinet/in.h> 1340#endif 1341 1342#ifdef HAVE_NETINET_TCP_H 1343#include <netinet/tcp.h> 1344#endif 1345 1346#ifdef HAVE_ARPA_INET_H 1347#include <arpa/inet.h> 1348#endif 1349 1350#ifdef HAVE_WINSOCK2_H 1351#include <winsock2.h> 1352#endif 1353 1354#ifdef HAVE_WS2TCPIP_H 1355#include <ws2tcpip.h> 1356#endif 1357 1358#if !defined(USE_WINSOCK) || !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) || defined(__USE_MINGW_ANSI_STDIO) 1359#define ARG_LL "%ll" 1360#else 1361#define ARG_LL "%I64" 1362#endif 1363 1364#ifndef AF_LOCAL 1365#define AF_LOCAL AF_UNIX 1366#endif 1367 1368 1369 1370#ifdef HAVE_ATTR_FORMAT 1371# define ATTR_FORMAT(archetype, string_index, first_to_check) \ 1372 __attribute__ ((format (archetype, string_index, first_to_check))) 1373#else /* !HAVE_ATTR_FORMAT */ 1374# define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */ 1375#endif /* !HAVE_ATTR_FORMAT */ 1376 1377 1378#if defined(DOXYGEN) 1379# define ATTR_UNUSED(x) x 1380#elif defined(__cplusplus) 1381# define ATTR_UNUSED(x) 1382#elif defined(HAVE_ATTR_UNUSED) 1383# define ATTR_UNUSED(x) x __attribute__((unused)) 1384#else /* !HAVE_ATTR_UNUSED */ 1385# define ATTR_UNUSED(x) x 1386#endif /* !HAVE_ATTR_UNUSED */ 1387 1388 1389#ifndef HAVE_FSEEKO 1390#define fseeko fseek 1391#define ftello ftell 1392#endif /* HAVE_FSEEKO */ 1393 1394 1395#ifndef MAXHOSTNAMELEN 1396#define MAXHOSTNAMELEN 256 1397#endif 1398 1399#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) 1400#define snprintf snprintf_unbound 1401#define vsnprintf vsnprintf_unbound 1402#include <stdarg.h> 1403 int snprintf (char *str, size_t count, const char *fmt, ...); 1404 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 1405#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */ 1406 1407#ifndef HAVE_INET_PTON 1408#define inet_pton inet_pton_unbound 1409 int inet_pton(int af, const char* src, void* dst); 1410#endif /* HAVE_INET_PTON */ 1411 1412 1413#ifndef HAVE_INET_NTOP 1414#define inet_ntop inet_ntop_unbound 1415 const char *inet_ntop(int af, const void *src, char *dst, size_t size); 1416#endif 1417 1418 1419#ifndef HAVE_INET_ATON 1420#define inet_aton inet_aton_unbound 1421 int inet_aton(const char *cp, struct in_addr *addr); 1422#endif 1423 1424 1425#ifndef HAVE_MEMMOVE 1426#define memmove memmove_unbound 1427 void *memmove(void *dest, const void *src, size_t n); 1428#endif 1429 1430 1431#ifndef HAVE_STRLCAT 1432#define strlcat strlcat_unbound 1433 size_t strlcat(char *dst, const char *src, size_t siz); 1434#endif 1435 1436 1437#ifndef HAVE_STRLCPY 1438#define strlcpy strlcpy_unbound 1439 size_t strlcpy(char *dst, const char *src, size_t siz); 1440#endif 1441 1442 1443#ifndef HAVE_GMTIME_R 1444#define gmtime_r gmtime_r_unbound 1445 struct tm *gmtime_r(const time_t *timep, struct tm *result); 1446#endif 1447 1448 1449#ifndef HAVE_REALLOCARRAY 1450#define reallocarray reallocarrayunbound 1451 void* reallocarray(void *ptr, size_t nmemb, size_t size); 1452#endif 1453 1454 1455#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H) 1456#define sleep(x) Sleep((x)*1000) /* on win32 */ 1457#endif /* HAVE_SLEEP */ 1458 1459 1460#ifndef HAVE_USLEEP 1461#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */ 1462#endif /* HAVE_USLEEP */ 1463 1464 1465#ifndef HAVE_RANDOM 1466#define random rand /* on win32, for tests only (bad random) */ 1467#endif /* HAVE_RANDOM */ 1468 1469 1470#ifndef HAVE_SRANDOM 1471#define srandom(x) srand(x) /* on win32, for tests only (bad random) */ 1472#endif /* HAVE_SRANDOM */ 1473 1474 1475 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 1476#ifdef HAVE_WINSOCK2_H 1477#define FD_SET_T (u_int) 1478#else 1479#define FD_SET_T 1480#endif 1481 1482 1483#ifndef IPV6_MIN_MTU 1484#define IPV6_MIN_MTU 1280 1485#endif /* IPV6_MIN_MTU */ 1486 1487 1488#ifdef MEMCMP_IS_BROKEN 1489#include "compat/memcmp.h" 1490#define memcmp memcmp_unbound 1491 int memcmp(const void *x, const void *y, size_t n); 1492#endif 1493 1494 1495 1496#ifndef HAVE_CTIME_R 1497#define ctime_r unbound_ctime_r 1498 char *ctime_r(const time_t *timep, char *buf); 1499#endif 1500 1501#ifndef HAVE_STRSEP 1502#define strsep unbound_strsep 1503 char *strsep(char **stringp, const char *delim); 1504#endif 1505 1506#ifndef HAVE_ISBLANK 1507#define isblank unbound_isblank 1508 int isblank(int c); 1509#endif 1510 1511#ifndef HAVE_EXPLICIT_BZERO 1512#define explicit_bzero unbound_explicit_bzero 1513 void explicit_bzero(void* buf, size_t len); 1514#endif 1515 1516#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP 1517 const char *inet_ntop(int af, const void *src, char *dst, size_t size); 1518#endif 1519 1520#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON 1521 int inet_pton(int af, const char* src, void* dst); 1522#endif 1523 1524#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS) 1525#define strptime unbound_strptime 1526 struct tm; 1527 char *strptime(const char *s, const char *format, struct tm *tm); 1528#endif 1529 1530#if !HAVE_DECL_REALLOCARRAY 1531 void *reallocarray(void *ptr, size_t nmemb, size_t size); 1532#endif 1533 1534#ifdef HAVE_LIBBSD 1535#include <bsd/string.h> 1536#include <bsd/stdlib.h> 1537#endif 1538 1539#ifdef HAVE_LIBRESSL 1540# if !HAVE_DECL_STRLCPY 1541 size_t strlcpy(char *dst, const char *src, size_t siz); 1542# endif 1543# if !HAVE_DECL_STRLCAT 1544 size_t strlcat(char *dst, const char *src, size_t siz); 1545# endif 1546# if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM) 1547 uint32_t arc4random(void); 1548# endif 1549# if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM) 1550 uint32_t arc4random_uniform(uint32_t upper_bound); 1551# endif 1552#endif /* HAVE_LIBRESSL */ 1553#ifndef HAVE_ARC4RANDOM 1554 int getentropy(void* buf, size_t len); 1555 uint32_t arc4random(void); 1556 void arc4random_buf(void* buf, size_t n); 1557 void _ARC4_LOCK(void); 1558 void _ARC4_UNLOCK(void); 1559 void _ARC4_LOCK_DESTROY(void); 1560#endif 1561#ifndef HAVE_ARC4RANDOM_UNIFORM 1562 uint32_t arc4random_uniform(uint32_t upper_bound); 1563#endif 1564#ifdef COMPAT_SHA512 1565#ifndef SHA512_DIGEST_LENGTH 1566#define SHA512_BLOCK_LENGTH 128 1567#define SHA512_DIGEST_LENGTH 64 1568#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) 1569 typedef struct _SHA512_CTX { 1570 uint64_t state[8]; 1571 uint64_t bitcount[2]; 1572 uint8_t buffer[SHA512_BLOCK_LENGTH]; 1573} SHA512_CTX; 1574#endif /* SHA512_DIGEST_LENGTH */ 1575 void SHA512_Init(SHA512_CTX*); 1576 void SHA512_Update(SHA512_CTX*, void*, size_t); 1577 void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); 1578 unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); 1579#endif /* COMPAT_SHA512 */ 1580 1581 1582 1583#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)) 1584 /* using version of libevent that is not threadsafe. */ 1585# define LIBEVENT_SIGNAL_PROBLEM 1 1586#endif 1587 1588#ifndef CHECKED_INET6 1589# define CHECKED_INET6 1590# ifdef AF_INET6 1591# define INET6 1592# else 1593# define AF_INET6 28 1594# endif 1595#endif /* CHECKED_INET6 */ 1596 1597#ifndef HAVE_GETADDRINFO 1598 struct sockaddr_storage; 1599#include "compat/fake-rfc2553.h" 1600#endif 1601 1602#ifdef UNBOUND_ALLOC_STATS 1603# define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__) 1604# define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__) 1605# define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__) 1606# define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__) 1607# define strdup(s) unbound_stat_strdup_log(s, __FILE__, __LINE__, __func__) 1608#ifdef HAVE_REALLOCARRAY 1609# define reallocarray(p,n,s) unbound_stat_reallocarray_log(p, n, s, __FILE__, __LINE__, __func__) 1610#endif 1611 void *unbound_stat_malloc(size_t size); 1612 void *unbound_stat_calloc(size_t nmemb, size_t size); 1613 void unbound_stat_free(void *ptr); 1614 void *unbound_stat_realloc(void *ptr, size_t size); 1615 void *unbound_stat_malloc_log(size_t size, const char* file, int line, 1616 const char* func); 1617 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file, 1618 int line, const char* func); 1619 void unbound_stat_free_log(void *ptr, const char* file, int line, 1620 const char* func); 1621 void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, 1622 int line, const char* func); 1623 void *unbound_stat_reallocarray_log(void *ptr, size_t nmemb, size_t size, 1624 const char* file, int line, const char* func); 1625 char *unbound_stat_strdup_log(const char *s, const char* file, int line, 1626 const char* func); 1627#elif defined(UNBOUND_ALLOC_LITE) 1628# include "util/alloc.h" 1629#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */ 1630 1631 /** default port for DNS traffic. */ 1632#define UNBOUND_DNS_PORT 53 1633 /** default port for DNS over TLS traffic. */ 1634#define UNBOUND_DNS_OVER_TLS_PORT 853 1635 /** default port for DNS over HTTPS traffic. */ 1636#define UNBOUND_DNS_OVER_HTTPS_PORT 443 1637 /** default port for DNS over QUIC traffic. */ 1638#define UNBOUND_DNS_OVER_QUIC_PORT 853 1639 /** default port for unbound control traffic, registered port with IANA, 1640 ub-dns-control 8953/tcp unbound dns nameserver control */ 1641#define UNBOUND_CONTROL_PORT 8953 1642 /** the version of unbound-control that this software implements */ 1643#define UNBOUND_CONTROL_VERSION 1 1644 1645 1646