config.h revision 294190
14Srgrimes/* config.h.  Generated from config.h.in by configure.  */
24Srgrimes/* config.h.in.  Generated from configure.ac by autoheader.  */
34Srgrimes
44Srgrimes/* Directory to chroot to */
54Srgrimes#define CHROOT_DIR "/var/unbound"
64Srgrimes
74Srgrimes/* Do sha512 definitions in config.h */
84Srgrimes/* #undef COMPAT_SHA512 */
94Srgrimes
104Srgrimes/* Pathname to the Unbound configuration file */
114Srgrimes#define CONFIGFILE "/var/unbound/unbound.conf"
124Srgrimes
134Srgrimes/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
144Srgrimes   */
154Srgrimes/* #undef DARWIN_BROKEN_SETREUID */
164Srgrimes
174Srgrimes/* Whether daemon is deprecated */
184Srgrimes/* #undef DEPRECATED_DAEMON */
194Srgrimes
204Srgrimes/* default dnstap socket path */
214Srgrimes/* #undef DNSTAP_SOCKET_PATH */
224Srgrimes
234Srgrimes/* Define if you want to use debug lock checking (slow). */
244Srgrimes/* #undef ENABLE_LOCK_CHECKS */
254Srgrimes
264Srgrimes/* Define this if you enabled-allsymbols from libunbound to link binaries to
274Srgrimes   it for smaller install size, but the libunbound export table is polluted by
284Srgrimes   internal symbols */
294Srgrimes/* #undef EXPORT_ALL_SYMBOLS */
304Srgrimes
314Srgrimes/* Define to 1 if you have the `arc4random' function. */
324Srgrimes#define HAVE_ARC4RANDOM 1
334Srgrimes
344Srgrimes/* Define to 1 if you have the `arc4random_uniform' function. */
354Srgrimes#define HAVE_ARC4RANDOM_UNIFORM 1
36620Srgrimes
3712848Sbde/* Define to 1 if you have the <arpa/inet.h> header file. */
384Srgrimes#define HAVE_ARPA_INET_H 1
394Srgrimes
404Srgrimes/* Whether the C compiler accepts the "format" attribute */
414Srgrimes#define HAVE_ATTR_FORMAT 1
424Srgrimes
438876Srgrimes/* Whether the C compiler accepts the "unused" attribute */
444Srgrimes#define HAVE_ATTR_UNUSED 1
454Srgrimes
464Srgrimes/* Define to 1 if you have the `chown' function. */
474Srgrimes#define HAVE_CHOWN 1
482056Swollman
492056Swollman/* Define to 1 if you have the `chroot' function. */
502056Swollman#define HAVE_CHROOT 1
512056Swollman
522056Swollman/* Define to 1 if you have the `ctime_r' function. */
532056Swollman#define HAVE_CTIME_R 1
542056Swollman
552056Swollman/* Define to 1 if you have the `daemon' function. */
5612604Sbde#define HAVE_DAEMON 1
5712649Speter
584Srgrimes/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
5910665Sbde   don't. */
607090Sbde/* #undef HAVE_DECL_ARC4RANDOM */
612056Swollman
6212791Sgibbs/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
634Srgrimes   if you don't. */
6412604Sbde/* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */
6512604Sbde
6612604Sbde/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
6712604Sbde   don't. */
6810665Sbde#define HAVE_DECL_NID_SECP384R1 1
6912604Sbde
7012604Sbde/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
7112604Sbde   if you don't. */
7212604Sbde#define HAVE_DECL_NID_X9_62_PRIME256V1 1
7310665Sbde
7412604Sbde/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
7512604Sbde   don't. */
7612604Sbde/* #undef HAVE_DECL_REALLOCARRAY */
7712604Sbde
78798Swollman/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
7912604Sbde   if you don't. */
8012604Sbde#define HAVE_DECL_SK_SSL_COMP_POP_FREE 1
8112604Sbde
8212604Sbde/* Define to 1 if you have the declaration of
834Srgrimes   `SSL_COMP_get_compression_methods', and to 0 if you don't. */
8412604Sbde#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1
8512604Sbde
8612604Sbde/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
8712604Sbde   0 if you don't. */
8812604Sbde#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 0
8912604Sbde
9012604Sbde/* Define to 1 if you have the declaration of `strlcat', and to 0 if you
9112604Sbde   don't. */
9212499Speter/* #undef HAVE_DECL_STRLCAT */
9312499Speter
9412499Speter/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
954370Sphk   don't. */
9610358Sjulian/* #undef HAVE_DECL_STRLCPY */
974370Sphk
9810358Sjulian/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
9910358Sjulian   you don't. */
10010358Sjulian#define HAVE_DECL_XML_STOPPARSER 1
1014370Sphk
10212604Sbde/* Define to 1 if you have the <dlfcn.h> header file. */
1034370Sphk#define HAVE_DLFCN_H 1
1047731Sphk
10512604Sbde/* Define to 1 if you have the <endian.h> header file. */
1067731Sphk/* #undef HAVE_ENDIAN_H */
1078055Sphk
10812604Sbde/* Define to 1 if you have the `endprotoent' function. */
1098055Sphk#define HAVE_ENDPROTOENT 1
1104370Sphk
11112848Sbde/* Define to 1 if you have the `endservent' function. */
11212848Sbde#define HAVE_ENDSERVENT 1
11312848Sbde
11412848Sbde/* Define to 1 if you have the `event_base_free' function. */
11512848Sbde/* #undef HAVE_EVENT_BASE_FREE */
1168007Sphk
1177731Sphk/* Define to 1 if you have the `event_base_get_method' function. */
1187731Sphk/* #undef HAVE_EVENT_BASE_GET_METHOD */
1197731Sphk
1207731Sphk/* Define to 1 if you have the `event_base_new' function. */
1217731Sphk/* #undef HAVE_EVENT_BASE_NEW */
1227731Sphk
1237731Sphk/* Define to 1 if you have the `event_base_once' function. */
1247731Sphk/* #undef HAVE_EVENT_BASE_ONCE */
1257731Sphk
1267731Sphk/* Define to 1 if you have the <event.h> header file. */
1277731Sphk/* #undef HAVE_EVENT_H */
1287731Sphk
12912604Sbde/* Define to 1 if you have the `EVP_sha1' function. */
13012604Sbde#define HAVE_EVP_SHA1 1
13112604Sbde
13210653Sdg/* Define to 1 if you have the `EVP_sha256' function. */
13310653Sdg#define HAVE_EVP_SHA256 1
1347731Sphk
1357731Sphk/* Define to 1 if you have the `EVP_sha512' function. */
1367731Sphk#define HAVE_EVP_SHA512 1
1377731Sphk
1387731Sphk/* Define to 1 if you have the `ev_default_loop' function. */
1397731Sphk/* #undef HAVE_EV_DEFAULT_LOOP */
1408456Srgrimes
1417731Sphk/* Define to 1 if you have the `ev_loop' function. */
14210665Sbde/* #undef HAVE_EV_LOOP */
1437731Sphk
1447731Sphk/* Define to 1 if you have the <expat.h> header file. */
1457731Sphk#define HAVE_EXPAT_H 1
1467731Sphk
1478007Sphk/* Define to 1 if you have the `fcntl' function. */
1487731Sphk#define HAVE_FCNTL 1
14912604Sbde
1507818Sdufault/* Define to 1 if you have the `FIPS_mode' function. */
1517818Sdufault#define HAVE_FIPS_MODE 1
1527818Sdufault
1537818Sdufault/* Define to 1 if you have the `fork' function. */
1547818Sdufault#define HAVE_FORK 1
1557818Sdufault
1567818Sdufault/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
15712604Sbde#define HAVE_FSEEKO 1
1587818Sdufault
1597818Sdufault/* Define to 1 if you have the `fsync' function. */
1607818Sdufault#define HAVE_FSYNC 1
1617818Sdufault
1627818Sdufault/* Whether getaddrinfo is available */
1637818Sdufault#define HAVE_GETADDRINFO 1
1647818Sdufault
1654Srgrimes/* Define to 1 if you have the `getauxval' function. */
1664Srgrimes/* #undef HAVE_GETAUXVAL */
1674Srgrimes
16810665Sbde/* Define to 1 if you have the `getentropy' function. */
16910665Sbde/* #undef HAVE_GETENTROPY */
17010653Sdg
1714Srgrimes/* Define to 1 if you have the <getopt.h> header file. */
1724Srgrimes#define HAVE_GETOPT_H 1
1738015Sjulian
1748015Sjulian/* Define to 1 if you have the `getpwnam' function. */
17512791Sgibbs#define HAVE_GETPWNAM 1
17612791Sgibbs
17712791Sgibbs/* Define to 1 if you have the `getrlimit' function. */
17812791Sgibbs#define HAVE_GETRLIMIT 1
17911602Sphk
18011602Sphk/* Define to 1 if you have the `glob' function. */
18111602Sphk#define HAVE_GLOB 1
18211602Sphk
1837818Sdufault/* Define to 1 if you have the <glob.h> header file. */
18412091Sgibbs#define HAVE_GLOB_H 1
18512091Sgibbs
18612091Sgibbs/* Define to 1 if you have the `gmtime_r' function. */
18712091Sgibbs#define HAVE_GMTIME_R 1
1882430Sse
1892430Sse/* Define to 1 if you have the <grp.h> header file. */
1902430Sse#define HAVE_GRP_H 1
1912430Sse
19212791Sgibbs/* If you have HMAC_CTX_init */
19312791Sgibbs#define HAVE_HMAC_CTX_INIT 1
19412791Sgibbs
19512791Sgibbs/* Define to 1 if you have the `inet_aton' function. */
1967818Sdufault#define HAVE_INET_ATON 1
1977818Sdufault
19810665Sbde/* Define to 1 if you have the `inet_ntop' function. */
19910665Sbde#define HAVE_INET_NTOP 1
2007731Sphk
2018007Sphk/* Define to 1 if you have the `inet_pton' function. */
2027731Sphk#define HAVE_INET_PTON 1
2037731Sphk
2048007Sphk/* Define to 1 if you have the `initgroups' function. */
2054370Sphk#define HAVE_INITGROUPS 1
2067731Sphk
2073795Sphk/* Define to 1 if you have the <inttypes.h> header file. */
2084370Sphk#define HAVE_INTTYPES_H 1
2098007Sphk
21012499Speter/* if the function 'ioctlsocket' is available */
21112499Speter/* #undef HAVE_IOCTLSOCKET */
21212499Speter
21312499Speter/* Define to 1 if you have the <iphlpapi.h> header file. */
21412499Speter/* #undef HAVE_IPHLPAPI_H */
21512499Speter
21612499Speter/* Define to 1 if you have the `isblank' function. */
21712499Speter#define HAVE_ISBLANK 1
21812499Speter
21912499Speter/* Define to 1 if you have the `kill' function. */
22012499Speter#define HAVE_KILL 1
22112499Speter
22212499Speter/* Define if we have LibreSSL */
22312499Speter/* #undef HAVE_LIBRESSL */
22412499Speter
22512499Speter/* Define to 1 if you have the `localtime_r' function. */
2264370Sphk#define HAVE_LOCALTIME_R 1
2274370Sphk
22810358Sjulian/* Define to 1 if you have the <login_cap.h> header file. */
22910358Sjulian#define HAVE_LOGIN_CAP_H 1
2306547Swpaul
2316547Swpaul/* If have GNU libc compatible malloc */
2326547Swpaul#define HAVE_MALLOC 1
2336547Swpaul
2346547Swpaul/* Define to 1 if you have the `memmove' function. */
2356547Swpaul#define HAVE_MEMMOVE 1
2366547Swpaul
2376547Swpaul/* Define to 1 if you have the <memory.h> header file. */
2386547Swpaul#define HAVE_MEMORY_H 1
2395321Sjkh
2403795Sphk/* Define to 1 if you have the <netdb.h> header file. */
2414Srgrimes#define HAVE_NETDB_H 1
24210358Sjulian
2434370Sphk/* Define to 1 if you have the <netinet/in.h> header file. */
24410358Sjulian#define HAVE_NETINET_IN_H 1
24510358Sjulian
24610358Sjulian/* Use libnettle for crypto */
24710358Sjulian/* #undef HAVE_NETTLE */
24810358Sjulian
24910358Sjulian/* Use libnss for crypto */
25010358Sjulian/* #undef HAVE_NSS */
25110358Sjulian
25210358Sjulian/* Define to 1 if you have the `OPENSSL_config' function. */
25310358Sjulian#define HAVE_OPENSSL_CONFIG 1
25410358Sjulian
25510358Sjulian/* Define to 1 if you have the <openssl/conf.h> header file. */
25610358Sjulian#define HAVE_OPENSSL_CONF_H 1
25710358Sjulian
25810358Sjulian/* Define to 1 if you have the <openssl/engine.h> header file. */
2594370Sphk#define HAVE_OPENSSL_ENGINE_H 1
2604370Sphk
2614Srgrimes/* Define to 1 if you have the <openssl/err.h> header file. */
2624Srgrimes#define HAVE_OPENSSL_ERR_H 1
2634Srgrimes
2644Srgrimes/* Define to 1 if you have the <openssl/rand.h> header file. */
2658433Swpaul#define HAVE_OPENSSL_RAND_H 1
2664Srgrimes
2674Srgrimes/* Define to 1 if you have the <openssl/ssl.h> header file. */
2684Srgrimes#define HAVE_OPENSSL_SSL_H 1
26912722Sphk
2708833Sdg/* Define if you have POSIX threads libraries and header files. */
2718833Sdg#define HAVE_PTHREAD 1
2728481Swollman
2738833Sdg/* Have PTHREAD_PRIO_INHERIT. */
2748833Sdg#define HAVE_PTHREAD_PRIO_INHERIT 1
2758833Sdg
2768833Sdg/* Define to 1 if the system has the type `pthread_rwlock_t'. */
2778481Swollman#define HAVE_PTHREAD_RWLOCK_T 1
2788481Swollman
2798833Sdg/* Define to 1 if the system has the type `pthread_spinlock_t'. */
2808481Swollman#define HAVE_PTHREAD_SPINLOCK_T 1
2818833Sdg
2828833Sdg/* Define to 1 if you have the <pwd.h> header file. */
2838833Sdg#define HAVE_PWD_H 1
28412813Sjulian
2858833Sdg/* Define if you have Python libraries and header files. */
28612813Sjulian/* #undef HAVE_PYTHON */
2878833Sdg
2888833Sdg/* Define to 1 if you have the `random' function. */
2898833Sdg#define HAVE_RANDOM 1
2908833Sdg
2918833Sdg/* Define to 1 if you have the `reallocarray' function. */
2928833Sdg/* #undef HAVE_REALLOCARRAY */
2938833Sdg
2948833Sdg/* Define to 1 if you have the `recvmsg' function. */
2958876Srgrimes#define HAVE_RECVMSG 1
2968481Swollman
2978833Sdg/* Define to 1 if you have the `sbrk' function. */
2984Srgrimes/* #undef HAVE_SBRK */
2994Srgrimes
3006105Sse/* Define to 1 if you have the `sendmsg' function. */
3016105Sse#define HAVE_SENDMSG 1
3021289Sache
3036105Sse/* Define to 1 if you have the `setregid' function. */
3046105Sse/* #undef HAVE_SETREGID */
3056105Sse
3064Srgrimes/* Define to 1 if you have the `setresgid' function. */
3074Srgrimes#define HAVE_SETRESGID 1
3084Srgrimes
3094Srgrimes/* Define to 1 if you have the `setresuid' function. */
3101290Sache#define HAVE_SETRESUID 1
3112400Sache
3124Srgrimes/* Define to 1 if you have the `setreuid' function. */
3134Srgrimes/* #undef HAVE_SETREUID */
3144Srgrimes
3154Srgrimes/* Define to 1 if you have the `setrlimit' function. */
3164Srgrimes#define HAVE_SETRLIMIT 1
3174Srgrimes
318798Swollman/* Define to 1 if you have the `setsid' function. */
3194Srgrimes#define HAVE_SETSID 1
3204Srgrimes
3214Srgrimes/* Define to 1 if you have the `setusercontext' function. */
32212417Sphk#define HAVE_SETUSERCONTEXT 1
3234Srgrimes
3244Srgrimes/* Define to 1 if you have the `SHA512_Update' function. */
3254Srgrimes/* #undef HAVE_SHA512_UPDATE */
3264Srgrimes
3274Srgrimes/* Define to 1 if you have the `sigprocmask' function. */
3284Srgrimes#define HAVE_SIGPROCMASK 1
3294Srgrimes
3304Srgrimes/* Define to 1 if you have the `sleep' function. */
3314Srgrimes#define HAVE_SLEEP 1
3324Srgrimes
3331290Sache/* Define to 1 if you have the `snprintf' function. */
3342400Sache#define HAVE_SNPRINTF 1
3351290Sache
3361290Sache/* Define to 1 if you have the `socketpair' function. */
3371290Sache#define HAVE_SOCKETPAIR 1
3381290Sache
3391289Sache/* Using Solaris threads */
3401290Sache/* #undef HAVE_SOLARIS_THREADS */
3414Srgrimes
3424Srgrimes/* Define to 1 if you have the `srandom' function. */
3434Srgrimes#define HAVE_SRANDOM 1
3444Srgrimes
3454Srgrimes/* Define if you have the SSL libraries installed. */
3464Srgrimes#define HAVE_SSL /**/
3474Srgrimes
3484Srgrimes/* Define to 1 if you have the <stdarg.h> header file. */
3494Srgrimes#define HAVE_STDARG_H 1
3504Srgrimes
3511290Sache/* Define to 1 if you have the <stdbool.h> header file. */
3521290Sache#define HAVE_STDBOOL_H 1
3534Srgrimes
35412649Speter/* Define to 1 if you have the <stdint.h> header file. */
35512649Speter#define HAVE_STDINT_H 1
35612649Speter
35712649Speter/* Define to 1 if you have the <stdlib.h> header file. */
35812649Speter#define HAVE_STDLIB_H 1
35912649Speter
36012649Speter/* Define to 1 if you have the `strftime' function. */
36112649Speter#define HAVE_STRFTIME 1
36212649Speter
36312649Speter/* Define to 1 if you have the <strings.h> header file. */
36412649Speter#define HAVE_STRINGS_H 1
36512649Speter
36612649Speter/* Define to 1 if you have the <string.h> header file. */
36712649Speter#define HAVE_STRING_H 1
36812649Speter
36912649Speter/* Define to 1 if you have the `strlcat' function. */
37012649Speter#define HAVE_STRLCAT 1
371
372/* Define to 1 if you have the `strlcpy' function. */
373#define HAVE_STRLCPY 1
374
375/* Define to 1 if you have the `strptime' function. */
376#define HAVE_STRPTIME 1
377
378/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
379/* #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST */
380
381/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
382#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
383
384/* Define if you have Swig libraries and header files. */
385/* #undef HAVE_SWIG */
386
387/* Define to 1 if you have the <syslog.h> header file. */
388#define HAVE_SYSLOG_H 1
389
390/* Define to 1 if you have the <sys/param.h> header file. */
391#define HAVE_SYS_PARAM_H 1
392
393/* Define to 1 if you have the <sys/resource.h> header file. */
394#define HAVE_SYS_RESOURCE_H 1
395
396/* Define to 1 if you have the <sys/sha2.h> header file. */
397/* #undef HAVE_SYS_SHA2_H */
398
399/* Define to 1 if you have the <sys/socket.h> header file. */
400#define HAVE_SYS_SOCKET_H 1
401
402/* Define to 1 if you have the <sys/stat.h> header file. */
403#define HAVE_SYS_STAT_H 1
404
405/* Define to 1 if you have the <sys/sysctl.h> header file. */
406/* #undef HAVE_SYS_SYSCTL_H */
407
408/* Define to 1 if you have the <sys/types.h> header file. */
409#define HAVE_SYS_TYPES_H 1
410
411/* Define to 1 if you have the <sys/uio.h> header file. */
412#define HAVE_SYS_UIO_H 1
413
414/* Define to 1 if you have the <sys/un.h> header file. */
415#define HAVE_SYS_UN_H 1
416
417/* Define to 1 if you have the <sys/wait.h> header file. */
418#define HAVE_SYS_WAIT_H 1
419
420/* Define to 1 if you have the <time.h> header file. */
421#define HAVE_TIME_H 1
422
423/* Define to 1 if you have the `tzset' function. */
424#define HAVE_TZSET 1
425
426/* Define to 1 if you have the <unistd.h> header file. */
427#define HAVE_UNISTD_H 1
428
429/* Define to 1 if you have the `usleep' function. */
430#define HAVE_USLEEP 1
431
432/* Define to 1 if you have the `vfork' function. */
433#define HAVE_VFORK 1
434
435/* Define to 1 if you have the <vfork.h> header file. */
436/* #undef HAVE_VFORK_H */
437
438/* Define to 1 if you have the <windows.h> header file. */
439/* #undef HAVE_WINDOWS_H */
440
441/* Using Windows threads */
442/* #undef HAVE_WINDOWS_THREADS */
443
444/* Define to 1 if you have the <winsock2.h> header file. */
445/* #undef HAVE_WINSOCK2_H */
446
447/* Define to 1 if `fork' works. */
448#define HAVE_WORKING_FORK 1
449
450/* Define to 1 if `vfork' works. */
451#define HAVE_WORKING_VFORK 1
452
453/* Define to 1 if you have the `writev' function. */
454#define HAVE_WRITEV 1
455
456/* Define to 1 if you have the <ws2tcpip.h> header file. */
457/* #undef HAVE_WS2TCPIP_H */
458
459/* Define to 1 if you have the `_beginthreadex' function. */
460/* #undef HAVE__BEGINTHREADEX */
461
462/* if lex has yylex_destroy */
463#define LEX_HAS_YYLEX_DESTROY 1
464
465/* Define to the sub-directory in which libtool stores uninstalled libraries.
466   */
467#define LT_OBJDIR ".libs/"
468
469/* Define to the maximum message length to pass to syslog. */
470#define MAXSYSLOGMSGLEN 10240
471
472/* Define if memcmp() does not compare unsigned bytes */
473/* #undef MEMCMP_IS_BROKEN */
474
475/* Define if mkdir has one argument. */
476/* #undef MKDIR_HAS_ONE_ARG */
477
478/* Define if the network stack does not fully support nonblocking io (causes
479   lower performance). */
480/* #undef NONBLOCKING_IS_BROKEN */
481
482/* Put -D_ALL_SOURCE define in config.h */
483/* #undef OMITTED__D_ALL_SOURCE */
484
485/* Put -D_BSD_SOURCE define in config.h */
486/* #undef OMITTED__D_BSD_SOURCE */
487
488/* Put -D_GNU_SOURCE define in config.h */
489/* #undef OMITTED__D_GNU_SOURCE */
490
491/* Put -D_LARGEFILE_SOURCE=1 define in config.h */
492/* #undef OMITTED__D_LARGEFILE_SOURCE_1 */
493
494/* Put -D_POSIX_C_SOURCE=200112 define in config.h */
495/* #undef OMITTED__D_POSIX_C_SOURCE_200112 */
496
497/* Put -D_XOPEN_SOURCE=600 define in config.h */
498/* #undef OMITTED__D_XOPEN_SOURCE_600 */
499
500/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
501/* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */
502
503/* Put -D__EXTENSIONS__ define in config.h */
504/* #undef OMITTED__D__EXTENSIONS__ */
505
506/* Define to the address where bug reports for this package should be sent. */
507#define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl"
508
509/* Define to the full name of this package. */
510#define PACKAGE_NAME "unbound"
511
512/* Define to the full name and version of this package. */
513#define PACKAGE_STRING "unbound 1.5.7"
514
515/* Define to the one symbol short name of this package. */
516#define PACKAGE_TARNAME "unbound"
517
518/* Define to the home page for this package. */
519#define PACKAGE_URL ""
520
521/* Define to the version of this package. */
522#define PACKAGE_VERSION "1.5.7"
523
524/* default pidfile location */
525#define PIDFILE "/var/unbound/unbound.pid"
526
527/* Define to necessary symbol if this constant uses a non-standard name on
528   your system. */
529/* #undef PTHREAD_CREATE_JOINABLE */
530
531/* Define as the return type of signal handlers (`int' or `void'). */
532#define RETSIGTYPE void
533
534/* default rootkey location */
535#define ROOT_ANCHOR_FILE "/var/unbound/root.key"
536
537/* default rootcert location */
538#define ROOT_CERT_FILE "/var/unbound/icannbundle.pem"
539
540/* version number for resource files */
541#define RSRC_PACKAGE_VERSION 1,5,7,0
542
543/* Directory to chdir to */
544#define RUN_DIR "/var/unbound"
545
546/* Shared data */
547#define SHARE_DIR "/var/unbound"
548
549/* The size of `time_t', as computed by sizeof. */
550#define SIZEOF_TIME_T 8
551
552/* define if (v)snprintf does not return length needed, (but length used) */
553/* #undef SNPRINTF_RET_BROKEN */
554
555/* Define to 1 if you have the ANSI C header files. */
556#define STDC_HEADERS 1
557
558/* use default strptime. */
559#define STRPTIME_WORKS 1
560
561/* Use win32 resources and API */
562/* #undef UB_ON_WINDOWS */
563
564/* default username */
565#define UB_USERNAME "unbound"
566
567/* use to enable lightweight alloc assertions, for debug use */
568/* #undef UNBOUND_ALLOC_LITE */
569
570/* use malloc not regions, for debug use */
571/* #undef UNBOUND_ALLOC_NONREGIONAL */
572
573/* use statistics for allocs and frees, for debug use */
574/* #undef UNBOUND_ALLOC_STATS */
575
576/* define this to enable debug checks. */
577/* #undef UNBOUND_DEBUG */
578
579/* Define to 1 to enable dnstap support */
580/* #undef USE_DNSTAP */
581
582/* Define this to enable ECDSA support. */
583#define USE_ECDSA 1
584
585/* Define this to enable an EVP workaround for older openssl */
586/* #undef USE_ECDSA_EVP_WORKAROUND */
587
588/* Define this to enable GOST support. */
589#define USE_GOST 1
590
591/* Define if you want to use internal select based events */
592#define USE_MINI_EVENT 1
593
594/* Define this to enable SHA256 and SHA512 support. */
595#define USE_SHA2 1
596
597/* Enable extensions on AIX 3, Interix.  */
598#ifndef _ALL_SOURCE
599# define _ALL_SOURCE 1
600#endif
601/* Enable GNU extensions on systems that have them.  */
602#ifndef _GNU_SOURCE
603# define _GNU_SOURCE 1
604#endif
605/* Enable threading extensions on Solaris.  */
606#ifndef _POSIX_PTHREAD_SEMANTICS
607# define _POSIX_PTHREAD_SEMANTICS 1
608#endif
609/* Enable extensions on HP NonStop.  */
610#ifndef _TANDEM_SOURCE
611# define _TANDEM_SOURCE 1
612#endif
613/* Enable general extensions on Solaris.  */
614#ifndef __EXTENSIONS__
615# define __EXTENSIONS__ 1
616#endif
617
618
619/* Whether the windows socket API is used */
620/* #undef USE_WINSOCK */
621
622/* the version of the windows API enabled */
623#define WINVER 0x0502
624
625/* Define if you want Python module. */
626/* #undef WITH_PYTHONMODULE */
627
628/* Define if you want PyUnbound. */
629/* #undef WITH_PYUNBOUND */
630
631/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
632   `char[]'. */
633#define YYTEXT_POINTER 1
634
635/* Enable large inode numbers on Mac OS X 10.5.  */
636#ifndef _DARWIN_USE_64_BIT_INODE
637# define _DARWIN_USE_64_BIT_INODE 1
638#endif
639
640/* Number of bits in a file offset, on hosts where this is settable. */
641/* #undef _FILE_OFFSET_BITS */
642
643/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
644/* #undef _LARGEFILE_SOURCE */
645
646/* Define for large files, on AIX-style hosts. */
647/* #undef _LARGE_FILES */
648
649/* Define to 1 if on MINIX. */
650/* #undef _MINIX */
651
652/* Enable for compile on Minix */
653/* #undef _NETBSD_SOURCE */
654
655/* Define to 2 if the system does not provide POSIX.1 features except with
656   this defined. */
657/* #undef _POSIX_1_SOURCE */
658
659/* Define to 1 if you need to in order for `stat' and other things to work. */
660/* #undef _POSIX_SOURCE */
661
662/* Define to empty if `const' does not conform to ANSI C. */
663/* #undef const */
664
665/* Define to `int' if <sys/types.h> doesn't define. */
666/* #undef gid_t */
667
668/* in_addr_t */
669/* #undef in_addr_t */
670
671/* in_port_t */
672/* #undef in_port_t */
673
674/* Define to `__inline__' or `__inline' if that's what the C compiler
675   calls it, or to nothing if 'inline' is not supported under any name.  */
676#ifndef __cplusplus
677/* #undef inline */
678#endif
679
680/* Define to `short' if <sys/types.h> does not define. */
681/* #undef int16_t */
682
683/* Define to `int' if <sys/types.h> does not define. */
684/* #undef int32_t */
685
686/* Define to `long long' if <sys/types.h> does not define. */
687/* #undef int64_t */
688
689/* Define to `signed char' if <sys/types.h> does not define. */
690/* #undef int8_t */
691
692/* Define if replacement function should be used. */
693/* #undef malloc */
694
695/* Define to `long int' if <sys/types.h> does not define. */
696/* #undef off_t */
697
698/* Define to `int' if <sys/types.h> does not define. */
699/* #undef pid_t */
700
701/* Define to 'int' if not defined */
702/* #undef rlim_t */
703
704/* Define to `unsigned int' if <sys/types.h> does not define. */
705/* #undef size_t */
706
707/* Define to 'int' if not defined */
708/* #undef socklen_t */
709
710/* Define to `int' if <sys/types.h> does not define. */
711/* #undef ssize_t */
712
713/* Define to 'unsigned char if not defined */
714/* #undef u_char */
715
716/* Define to `int' if <sys/types.h> doesn't define. */
717/* #undef uid_t */
718
719/* Define to `unsigned short' if <sys/types.h> does not define. */
720/* #undef uint16_t */
721
722/* Define to `unsigned int' if <sys/types.h> does not define. */
723/* #undef uint32_t */
724
725/* Define to `unsigned long long' if <sys/types.h> does not define. */
726/* #undef uint64_t */
727
728/* Define to `unsigned char' if <sys/types.h> does not define. */
729/* #undef uint8_t */
730
731/* Define as `fork' if `vfork' does not work. */
732/* #undef vfork */
733
734#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
735#define _GNU_SOURCE 1
736#endif
737
738#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
739#define _BSD_SOURCE 1
740#endif
741
742#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
743#define __EXTENSIONS__ 1
744#endif
745
746#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
747#define _POSIX_C_SOURCE 200112
748#endif
749
750#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
751#define _XOPEN_SOURCE 600
752#endif
753
754#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
755#define _XOPEN_SOURCE_EXTENDED 1
756#endif
757
758#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
759#define _ALL_SOURCE 1
760#endif
761
762#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
763#define _LARGEFILE_SOURCE 1
764#endif
765
766
767
768
769#ifndef UNBOUND_DEBUG
770#  define NDEBUG
771#endif
772
773/** Use small-ldns codebase */
774#define USE_SLDNS 1
775#ifdef HAVE_SSL
776#  define LDNS_BUILD_CONFIG_HAVE_SSL 1
777#endif
778
779#include <stdio.h>
780#include <string.h>
781#include <unistd.h>
782#include <assert.h>
783
784#if STDC_HEADERS
785#include <stdlib.h>
786#include <stddef.h>
787#endif
788
789#ifdef HAVE_STDARG_H
790#include <stdarg.h>
791#endif
792
793#ifdef HAVE_STDINT_H
794#include <stdint.h>
795#endif
796
797#include <errno.h>
798
799#if HAVE_SYS_PARAM_H
800#include <sys/param.h>
801#endif
802
803#ifdef HAVE_SYS_SOCKET_H
804#include <sys/socket.h>
805#endif
806
807#ifdef HAVE_SYS_UIO_H
808#include <sys/uio.h>
809#endif
810
811#ifdef HAVE_NETINET_IN_H
812#include <netinet/in.h>
813#endif
814
815#ifdef HAVE_ARPA_INET_H
816#include <arpa/inet.h>
817#endif
818
819#ifdef HAVE_WINSOCK2_H
820#include <winsock2.h>
821#endif
822
823#ifdef HAVE_WS2TCPIP_H
824#include <ws2tcpip.h>
825#endif
826
827#ifndef USE_WINSOCK
828#define ARG_LL "%ll"
829#else
830#define ARG_LL "%I64"
831#endif
832
833#ifndef AF_LOCAL
834#define AF_LOCAL AF_UNIX
835#endif
836
837
838
839#ifdef HAVE_ATTR_FORMAT
840#  define ATTR_FORMAT(archetype, string_index, first_to_check) \
841    __attribute__ ((format (archetype, string_index, first_to_check)))
842#else /* !HAVE_ATTR_FORMAT */
843#  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
844#endif /* !HAVE_ATTR_FORMAT */
845
846
847#if defined(DOXYGEN)
848#  define ATTR_UNUSED(x)  x
849#elif defined(__cplusplus)
850#  define ATTR_UNUSED(x)
851#elif defined(HAVE_ATTR_UNUSED)
852#  define ATTR_UNUSED(x)  x __attribute__((unused))
853#else /* !HAVE_ATTR_UNUSED */
854#  define ATTR_UNUSED(x)  x
855#endif /* !HAVE_ATTR_UNUSED */
856
857
858#ifndef HAVE_FSEEKO
859#define fseeko fseek
860#define ftello ftell
861#endif /* HAVE_FSEEKO */
862
863
864#ifndef MAXHOSTNAMELEN
865#define MAXHOSTNAMELEN 256
866#endif
867
868#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
869#define snprintf snprintf_unbound
870#define vsnprintf vsnprintf_unbound
871#include <stdarg.h>
872int snprintf (char *str, size_t count, const char *fmt, ...);
873int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
874#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
875
876#ifndef HAVE_INET_PTON
877#define inet_pton inet_pton_unbound
878int inet_pton(int af, const char* src, void* dst);
879#endif /* HAVE_INET_PTON */
880
881
882#ifndef HAVE_INET_NTOP
883#define inet_ntop inet_ntop_unbound
884const char *inet_ntop(int af, const void *src, char *dst, size_t size);
885#endif
886
887
888#ifndef HAVE_INET_ATON
889#define inet_aton inet_aton_unbound
890int inet_aton(const char *cp, struct in_addr *addr);
891#endif
892
893
894#ifndef HAVE_MEMMOVE
895#define memmove memmove_unbound
896void *memmove(void *dest, const void *src, size_t n);
897#endif
898
899
900#ifndef HAVE_STRLCAT
901#define strlcat strlcat_unbound
902size_t strlcat(char *dst, const char *src, size_t siz);
903#endif
904
905
906#ifndef HAVE_STRLCPY
907#define strlcpy strlcpy_unbound
908size_t strlcpy(char *dst, const char *src, size_t siz);
909#endif
910
911
912#ifndef HAVE_GMTIME_R
913#define gmtime_r gmtime_r_unbound
914struct tm *gmtime_r(const time_t *timep, struct tm *result);
915#endif
916
917
918#ifndef HAVE_REALLOCARRAY
919#define reallocarray reallocarrayunbound
920void* reallocarray(void *ptr, size_t nmemb, size_t size);
921#endif
922
923
924#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
925#define sleep(x) Sleep((x)*1000) /* on win32 */
926#endif /* HAVE_SLEEP */
927
928
929#ifndef HAVE_USLEEP
930#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
931#endif /* HAVE_USLEEP */
932
933
934#ifndef HAVE_RANDOM
935#define random rand /* on win32, for tests only (bad random) */
936#endif /* HAVE_RANDOM */
937
938
939#ifndef HAVE_SRANDOM
940#define srandom(x) srand(x) /* on win32, for tests only (bad random) */
941#endif /* HAVE_SRANDOM */
942
943
944/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
945#ifdef HAVE_WINSOCK2_H
946#define FD_SET_T (u_int)
947#else
948#define FD_SET_T
949#endif
950
951
952#ifndef IPV6_MIN_MTU
953#define IPV6_MIN_MTU 1280
954#endif /* IPV6_MIN_MTU */
955
956
957#ifdef MEMCMP_IS_BROKEN
958#include "compat/memcmp.h"
959#define memcmp memcmp_unbound
960int memcmp(const void *x, const void *y, size_t n);
961#endif
962
963
964
965#ifndef HAVE_CTIME_R
966#define ctime_r unbound_ctime_r
967char *ctime_r(const time_t *timep, char *buf);
968#endif
969
970#ifndef HAVE_ISBLANK
971#define isblank unbound_isblank
972int isblank(int c);
973#endif
974
975#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
976#define strptime unbound_strptime
977struct tm;
978char *strptime(const char *s, const char *format, struct tm *tm);
979#endif
980
981#ifdef HAVE_LIBRESSL
982#  if !HAVE_DECL_STRLCPY
983size_t strlcpy(char *dst, const char *src, size_t siz);
984#  endif
985#  if !HAVE_DECL_STRLCAT
986size_t strlcat(char *dst, const char *src, size_t siz);
987#  endif
988#  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
989uint32_t arc4random(void);
990#  endif
991#  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
992uint32_t arc4random_uniform(uint32_t upper_bound);
993#  endif
994#  if !HAVE_DECL_REALLOCARRAY
995void *reallocarray(void *ptr, size_t nmemb, size_t size);
996#  endif
997#endif /* HAVE_LIBRESSL */
998#ifndef HAVE_ARC4RANDOM
999void explicit_bzero(void* buf, size_t len);
1000int getentropy(void* buf, size_t len);
1001uint32_t arc4random(void);
1002void arc4random_buf(void* buf, size_t n);
1003void _ARC4_LOCK(void);
1004void _ARC4_UNLOCK(void);
1005#endif
1006#ifndef HAVE_ARC4RANDOM_UNIFORM
1007uint32_t arc4random_uniform(uint32_t upper_bound);
1008#endif
1009#ifdef COMPAT_SHA512
1010#ifndef SHA512_DIGEST_LENGTH
1011#define SHA512_BLOCK_LENGTH		128
1012#define SHA512_DIGEST_LENGTH		64
1013#define SHA512_DIGEST_STRING_LENGTH	(SHA512_DIGEST_LENGTH * 2 + 1)
1014typedef struct _SHA512_CTX {
1015	uint64_t	state[8];
1016	uint64_t	bitcount[2];
1017	uint8_t	buffer[SHA512_BLOCK_LENGTH];
1018} SHA512_CTX;
1019#endif /* SHA512_DIGEST_LENGTH */
1020void SHA512_Init(SHA512_CTX*);
1021void SHA512_Update(SHA512_CTX*, void*, size_t);
1022void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1023unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1024#endif /* COMPAT_SHA512 */
1025
1026
1027
1028#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))
1029   /* using version of libevent that is not threadsafe. */
1030#  define LIBEVENT_SIGNAL_PROBLEM 1
1031#endif
1032
1033#ifndef CHECKED_INET6
1034#  define CHECKED_INET6
1035#  ifdef AF_INET6
1036#    define INET6
1037#  else
1038#    define AF_INET6        28
1039#  endif
1040#endif /* CHECKED_INET6 */
1041
1042#ifndef HAVE_GETADDRINFO
1043struct sockaddr_storage;
1044#include "compat/fake-rfc2553.h"
1045#endif
1046
1047#ifdef UNBOUND_ALLOC_STATS
1048#  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1049#  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1050#  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1051#  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1052void *unbound_stat_malloc(size_t size);
1053void *unbound_stat_calloc(size_t nmemb, size_t size);
1054void unbound_stat_free(void *ptr);
1055void *unbound_stat_realloc(void *ptr, size_t size);
1056void *unbound_stat_malloc_log(size_t size, const char* file, int line,
1057	const char* func);
1058void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1059	int line, const char* func);
1060void unbound_stat_free_log(void *ptr, const char* file, int line,
1061	const char* func);
1062void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1063	int line, const char* func);
1064#elif defined(UNBOUND_ALLOC_LITE)
1065#  include "util/alloc.h"
1066#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1067
1068/** default port for DNS traffic. */
1069#define UNBOUND_DNS_PORT 53
1070/** default port for unbound control traffic, registered port with IANA,
1071    ub-dns-control  8953/tcp    unbound dns nameserver control */
1072#define UNBOUND_CONTROL_PORT 8953
1073/** the version of unbound-control that this software implements */
1074#define UNBOUND_CONTROL_VERSION 1
1075
1076
1077