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