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