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