xref: /openbsd/usr.sbin/unbound/config.h.in (revision a3167c07)
1933707f3Ssthen/* config.h.in.  Generated from configure.ac by autoheader.  */
2933707f3Ssthen
3452a1548Ssthen/* apply the noreturn attribute to a function that exits the program */
4452a1548Ssthen#undef ATTR_NORETURN
5452a1548Ssthen
6452a1548Ssthen/* apply the weak attribute to a symbol */
7452a1548Ssthen#undef ATTR_WEAK
8452a1548Ssthen
9933707f3Ssthen/* Directory to chroot to */
10933707f3Ssthen#undef CHROOT_DIR
11933707f3Ssthen
122be9e038Ssthen/* Define this to enable client subnet option. */
132be9e038Ssthen#undef CLIENT_SUBNET
142be9e038Ssthen
1598f3ca02Sbrad/* Do sha512 definitions in config.h */
1698f3ca02Sbrad#undef COMPAT_SHA512
1798f3ca02Sbrad
188240c1b9Ssthen/* Command line arguments used with configure */
198240c1b9Ssthen#undef CONFCMDLINE
208240c1b9Ssthen
21933707f3Ssthen/* Pathname to the Unbound configuration file */
22933707f3Ssthen#undef CONFIGFILE
23933707f3Ssthen
24933707f3Ssthen/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
25933707f3Ssthen   */
26933707f3Ssthen#undef DARWIN_BROKEN_SETREUID
27933707f3Ssthen
28933707f3Ssthen/* Whether daemon is deprecated */
29933707f3Ssthen#undef DEPRECATED_DAEMON
30933707f3Ssthen
31*a3167c07Ssthen/* Define this to enable kernel based UDP source port randomization. */
32*a3167c07Ssthen#undef DISABLE_EXPLICIT_PORT_RANDOMISATION
33*a3167c07Ssthen
3498f3ca02Sbrad/* default dnstap socket path */
3598f3ca02Sbrad#undef DNSTAP_SOCKET_PATH
3698f3ca02Sbrad
37933707f3Ssthen/* Define if you want to use debug lock checking (slow). */
38933707f3Ssthen#undef ENABLE_LOCK_CHECKS
39933707f3Ssthen
40933707f3Ssthen/* Define this if you enabled-allsymbols from libunbound to link binaries to
41933707f3Ssthen   it for smaller install size, but the libunbound export table is polluted by
42933707f3Ssthen   internal symbols */
43933707f3Ssthen#undef EXPORT_ALL_SYMBOLS
44933707f3Ssthen
4520237c55Ssthen/* Define to 1 if you have the `accept4' function. */
4620237c55Ssthen#undef HAVE_ACCEPT4
4720237c55Ssthen
4898f3ca02Sbrad/* Define to 1 if you have the `arc4random' function. */
4998f3ca02Sbrad#undef HAVE_ARC4RANDOM
5098f3ca02Sbrad
5198f3ca02Sbrad/* Define to 1 if you have the `arc4random_uniform' function. */
5298f3ca02Sbrad#undef HAVE_ARC4RANDOM_UNIFORM
5398f3ca02Sbrad
54933707f3Ssthen/* Define to 1 if you have the <arpa/inet.h> header file. */
55933707f3Ssthen#undef HAVE_ARPA_INET_H
56933707f3Ssthen
57933707f3Ssthen/* Whether the C compiler accepts the "format" attribute */
58933707f3Ssthen#undef HAVE_ATTR_FORMAT
59933707f3Ssthen
60452a1548Ssthen/* Whether the C compiler accepts the "noreturn" attribute */
61452a1548Ssthen#undef HAVE_ATTR_NORETURN
62452a1548Ssthen
63933707f3Ssthen/* Whether the C compiler accepts the "unused" attribute */
64933707f3Ssthen#undef HAVE_ATTR_UNUSED
65933707f3Ssthen
662ee382b6Ssthen/* Whether the C compiler accepts the "weak" attribute */
672ee382b6Ssthen#undef HAVE_ATTR_WEAK
682ee382b6Ssthen
69eaf2578eSsthen/* If we have be64toh */
70eaf2578eSsthen#undef HAVE_BE64TOH
71eaf2578eSsthen
72eaf2578eSsthen/* Define to 1 if you have the <bsd/stdlib.h> header file. */
73eaf2578eSsthen#undef HAVE_BSD_STDLIB_H
74eaf2578eSsthen
75eaf2578eSsthen/* Define to 1 if you have the <bsd/string.h> header file. */
76eaf2578eSsthen#undef HAVE_BSD_STRING_H
77eaf2578eSsthen
78b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */
79933707f3Ssthen#undef HAVE_CHOWN
80933707f3Ssthen
81933707f3Ssthen/* Define to 1 if you have the `chroot' function. */
82933707f3Ssthen#undef HAVE_CHROOT
83933707f3Ssthen
8477079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
8577079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
8677079be7Ssthen
87c3b38330Ssthen/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
88c3b38330Ssthen#undef HAVE_CRYPTO_THREADID_SET_CALLBACK
89c3b38330Ssthen
90933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */
91933707f3Ssthen#undef HAVE_CTIME_R
92933707f3Ssthen
93933707f3Ssthen/* Define to 1 if you have the `daemon' function. */
94933707f3Ssthen#undef HAVE_DAEMON
95933707f3Ssthen
9698f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
9798f3ca02Sbrad   don't. */
9898f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM
9998f3ca02Sbrad
10098f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
10198f3ca02Sbrad   if you don't. */
10298f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM
10398f3ca02Sbrad
104550cf4a9Ssthen/* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if
105550cf4a9Ssthen   you don't. */
106550cf4a9Ssthen#undef HAVE_DECL_EVSIGNAL_ASSIGN
107550cf4a9Ssthen
10877079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
10977079be7Ssthen   don't. */
11077079be7Ssthen#undef HAVE_DECL_INET_NTOP
11177079be7Ssthen
11277079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
11377079be7Ssthen   don't. */
11477079be7Ssthen#undef HAVE_DECL_INET_PTON
11577079be7Ssthen
1162be9e038Ssthen/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
1172be9e038Ssthen   don't. */
1182be9e038Ssthen#undef HAVE_DECL_NID_ED25519
1192be9e038Ssthen
12020237c55Ssthen/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
12120237c55Ssthen   don't. */
12220237c55Ssthen#undef HAVE_DECL_NID_ED448
12320237c55Ssthen
124d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
125d8d14d0cSsthen   don't. */
126d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1
127d8d14d0cSsthen
128d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
129d8d14d0cSsthen   if you don't. */
130d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1
131d8d14d0cSsthen
132fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
133fdfb4ba6Ssthen   don't. */
134fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY
135fdfb4ba6Ssthen
13620237c55Ssthen/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
13720237c55Ssthen   don't. */
13820237c55Ssthen#undef HAVE_DECL_REDISCONNECT
13920237c55Ssthen
140933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
141933707f3Ssthen   if you don't. */
142933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE
143933707f3Ssthen
144933707f3Ssthen/* Define to 1 if you have the declaration of
145933707f3Ssthen   `SSL_COMP_get_compression_methods', and to 0 if you don't. */
146933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
147933707f3Ssthen
148a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
149a961b961Ssthen   0 if you don't. */
150a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
151a961b961Ssthen
15298f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you
15398f3ca02Sbrad   don't. */
15498f3ca02Sbrad#undef HAVE_DECL_STRLCAT
15598f3ca02Sbrad
15698f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
15798f3ca02Sbrad   don't. */
15898f3ca02Sbrad#undef HAVE_DECL_STRLCPY
15998f3ca02Sbrad
16024893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
16124893edcSsthen   you don't. */
16224893edcSsthen#undef HAVE_DECL_XML_STOPPARSER
16324893edcSsthen
164933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */
165933707f3Ssthen#undef HAVE_DLFCN_H
166933707f3Ssthen
16777079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */
16877079be7Ssthen#undef HAVE_DSA_SIG_SET0
16977079be7Ssthen
17098f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */
17198f3ca02Sbrad#undef HAVE_ENDIAN_H
17298f3ca02Sbrad
1735d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */
1745d76a658Ssthen#undef HAVE_ENDPROTOENT
1755d76a658Ssthen
17677079be7Ssthen/* Define to 1 if you have the `endpwent' function. */
17777079be7Ssthen#undef HAVE_ENDPWENT
17877079be7Ssthen
1795d76a658Ssthen/* Define to 1 if you have the `endservent' function. */
1805d76a658Ssthen#undef HAVE_ENDSERVENT
1815d76a658Ssthen
182*a3167c07Ssthen/* Define to 1 if you have the `ENGINE_cleanup' function. */
183*a3167c07Ssthen#undef HAVE_ENGINE_CLEANUP
184*a3167c07Ssthen
18577079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */
18677079be7Ssthen#undef HAVE_ERR_FREE_STRINGS
18777079be7Ssthen
18877079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */
18977079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS
19077079be7Ssthen
191550cf4a9Ssthen/* Define to 1 if you have the `event_assign' function. */
192550cf4a9Ssthen#undef HAVE_EVENT_ASSIGN
193550cf4a9Ssthen
194933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */
195933707f3Ssthen#undef HAVE_EVENT_BASE_FREE
196933707f3Ssthen
197933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */
198933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD
199933707f3Ssthen
200933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */
201933707f3Ssthen#undef HAVE_EVENT_BASE_NEW
202933707f3Ssthen
203933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */
204933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE
205933707f3Ssthen
206933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */
207933707f3Ssthen#undef HAVE_EVENT_H
208933707f3Ssthen
209f6b99bafSsthen/* Define to 1 if you have the `EVP_aes_256_cbc' function. */
210f6b99bafSsthen#undef HAVE_EVP_AES_256_CBC
211f6b99bafSsthen
21277079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */
21377079be7Ssthen#undef HAVE_EVP_CLEANUP
21477079be7Ssthen
2152be9e038Ssthen/* Define to 1 if you have the `EVP_DigestVerify' function. */
2162be9e038Ssthen#undef HAVE_EVP_DIGESTVERIFY
2172be9e038Ssthen
21877079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */
21977079be7Ssthen#undef HAVE_EVP_DSS1
22077079be7Ssthen
221f6b99bafSsthen/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
222f6b99bafSsthen#undef HAVE_EVP_ENCRYPTINIT_EX
223f6b99bafSsthen
2242ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */
2252ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW
2262ee382b6Ssthen
227933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */
228933707f3Ssthen#undef HAVE_EVP_SHA1
229933707f3Ssthen
230933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */
231933707f3Ssthen#undef HAVE_EVP_SHA256
232933707f3Ssthen
233933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */
234933707f3Ssthen#undef HAVE_EVP_SHA512
235933707f3Ssthen
236933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */
237933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP
238933707f3Ssthen
239933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */
240933707f3Ssthen#undef HAVE_EV_LOOP
241933707f3Ssthen
242933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */
243933707f3Ssthen#undef HAVE_EXPAT_H
244933707f3Ssthen
245452a1548Ssthen/* Define to 1 if you have the `explicit_bzero' function. */
246452a1548Ssthen#undef HAVE_EXPLICIT_BZERO
247452a1548Ssthen
248933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */
249933707f3Ssthen#undef HAVE_FCNTL
250933707f3Ssthen
2513dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */
2523dcb24b8Ssthen#undef HAVE_FIPS_MODE
2533dcb24b8Ssthen
254933707f3Ssthen/* Define to 1 if you have the `fork' function. */
255933707f3Ssthen#undef HAVE_FORK
256933707f3Ssthen
257933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
258933707f3Ssthen#undef HAVE_FSEEKO
259933707f3Ssthen
26024893edcSsthen/* Define to 1 if you have the `fsync' function. */
26124893edcSsthen#undef HAVE_FSYNC
26224893edcSsthen
263933707f3Ssthen/* Whether getaddrinfo is available */
264933707f3Ssthen#undef HAVE_GETADDRINFO
265933707f3Ssthen
266b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */
267b2cdf21fSsthen#undef HAVE_GETAUXVAL
268b2cdf21fSsthen
26998f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */
27098f3ca02Sbrad#undef HAVE_GETENTROPY
27198f3ca02Sbrad
272933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */
273933707f3Ssthen#undef HAVE_GETOPT_H
274933707f3Ssthen
275933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */
276933707f3Ssthen#undef HAVE_GETPWNAM
277933707f3Ssthen
278933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */
279933707f3Ssthen#undef HAVE_GETRLIMIT
280933707f3Ssthen
281933707f3Ssthen/* Define to 1 if you have the `glob' function. */
282933707f3Ssthen#undef HAVE_GLOB
283933707f3Ssthen
284933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */
285933707f3Ssthen#undef HAVE_GLOB_H
286933707f3Ssthen
287933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */
288933707f3Ssthen#undef HAVE_GMTIME_R
289933707f3Ssthen
290933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */
291933707f3Ssthen#undef HAVE_GRP_H
292933707f3Ssthen
29320237c55Ssthen/* Define to 1 if you have the <hiredis/hiredis.h> header file. */
29420237c55Ssthen#undef HAVE_HIREDIS_HIREDIS_H
29520237c55Ssthen
296f6b99bafSsthen/* Define to 1 if you have the `HMAC_Init_ex' function. */
297f6b99bafSsthen#undef HAVE_HMAC_INIT_EX
298f6b99bafSsthen
2992ee382b6Ssthen/* If you have HMAC_Update */
3002ee382b6Ssthen#undef HAVE_HMAC_UPDATE
301933707f3Ssthen
302eaf2578eSsthen/* If we have htobe64 */
303eaf2578eSsthen#undef HAVE_HTOBE64
304eaf2578eSsthen
305933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */
306933707f3Ssthen#undef HAVE_INET_ATON
307933707f3Ssthen
308933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */
309933707f3Ssthen#undef HAVE_INET_NTOP
310933707f3Ssthen
311933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */
312933707f3Ssthen#undef HAVE_INET_PTON
313933707f3Ssthen
314933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */
315933707f3Ssthen#undef HAVE_INITGROUPS
316933707f3Ssthen
317933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */
318933707f3Ssthen#undef HAVE_INTTYPES_H
319933707f3Ssthen
320933707f3Ssthen/* if the function 'ioctlsocket' is available */
321933707f3Ssthen#undef HAVE_IOCTLSOCKET
322933707f3Ssthen
323933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */
324933707f3Ssthen#undef HAVE_IPHLPAPI_H
325933707f3Ssthen
32624893edcSsthen/* Define to 1 if you have the `isblank' function. */
32724893edcSsthen#undef HAVE_ISBLANK
32824893edcSsthen
329933707f3Ssthen/* Define to 1 if you have the `kill' function. */
330933707f3Ssthen#undef HAVE_KILL
331933707f3Ssthen
332eaf2578eSsthen/* Use portable libbsd functions */
333eaf2578eSsthen#undef HAVE_LIBBSD
334eaf2578eSsthen
33520237c55Ssthen/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
33620237c55Ssthen#undef HAVE_LIBKERN_OSBYTEORDER_H
33720237c55Ssthen
33898f3ca02Sbrad/* Define if we have LibreSSL */
33998f3ca02Sbrad#undef HAVE_LIBRESSL
34098f3ca02Sbrad
341933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */
342933707f3Ssthen#undef HAVE_LOCALTIME_R
343933707f3Ssthen
344933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */
345933707f3Ssthen#undef HAVE_LOGIN_CAP_H
346933707f3Ssthen
347933707f3Ssthen/* If have GNU libc compatible malloc */
348933707f3Ssthen#undef HAVE_MALLOC
349933707f3Ssthen
350933707f3Ssthen/* Define to 1 if you have the `memmove' function. */
351933707f3Ssthen#undef HAVE_MEMMOVE
352933707f3Ssthen
353933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */
354933707f3Ssthen#undef HAVE_MEMORY_H
355933707f3Ssthen
356933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */
357933707f3Ssthen#undef HAVE_NETDB_H
358933707f3Ssthen
359933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */
360933707f3Ssthen#undef HAVE_NETINET_IN_H
361933707f3Ssthen
36232e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */
36332e31f52Ssthen#undef HAVE_NETINET_TCP_H
36432e31f52Ssthen
36524893edcSsthen/* Use libnettle for crypto */
36624893edcSsthen#undef HAVE_NETTLE
36724893edcSsthen
36877079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
36977079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H
37077079be7Ssthen
3717191de28Ssthen/* Define to 1 if you have the <nettle/eddsa.h> header file. */
3727191de28Ssthen#undef HAVE_NETTLE_EDDSA_H
3737191de28Ssthen
3743dcb24b8Ssthen/* Use libnss for crypto */
3753dcb24b8Ssthen#undef HAVE_NSS
3763dcb24b8Ssthen
37777079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
37877079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS
37977079be7Ssthen
38077079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */
38177079be7Ssthen#undef HAVE_OPENSSL_BN_H
38277079be7Ssthen
383933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */
384933707f3Ssthen#undef HAVE_OPENSSL_CONFIG
385933707f3Ssthen
386933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */
387933707f3Ssthen#undef HAVE_OPENSSL_CONF_H
388933707f3Ssthen
389*a3167c07Ssthen/* Define to 1 if you have the <openssl/core_names.h> header file. */
390*a3167c07Ssthen#undef HAVE_OPENSSL_CORE_NAMES_H
391*a3167c07Ssthen
39277079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */
39377079be7Ssthen#undef HAVE_OPENSSL_DH_H
39477079be7Ssthen
39577079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */
39677079be7Ssthen#undef HAVE_OPENSSL_DSA_H
39777079be7Ssthen
398933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */
399933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H
400933707f3Ssthen
401933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */
402933707f3Ssthen#undef HAVE_OPENSSL_ERR_H
403933707f3Ssthen
40477079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */
40577079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO
40677079be7Ssthen
40777079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */
40877079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL
40977079be7Ssthen
410933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */
411933707f3Ssthen#undef HAVE_OPENSSL_RAND_H
412933707f3Ssthen
41377079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */
41477079be7Ssthen#undef HAVE_OPENSSL_RSA_H
41577079be7Ssthen
416933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */
417933707f3Ssthen#undef HAVE_OPENSSL_SSL_H
418933707f3Ssthen
419933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */
420933707f3Ssthen#undef HAVE_PTHREAD
421933707f3Ssthen
422229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */
423229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT
424229e174cSsthen
425933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */
426933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T
427933707f3Ssthen
428933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */
429933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T
430933707f3Ssthen
431933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */
432933707f3Ssthen#undef HAVE_PWD_H
433933707f3Ssthen
434933707f3Ssthen/* Define if you have Python libraries and header files. */
435933707f3Ssthen#undef HAVE_PYTHON
436933707f3Ssthen
437933707f3Ssthen/* Define to 1 if you have the `random' function. */
438933707f3Ssthen#undef HAVE_RANDOM
439933707f3Ssthen
44077079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */
44177079be7Ssthen#undef HAVE_RAND_CLEANUP
44277079be7Ssthen
443550cf4a9Ssthen/* If we have reallocarray(3) */
444fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY
445fdfb4ba6Ssthen
446933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */
447933707f3Ssthen#undef HAVE_RECVMSG
448933707f3Ssthen
449933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */
450933707f3Ssthen#undef HAVE_SENDMSG
451933707f3Ssthen
452933707f3Ssthen/* Define to 1 if you have the `setregid' function. */
453933707f3Ssthen#undef HAVE_SETREGID
454933707f3Ssthen
455933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */
456933707f3Ssthen#undef HAVE_SETRESGID
457933707f3Ssthen
458933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */
459933707f3Ssthen#undef HAVE_SETRESUID
460933707f3Ssthen
461933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */
462933707f3Ssthen#undef HAVE_SETREUID
463933707f3Ssthen
464933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */
465933707f3Ssthen#undef HAVE_SETRLIMIT
466933707f3Ssthen
467933707f3Ssthen/* Define to 1 if you have the `setsid' function. */
468933707f3Ssthen#undef HAVE_SETSID
469933707f3Ssthen
470933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */
471933707f3Ssthen#undef HAVE_SETUSERCONTEXT
472933707f3Ssthen
47398f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */
47498f3ca02Sbrad#undef HAVE_SHA512_UPDATE
47598f3ca02Sbrad
4762be9e038Ssthen/* Define to 1 if you have the `shmget' function. */
4772be9e038Ssthen#undef HAVE_SHMGET
4782be9e038Ssthen
479933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */
480933707f3Ssthen#undef HAVE_SIGPROCMASK
481933707f3Ssthen
482933707f3Ssthen/* Define to 1 if you have the `sleep' function. */
483933707f3Ssthen#undef HAVE_SLEEP
484933707f3Ssthen
485933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */
486933707f3Ssthen#undef HAVE_SNPRINTF
487933707f3Ssthen
488933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */
489933707f3Ssthen#undef HAVE_SOCKETPAIR
490933707f3Ssthen
491933707f3Ssthen/* Using Solaris threads */
492933707f3Ssthen#undef HAVE_SOLARIS_THREADS
493933707f3Ssthen
494933707f3Ssthen/* Define to 1 if you have the `srandom' function. */
495933707f3Ssthen#undef HAVE_SRANDOM
496933707f3Ssthen
497933707f3Ssthen/* Define if you have the SSL libraries installed. */
498933707f3Ssthen#undef HAVE_SSL
499933707f3Ssthen
500f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
501f6b99bafSsthen#undef HAVE_SSL_CTX_SET_CIPHERSUITES
502f6b99bafSsthen
50377079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
50477079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL
50577079be7Ssthen
506*a3167c07Ssthen/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb'
507*a3167c07Ssthen   function. */
508*a3167c07Ssthen#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
509f6b99bafSsthen
510938a3a5eSflorian/* Define to 1 if you have the `SSL_get0_peername' function. */
511938a3a5eSflorian#undef HAVE_SSL_GET0_PEERNAME
512938a3a5eSflorian
513938a3a5eSflorian/* Define to 1 if you have the `SSL_set1_host' function. */
514938a3a5eSflorian#undef HAVE_SSL_SET1_HOST
515938a3a5eSflorian
516933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */
517933707f3Ssthen#undef HAVE_STDARG_H
518933707f3Ssthen
519933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */
520933707f3Ssthen#undef HAVE_STDBOOL_H
521933707f3Ssthen
522933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */
523933707f3Ssthen#undef HAVE_STDINT_H
524933707f3Ssthen
525933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */
526933707f3Ssthen#undef HAVE_STDLIB_H
527933707f3Ssthen
528933707f3Ssthen/* Define to 1 if you have the `strftime' function. */
529933707f3Ssthen#undef HAVE_STRFTIME
530933707f3Ssthen
531933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */
532933707f3Ssthen#undef HAVE_STRINGS_H
533933707f3Ssthen
534933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */
535933707f3Ssthen#undef HAVE_STRING_H
536933707f3Ssthen
5375d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */
5385d76a658Ssthen#undef HAVE_STRLCAT
5395d76a658Ssthen
540933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */
541933707f3Ssthen#undef HAVE_STRLCPY
542933707f3Ssthen
543933707f3Ssthen/* Define to 1 if you have the `strptime' function. */
544933707f3Ssthen#undef HAVE_STRPTIME
545933707f3Ssthen
5462ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */
5472ee382b6Ssthen#undef HAVE_STRSEP
5482ee382b6Ssthen
549d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
550d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST
551d8d14d0cSsthen
552b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
553b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
554b2cdf21fSsthen
555933707f3Ssthen/* Define if you have Swig libraries and header files. */
556933707f3Ssthen#undef HAVE_SWIG
557933707f3Ssthen
558933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */
559933707f3Ssthen#undef HAVE_SYSLOG_H
560933707f3Ssthen
56177079be7Ssthen/* Define to 1 if systemd should be used */
56277079be7Ssthen#undef HAVE_SYSTEMD
56377079be7Ssthen
56420237c55Ssthen/* Define to 1 if you have the <sys/endian.h> header file. */
56520237c55Ssthen#undef HAVE_SYS_ENDIAN_H
56620237c55Ssthen
5672be9e038Ssthen/* Define to 1 if you have the <sys/ipc.h> header file. */
5682be9e038Ssthen#undef HAVE_SYS_IPC_H
5692be9e038Ssthen
570933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */
571933707f3Ssthen#undef HAVE_SYS_PARAM_H
572933707f3Ssthen
573933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */
574933707f3Ssthen#undef HAVE_SYS_RESOURCE_H
575933707f3Ssthen
57698f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */
57798f3ca02Sbrad#undef HAVE_SYS_SHA2_H
57898f3ca02Sbrad
5792be9e038Ssthen/* Define to 1 if you have the <sys/shm.h> header file. */
5802be9e038Ssthen#undef HAVE_SYS_SHM_H
5812be9e038Ssthen
582933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */
583933707f3Ssthen#undef HAVE_SYS_SOCKET_H
584933707f3Ssthen
585933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */
586933707f3Ssthen#undef HAVE_SYS_STAT_H
587933707f3Ssthen
58898f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */
58998f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H
59098f3ca02Sbrad
591933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */
592933707f3Ssthen#undef HAVE_SYS_TYPES_H
593933707f3Ssthen
594933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */
595933707f3Ssthen#undef HAVE_SYS_UIO_H
596933707f3Ssthen
597b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */
598b2cdf21fSsthen#undef HAVE_SYS_UN_H
599b2cdf21fSsthen
600933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */
601933707f3Ssthen#undef HAVE_SYS_WAIT_H
602933707f3Ssthen
603*a3167c07Ssthen/* Define to 1 if you have the <TargetConditionals.h> header file. */
604*a3167c07Ssthen#undef HAVE_TARGETCONDITIONALS_H
605*a3167c07Ssthen
606933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */
607933707f3Ssthen#undef HAVE_TIME_H
608933707f3Ssthen
609933707f3Ssthen/* Define to 1 if you have the `tzset' function. */
610933707f3Ssthen#undef HAVE_TZSET
611933707f3Ssthen
612933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */
613933707f3Ssthen#undef HAVE_UNISTD_H
614933707f3Ssthen
615933707f3Ssthen/* Define to 1 if you have the `usleep' function. */
616933707f3Ssthen#undef HAVE_USLEEP
617933707f3Ssthen
618933707f3Ssthen/* Define to 1 if you have the `vfork' function. */
619933707f3Ssthen#undef HAVE_VFORK
620933707f3Ssthen
621933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */
622933707f3Ssthen#undef HAVE_VFORK_H
623933707f3Ssthen
624933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */
625933707f3Ssthen#undef HAVE_WINDOWS_H
626933707f3Ssthen
627933707f3Ssthen/* Using Windows threads */
628933707f3Ssthen#undef HAVE_WINDOWS_THREADS
629933707f3Ssthen
630933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */
631933707f3Ssthen#undef HAVE_WINSOCK2_H
632933707f3Ssthen
633933707f3Ssthen/* Define to 1 if `fork' works. */
634933707f3Ssthen#undef HAVE_WORKING_FORK
635933707f3Ssthen
636933707f3Ssthen/* Define to 1 if `vfork' works. */
637933707f3Ssthen#undef HAVE_WORKING_VFORK
638933707f3Ssthen
639933707f3Ssthen/* Define to 1 if you have the `writev' function. */
640933707f3Ssthen#undef HAVE_WRITEV
641933707f3Ssthen
642933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */
643933707f3Ssthen#undef HAVE_WS2TCPIP_H
644933707f3Ssthen
645f6b99bafSsthen/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
646f6b99bafSsthen#undef HAVE_X509_VERIFY_PARAM_SET1_HOST
647f6b99bafSsthen
648933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */
649933707f3Ssthen#undef HAVE__BEGINTHREADEX
650933707f3Ssthen
651ebf5bb73Ssthen/* If HMAC_Init_ex() returns void */
652ebf5bb73Ssthen#undef HMAC_INIT_EX_RETURNS_VOID
653ebf5bb73Ssthen
654933707f3Ssthen/* if lex has yylex_destroy */
655933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY
656933707f3Ssthen
65732e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */
658933707f3Ssthen#undef LT_OBJDIR
659933707f3Ssthen
660933707f3Ssthen/* Define to the maximum message length to pass to syslog. */
661933707f3Ssthen#undef MAXSYSLOGMSGLEN
662933707f3Ssthen
663933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */
664933707f3Ssthen#undef MEMCMP_IS_BROKEN
665933707f3Ssthen
666933707f3Ssthen/* Define if mkdir has one argument. */
667933707f3Ssthen#undef MKDIR_HAS_ONE_ARG
668933707f3Ssthen
669933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes
670933707f3Ssthen   lower performance). */
671933707f3Ssthen#undef NONBLOCKING_IS_BROKEN
672933707f3Ssthen
673933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */
674933707f3Ssthen#undef OMITTED__D_ALL_SOURCE
675933707f3Ssthen
676933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */
677933707f3Ssthen#undef OMITTED__D_BSD_SOURCE
678933707f3Ssthen
67932e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */
68032e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE
68132e31f52Ssthen
682933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */
683933707f3Ssthen#undef OMITTED__D_GNU_SOURCE
684933707f3Ssthen
685933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */
686933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1
687933707f3Ssthen
688933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */
689933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112
690933707f3Ssthen
691933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */
692933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600
693933707f3Ssthen
694933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
695933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1
696933707f3Ssthen
697933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */
698933707f3Ssthen#undef OMITTED__D__EXTENSIONS__
699933707f3Ssthen
700933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */
701933707f3Ssthen#undef PACKAGE_BUGREPORT
702933707f3Ssthen
703933707f3Ssthen/* Define to the full name of this package. */
704933707f3Ssthen#undef PACKAGE_NAME
705933707f3Ssthen
706933707f3Ssthen/* Define to the full name and version of this package. */
707933707f3Ssthen#undef PACKAGE_STRING
708933707f3Ssthen
709933707f3Ssthen/* Define to the one symbol short name of this package. */
710933707f3Ssthen#undef PACKAGE_TARNAME
711933707f3Ssthen
712933707f3Ssthen/* Define to the home page for this package. */
713933707f3Ssthen#undef PACKAGE_URL
714933707f3Ssthen
715933707f3Ssthen/* Define to the version of this package. */
716933707f3Ssthen#undef PACKAGE_VERSION
717933707f3Ssthen
718933707f3Ssthen/* default pidfile location */
719933707f3Ssthen#undef PIDFILE
720933707f3Ssthen
721933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on
722933707f3Ssthen   your system. */
723933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE
724933707f3Ssthen
725933707f3Ssthen/* Define as the return type of signal handlers (`int' or `void'). */
726933707f3Ssthen#undef RETSIGTYPE
727933707f3Ssthen
7283150e5f6Ssthen/* if REUSEPORT is enabled by default */
7293150e5f6Ssthen#undef REUSEPORT_DEFAULT
7303150e5f6Ssthen
731933707f3Ssthen/* default rootkey location */
732933707f3Ssthen#undef ROOT_ANCHOR_FILE
733933707f3Ssthen
734933707f3Ssthen/* default rootcert location */
735933707f3Ssthen#undef ROOT_CERT_FILE
736933707f3Ssthen
737933707f3Ssthen/* version number for resource files */
738933707f3Ssthen#undef RSRC_PACKAGE_VERSION
739933707f3Ssthen
740933707f3Ssthen/* Directory to chdir to */
741933707f3Ssthen#undef RUN_DIR
742933707f3Ssthen
743933707f3Ssthen/* Shared data */
744933707f3Ssthen#undef SHARE_DIR
745933707f3Ssthen
746ebf5bb73Ssthen/* The size of `size_t', as computed by sizeof. */
747ebf5bb73Ssthen#undef SIZEOF_SIZE_T
748ebf5bb73Ssthen
7495d76a658Ssthen/* The size of `time_t', as computed by sizeof. */
7505d76a658Ssthen#undef SIZEOF_TIME_T
7515d76a658Ssthen
75224893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */
75324893edcSsthen#undef SNPRINTF_RET_BROKEN
75424893edcSsthen
755bdfc4d55Sflorian/* Define to 1 if libsodium supports sodium_set_misuse_handler */
756bdfc4d55Sflorian#undef SODIUM_MISUSE_HANDLER
757bdfc4d55Sflorian
758933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */
759933707f3Ssthen#undef STDC_HEADERS
760933707f3Ssthen
761933707f3Ssthen/* use default strptime. */
762933707f3Ssthen#undef STRPTIME_WORKS
763933707f3Ssthen
764933707f3Ssthen/* Use win32 resources and API */
765933707f3Ssthen#undef UB_ON_WINDOWS
766933707f3Ssthen
767ebf5bb73Ssthen/* the SYSLOG_FACILITY to use, default LOG_DAEMON */
768ebf5bb73Ssthen#undef UB_SYSLOG_FACILITY
769ebf5bb73Ssthen
770933707f3Ssthen/* default username */
771933707f3Ssthen#undef UB_USERNAME
772933707f3Ssthen
773933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */
774933707f3Ssthen#undef UNBOUND_ALLOC_LITE
775933707f3Ssthen
776933707f3Ssthen/* use malloc not regions, for debug use */
777933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL
778933707f3Ssthen
779933707f3Ssthen/* use statistics for allocs and frees, for debug use */
780933707f3Ssthen#undef UNBOUND_ALLOC_STATS
781933707f3Ssthen
782933707f3Ssthen/* define this to enable debug checks. */
783933707f3Ssthen#undef UNBOUND_DEBUG
784933707f3Ssthen
7852ee382b6Ssthen/* Define to 1 to use cachedb support */
7862ee382b6Ssthen#undef USE_CACHEDB
7872ee382b6Ssthen
7882be9e038Ssthen/* Define to 1 to enable dnscrypt support */
7892be9e038Ssthen#undef USE_DNSCRYPT
7902be9e038Ssthen
7912be9e038Ssthen/* Define to 1 to enable dnscrypt with xchacha20 support */
7922be9e038Ssthen#undef USE_DNSCRYPT_XCHACHA20
7932be9e038Ssthen
79498f3ca02Sbrad/* Define to 1 to enable dnstap support */
79598f3ca02Sbrad#undef USE_DNSTAP
79698f3ca02Sbrad
7972ee382b6Ssthen/* Define this to enable DSA support. */
7982ee382b6Ssthen#undef USE_DSA
7992ee382b6Ssthen
800d8d14d0cSsthen/* Define this to enable ECDSA support. */
801d8d14d0cSsthen#undef USE_ECDSA
802d8d14d0cSsthen
803d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */
804d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND
805d8d14d0cSsthen
8062be9e038Ssthen/* Define this to enable ED25519 support. */
8072be9e038Ssthen#undef USE_ED25519
8082be9e038Ssthen
80920237c55Ssthen/* Define this to enable ED448 support. */
81020237c55Ssthen#undef USE_ED448
81120237c55Ssthen
812933707f3Ssthen/* Define this to enable GOST support. */
813933707f3Ssthen#undef USE_GOST
814933707f3Ssthen
8152be9e038Ssthen/* Define to 1 to use ipsecmod support. */
8162be9e038Ssthen#undef USE_IPSECMOD
8172be9e038Ssthen
8188240c1b9Ssthen/* Define to 1 to use ipset support */
8198240c1b9Ssthen#undef USE_IPSET
8208240c1b9Ssthen
821*a3167c07Ssthen/* Define if you enable libevent */
822*a3167c07Ssthen#undef USE_LIBEVENT
823*a3167c07Ssthen
824933707f3Ssthen/* Define if you want to use internal select based events */
825933707f3Ssthen#undef USE_MINI_EVENT
826933707f3Ssthen
82777079be7Ssthen/* Define this to enable client TCP Fast Open. */
82877079be7Ssthen#undef USE_MSG_FASTOPEN
82977079be7Ssthen
83077079be7Ssthen/* Define this to enable client TCP Fast Open. */
83177079be7Ssthen#undef USE_OSX_MSG_FASTOPEN
83277079be7Ssthen
83320237c55Ssthen/* Define this to use hiredis client. */
83420237c55Ssthen#undef USE_REDIS
83520237c55Ssthen
8362be9e038Ssthen/* Define this to enable SHA1 support. */
8372be9e038Ssthen#undef USE_SHA1
8382be9e038Ssthen
839933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */
840933707f3Ssthen#undef USE_SHA2
841933707f3Ssthen
842933707f3Ssthen/* Enable extensions on AIX 3, Interix.  */
843933707f3Ssthen#ifndef _ALL_SOURCE
844933707f3Ssthen# undef _ALL_SOURCE
845933707f3Ssthen#endif
846933707f3Ssthen/* Enable GNU extensions on systems that have them.  */
847933707f3Ssthen#ifndef _GNU_SOURCE
848933707f3Ssthen# undef _GNU_SOURCE
849933707f3Ssthen#endif
850933707f3Ssthen/* Enable threading extensions on Solaris.  */
851933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS
852933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS
853933707f3Ssthen#endif
854933707f3Ssthen/* Enable extensions on HP NonStop.  */
855933707f3Ssthen#ifndef _TANDEM_SOURCE
856933707f3Ssthen# undef _TANDEM_SOURCE
857933707f3Ssthen#endif
858933707f3Ssthen/* Enable general extensions on Solaris.  */
859933707f3Ssthen#ifndef __EXTENSIONS__
860933707f3Ssthen# undef __EXTENSIONS__
861933707f3Ssthen#endif
862933707f3Ssthen
863933707f3Ssthen
86477079be7Ssthen/* Define this to enable server TCP Fast Open. */
86577079be7Ssthen#undef USE_TCP_FASTOPEN
86677079be7Ssthen
867933707f3Ssthen/* Whether the windows socket API is used */
868933707f3Ssthen#undef USE_WINSOCK
869933707f3Ssthen
870933707f3Ssthen/* the version of the windows API enabled */
871933707f3Ssthen#undef WINVER
872933707f3Ssthen
873*a3167c07Ssthen/* Define if you want dynlib module. */
874*a3167c07Ssthen#undef WITH_DYNLIBMODULE
875*a3167c07Ssthen
876933707f3Ssthen/* Define if you want Python module. */
877933707f3Ssthen#undef WITH_PYTHONMODULE
878933707f3Ssthen
879933707f3Ssthen/* Define if you want PyUnbound. */
880933707f3Ssthen#undef WITH_PYUNBOUND
881933707f3Ssthen
882933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
883933707f3Ssthen   `char[]'. */
884933707f3Ssthen#undef YYTEXT_POINTER
885933707f3Ssthen
886229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5.  */
887229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE
888229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1
889229e174cSsthen#endif
890229e174cSsthen
891933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */
892933707f3Ssthen#undef _FILE_OFFSET_BITS
893933707f3Ssthen
894933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
895933707f3Ssthen#undef _LARGEFILE_SOURCE
896933707f3Ssthen
897933707f3Ssthen/* Define for large files, on AIX-style hosts. */
898933707f3Ssthen#undef _LARGE_FILES
899933707f3Ssthen
900933707f3Ssthen/* Define to 1 if on MINIX. */
901933707f3Ssthen#undef _MINIX
902933707f3Ssthen
9035d76a658Ssthen/* Enable for compile on Minix */
9045d76a658Ssthen#undef _NETBSD_SOURCE
9055d76a658Ssthen
906933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with
907933707f3Ssthen   this defined. */
908933707f3Ssthen#undef _POSIX_1_SOURCE
909933707f3Ssthen
910933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */
911933707f3Ssthen#undef _POSIX_SOURCE
912933707f3Ssthen
913933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */
914933707f3Ssthen#undef const
915933707f3Ssthen
916933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */
917933707f3Ssthen#undef gid_t
918933707f3Ssthen
919933707f3Ssthen/* in_addr_t */
920933707f3Ssthen#undef in_addr_t
921933707f3Ssthen
922933707f3Ssthen/* in_port_t */
923933707f3Ssthen#undef in_port_t
924933707f3Ssthen
925933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler
926933707f3Ssthen   calls it, or to nothing if 'inline' is not supported under any name.  */
927933707f3Ssthen#ifndef __cplusplus
928933707f3Ssthen#undef inline
929933707f3Ssthen#endif
930933707f3Ssthen
931933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */
932933707f3Ssthen#undef int16_t
933933707f3Ssthen
934933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
935933707f3Ssthen#undef int32_t
936933707f3Ssthen
937933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */
938933707f3Ssthen#undef int64_t
939933707f3Ssthen
940933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */
941933707f3Ssthen#undef int8_t
942933707f3Ssthen
943933707f3Ssthen/* Define if replacement function should be used. */
944933707f3Ssthen#undef malloc
945933707f3Ssthen
946933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */
947933707f3Ssthen#undef off_t
948933707f3Ssthen
949933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
950933707f3Ssthen#undef pid_t
951933707f3Ssthen
952933707f3Ssthen/* Define to 'int' if not defined */
953933707f3Ssthen#undef rlim_t
954933707f3Ssthen
955933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */
956933707f3Ssthen#undef size_t
957933707f3Ssthen
958933707f3Ssthen/* Define to 'int' if not defined */
959933707f3Ssthen#undef socklen_t
960933707f3Ssthen
961933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
962933707f3Ssthen#undef ssize_t
963933707f3Ssthen
964933707f3Ssthen/* Define to 'unsigned char if not defined */
965933707f3Ssthen#undef u_char
966933707f3Ssthen
967933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */
968933707f3Ssthen#undef uid_t
969933707f3Ssthen
970933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */
971933707f3Ssthen#undef uint16_t
972933707f3Ssthen
973933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */
974933707f3Ssthen#undef uint32_t
975933707f3Ssthen
976933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */
977933707f3Ssthen#undef uint64_t
978933707f3Ssthen
979933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */
980933707f3Ssthen#undef uint8_t
981933707f3Ssthen
982933707f3Ssthen/* Define as `fork' if `vfork' does not work. */
983933707f3Ssthen#undef vfork
984933707f3Ssthen
985933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
986933707f3Ssthen#define _GNU_SOURCE 1
987933707f3Ssthen#endif
988933707f3Ssthen
989933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
990933707f3Ssthen#define _BSD_SOURCE 1
991933707f3Ssthen#endif
992933707f3Ssthen
99332e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
99432e31f52Ssthen#define _DEFAULT_SOURCE 1
99532e31f52Ssthen#endif
99632e31f52Ssthen
997933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
998933707f3Ssthen#define __EXTENSIONS__ 1
999933707f3Ssthen#endif
1000933707f3Ssthen
1001933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
1002933707f3Ssthen#define _POSIX_C_SOURCE 200112
1003933707f3Ssthen#endif
1004933707f3Ssthen
1005933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
1006933707f3Ssthen#define _XOPEN_SOURCE 600
1007933707f3Ssthen#endif
1008933707f3Ssthen
1009933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
1010933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1
1011933707f3Ssthen#endif
1012933707f3Ssthen
1013933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
1014933707f3Ssthen#define _ALL_SOURCE 1
1015933707f3Ssthen#endif
1016933707f3Ssthen
1017933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
1018933707f3Ssthen#define _LARGEFILE_SOURCE 1
1019933707f3Ssthen#endif
1020933707f3Ssthen
1021933707f3Ssthen
1022933707f3Ssthen
1023933707f3Ssthen
1024550cf4a9Ssthen#ifndef _OPENBSD_SOURCE
1025550cf4a9Ssthen#define _OPENBSD_SOURCE 1
1026550cf4a9Ssthen#endif
1027550cf4a9Ssthen
1028933707f3Ssthen#ifndef UNBOUND_DEBUG
1029550cf4a9Ssthen# ifndef NDEBUG
1030933707f3Ssthen#  define NDEBUG
1031933707f3Ssthen# endif
1032550cf4a9Ssthen#endif
1033933707f3Ssthen
10345d76a658Ssthen/** Use small-ldns codebase */
10355d76a658Ssthen#define USE_SLDNS 1
10365d76a658Ssthen#ifdef HAVE_SSL
10375d76a658Ssthen#  define LDNS_BUILD_CONFIG_HAVE_SSL 1
10385d76a658Ssthen#endif
10395d76a658Ssthen
1040933707f3Ssthen#include <stdio.h>
1041933707f3Ssthen#include <string.h>
1042933707f3Ssthen#include <unistd.h>
1043933707f3Ssthen#include <assert.h>
1044933707f3Ssthen
1045933707f3Ssthen#if STDC_HEADERS
1046933707f3Ssthen#include <stdlib.h>
1047933707f3Ssthen#include <stddef.h>
1048933707f3Ssthen#endif
1049933707f3Ssthen
10505d76a658Ssthen#ifdef HAVE_STDARG_H
10515d76a658Ssthen#include <stdarg.h>
10525d76a658Ssthen#endif
10535d76a658Ssthen
1054933707f3Ssthen#ifdef HAVE_STDINT_H
1055933707f3Ssthen#include <stdint.h>
1056933707f3Ssthen#endif
1057933707f3Ssthen
1058933707f3Ssthen#include <errno.h>
1059933707f3Ssthen
1060933707f3Ssthen#if HAVE_SYS_PARAM_H
1061933707f3Ssthen#include <sys/param.h>
1062933707f3Ssthen#endif
1063933707f3Ssthen
1064933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H
1065933707f3Ssthen#include <sys/socket.h>
1066933707f3Ssthen#endif
1067933707f3Ssthen
1068933707f3Ssthen#ifdef HAVE_SYS_UIO_H
1069933707f3Ssthen#include <sys/uio.h>
1070933707f3Ssthen#endif
1071933707f3Ssthen
1072933707f3Ssthen#ifdef HAVE_NETINET_IN_H
1073933707f3Ssthen#include <netinet/in.h>
1074933707f3Ssthen#endif
1075933707f3Ssthen
107632e31f52Ssthen#ifdef HAVE_NETINET_TCP_H
107732e31f52Ssthen#include <netinet/tcp.h>
107832e31f52Ssthen#endif
107932e31f52Ssthen
1080933707f3Ssthen#ifdef HAVE_ARPA_INET_H
1081933707f3Ssthen#include <arpa/inet.h>
1082933707f3Ssthen#endif
1083933707f3Ssthen
1084933707f3Ssthen#ifdef HAVE_WINSOCK2_H
1085933707f3Ssthen#include <winsock2.h>
1086933707f3Ssthen#endif
1087933707f3Ssthen
1088933707f3Ssthen#ifdef HAVE_WS2TCPIP_H
1089933707f3Ssthen#include <ws2tcpip.h>
1090933707f3Ssthen#endif
1091933707f3Ssthen
10925d76a658Ssthen#ifndef USE_WINSOCK
10935d76a658Ssthen#define ARG_LL "%ll"
10945d76a658Ssthen#else
10955d76a658Ssthen#define ARG_LL "%I64"
10965d76a658Ssthen#endif
10975d76a658Ssthen
1098b2cdf21fSsthen#ifndef AF_LOCAL
1099b2cdf21fSsthen#define AF_LOCAL AF_UNIX
1100b2cdf21fSsthen#endif
1101b2cdf21fSsthen
1102933707f3Ssthen
1103933707f3Ssthen
1104933707f3Ssthen#ifdef HAVE_ATTR_FORMAT
1105933707f3Ssthen#  define ATTR_FORMAT(archetype, string_index, first_to_check) \
1106933707f3Ssthen    __attribute__ ((format (archetype, string_index, first_to_check)))
1107933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */
1108933707f3Ssthen#  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1109933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */
1110933707f3Ssthen
1111933707f3Ssthen
1112933707f3Ssthen#if defined(DOXYGEN)
1113933707f3Ssthen#  define ATTR_UNUSED(x)  x
1114933707f3Ssthen#elif defined(__cplusplus)
1115933707f3Ssthen#  define ATTR_UNUSED(x)
1116933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED)
1117933707f3Ssthen#  define ATTR_UNUSED(x)  x __attribute__((unused))
1118933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */
1119933707f3Ssthen#  define ATTR_UNUSED(x)  x
1120933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */
1121933707f3Ssthen
1122933707f3Ssthen
1123933707f3Ssthen#ifndef HAVE_FSEEKO
1124933707f3Ssthen#define fseeko fseek
1125933707f3Ssthen#define ftello ftell
1126933707f3Ssthen#endif /* HAVE_FSEEKO */
1127933707f3Ssthen
1128933707f3Ssthen
1129933707f3Ssthen#ifndef MAXHOSTNAMELEN
1130933707f3Ssthen#define MAXHOSTNAMELEN 256
1131933707f3Ssthen#endif
1132933707f3Ssthen
113324893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1134933707f3Ssthen#define snprintf snprintf_unbound
1135933707f3Ssthen#define vsnprintf vsnprintf_unbound
1136933707f3Ssthen#include <stdarg.h>
1137933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...);
1138933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
113924893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1140933707f3Ssthen
1141933707f3Ssthen#ifndef HAVE_INET_PTON
1142933707f3Ssthen#define inet_pton inet_pton_unbound
1143933707f3Ssthenint inet_pton(int af, const char* src, void* dst);
1144933707f3Ssthen#endif /* HAVE_INET_PTON */
1145933707f3Ssthen
1146933707f3Ssthen
1147933707f3Ssthen#ifndef HAVE_INET_NTOP
1148933707f3Ssthen#define inet_ntop inet_ntop_unbound
1149933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
1150933707f3Ssthen#endif
1151933707f3Ssthen
1152933707f3Ssthen
1153933707f3Ssthen#ifndef HAVE_INET_ATON
1154933707f3Ssthen#define inet_aton inet_aton_unbound
1155933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr);
1156933707f3Ssthen#endif
1157933707f3Ssthen
1158933707f3Ssthen
1159933707f3Ssthen#ifndef HAVE_MEMMOVE
1160933707f3Ssthen#define memmove memmove_unbound
1161933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n);
1162933707f3Ssthen#endif
1163933707f3Ssthen
1164933707f3Ssthen
11655d76a658Ssthen#ifndef HAVE_STRLCAT
11665d76a658Ssthen#define strlcat strlcat_unbound
11675d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz);
11685d76a658Ssthen#endif
11695d76a658Ssthen
11705d76a658Ssthen
1171933707f3Ssthen#ifndef HAVE_STRLCPY
1172933707f3Ssthen#define strlcpy strlcpy_unbound
1173933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz);
1174933707f3Ssthen#endif
1175933707f3Ssthen
1176933707f3Ssthen
1177933707f3Ssthen#ifndef HAVE_GMTIME_R
1178933707f3Ssthen#define gmtime_r gmtime_r_unbound
1179933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result);
1180933707f3Ssthen#endif
1181933707f3Ssthen
1182933707f3Ssthen
1183fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY
1184fdfb4ba6Ssthen#define reallocarray reallocarrayunbound
1185fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size);
1186fdfb4ba6Ssthen#endif
1187fdfb4ba6Ssthen
1188fdfb4ba6Ssthen
1189229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1190933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */
1191933707f3Ssthen#endif /* HAVE_SLEEP */
1192933707f3Ssthen
1193933707f3Ssthen
1194933707f3Ssthen#ifndef HAVE_USLEEP
1195933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1196933707f3Ssthen#endif /* HAVE_USLEEP */
1197933707f3Ssthen
1198933707f3Ssthen
1199933707f3Ssthen#ifndef HAVE_RANDOM
1200933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */
1201933707f3Ssthen#endif /* HAVE_RANDOM */
1202933707f3Ssthen
1203933707f3Ssthen
1204933707f3Ssthen#ifndef HAVE_SRANDOM
1205933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1206933707f3Ssthen#endif /* HAVE_SRANDOM */
1207933707f3Ssthen
1208933707f3Ssthen
1209933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1210933707f3Ssthen#ifdef HAVE_WINSOCK2_H
1211933707f3Ssthen#define FD_SET_T (u_int)
1212933707f3Ssthen#else
1213933707f3Ssthen#define FD_SET_T
1214933707f3Ssthen#endif
1215933707f3Ssthen
1216933707f3Ssthen
1217933707f3Ssthen#ifndef IPV6_MIN_MTU
1218933707f3Ssthen#define IPV6_MIN_MTU 1280
1219933707f3Ssthen#endif /* IPV6_MIN_MTU */
1220933707f3Ssthen
1221933707f3Ssthen
1222933707f3Ssthen#ifdef MEMCMP_IS_BROKEN
1223d8d14d0cSsthen#include "compat/memcmp.h"
1224933707f3Ssthen#define memcmp memcmp_unbound
1225933707f3Ssthenint memcmp(const void *x, const void *y, size_t n);
1226933707f3Ssthen#endif
1227933707f3Ssthen
1228933707f3Ssthen
1229933707f3Ssthen
1230933707f3Ssthen#ifndef HAVE_CTIME_R
1231933707f3Ssthen#define ctime_r unbound_ctime_r
1232933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf);
1233933707f3Ssthen#endif
1234933707f3Ssthen
12352ee382b6Ssthen#ifndef HAVE_STRSEP
12362ee382b6Ssthen#define strsep unbound_strsep
12372ee382b6Ssthenchar *strsep(char **stringp, const char *delim);
12382ee382b6Ssthen#endif
12392ee382b6Ssthen
124024893edcSsthen#ifndef HAVE_ISBLANK
124124893edcSsthen#define isblank unbound_isblank
124224893edcSsthenint isblank(int c);
124324893edcSsthen#endif
124424893edcSsthen
1245452a1548Ssthen#ifndef HAVE_EXPLICIT_BZERO
1246452a1548Ssthen#define explicit_bzero unbound_explicit_bzero
1247452a1548Ssthenvoid explicit_bzero(void* buf, size_t len);
1248452a1548Ssthen#endif
1249452a1548Ssthen
125077079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
125177079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
125277079be7Ssthen#endif
125377079be7Ssthen
125477079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
125577079be7Ssthenint inet_pton(int af, const char* src, void* dst);
125677079be7Ssthen#endif
125777079be7Ssthen
1258933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1259933707f3Ssthen#define strptime unbound_strptime
1260933707f3Ssthenstruct tm;
1261933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm);
1262933707f3Ssthen#endif
1263933707f3Ssthen
1264ebf5bb73Ssthen#if !HAVE_DECL_REALLOCARRAY
1265ebf5bb73Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size);
1266ebf5bb73Ssthen#endif
1267ebf5bb73Ssthen
1268eaf2578eSsthen#ifdef HAVE_LIBBSD
1269eaf2578eSsthen#include <bsd/string.h>
1270eaf2578eSsthen#include <bsd/stdlib.h>
1271eaf2578eSsthen#endif
1272eaf2578eSsthen
127398f3ca02Sbrad#ifdef HAVE_LIBRESSL
127498f3ca02Sbrad#  if !HAVE_DECL_STRLCPY
127598f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz);
127698f3ca02Sbrad#  endif
127798f3ca02Sbrad#  if !HAVE_DECL_STRLCAT
127898f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz);
127998f3ca02Sbrad#  endif
128098f3ca02Sbrad#  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
128198f3ca02Sbraduint32_t arc4random(void);
128298f3ca02Sbrad#  endif
128398f3ca02Sbrad#  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
128498f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound);
128598f3ca02Sbrad#  endif
128698f3ca02Sbrad#endif /* HAVE_LIBRESSL */
128798f3ca02Sbrad#ifndef HAVE_ARC4RANDOM
128898f3ca02Sbradint getentropy(void* buf, size_t len);
128998f3ca02Sbraduint32_t arc4random(void);
129098f3ca02Sbradvoid arc4random_buf(void* buf, size_t n);
129198f3ca02Sbradvoid _ARC4_LOCK(void);
129298f3ca02Sbradvoid _ARC4_UNLOCK(void);
1293938a3a5eSflorianvoid _ARC4_LOCK_DESTROY(void);
129498f3ca02Sbrad#endif
129598f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM
129698f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound);
129798f3ca02Sbrad#endif
129898f3ca02Sbrad#ifdef COMPAT_SHA512
129998f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH
130098f3ca02Sbrad#define SHA512_BLOCK_LENGTH		128
130198f3ca02Sbrad#define SHA512_DIGEST_LENGTH		64
130298f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH	(SHA512_DIGEST_LENGTH * 2 + 1)
130398f3ca02Sbradtypedef struct _SHA512_CTX {
130498f3ca02Sbrad	uint64_t	state[8];
130598f3ca02Sbrad	uint64_t	bitcount[2];
130698f3ca02Sbrad	uint8_t	buffer[SHA512_BLOCK_LENGTH];
130798f3ca02Sbrad} SHA512_CTX;
130898f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */
130998f3ca02Sbradvoid SHA512_Init(SHA512_CTX*);
131098f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t);
131198f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
131298f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
131398f3ca02Sbrad#endif /* COMPAT_SHA512 */
131498f3ca02Sbrad
131598f3ca02Sbrad
131698f3ca02Sbrad
1317933707f3Ssthen#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))
1318933707f3Ssthen   /* using version of libevent that is not threadsafe. */
1319933707f3Ssthen#  define LIBEVENT_SIGNAL_PROBLEM 1
1320933707f3Ssthen#endif
1321933707f3Ssthen
1322933707f3Ssthen#ifndef CHECKED_INET6
1323933707f3Ssthen#  define CHECKED_INET6
1324933707f3Ssthen#  ifdef AF_INET6
1325933707f3Ssthen#    define INET6
1326933707f3Ssthen#  else
1327933707f3Ssthen#    define AF_INET6        28
1328933707f3Ssthen#  endif
1329933707f3Ssthen#endif /* CHECKED_INET6 */
1330933707f3Ssthen
1331933707f3Ssthen#ifndef HAVE_GETADDRINFO
1332933707f3Ssthenstruct sockaddr_storage;
1333933707f3Ssthen#include "compat/fake-rfc2553.h"
1334933707f3Ssthen#endif
1335933707f3Ssthen
1336933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS
1337933707f3Ssthen#  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1338933707f3Ssthen#  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1339933707f3Ssthen#  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1340933707f3Ssthen#  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1341933707f3Ssthenvoid *unbound_stat_malloc(size_t size);
1342933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size);
1343933707f3Ssthenvoid unbound_stat_free(void *ptr);
1344933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size);
1345933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line,
1346933707f3Ssthen	const char* func);
1347933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1348933707f3Ssthen	int line, const char* func);
1349933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line,
1350933707f3Ssthen	const char* func);
1351933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1352933707f3Ssthen	int line, const char* func);
1353933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE)
1354933707f3Ssthen#  include "util/alloc.h"
1355933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1356933707f3Ssthen
1357933707f3Ssthen/** default port for DNS traffic. */
1358933707f3Ssthen#define UNBOUND_DNS_PORT 53
135920237c55Ssthen/** default port for DNS over TLS traffic. */
136020237c55Ssthen#define UNBOUND_DNS_OVER_TLS_PORT 853
1361933707f3Ssthen/** default port for unbound control traffic, registered port with IANA,
1362933707f3Ssthen    ub-dns-control  8953/tcp    unbound dns nameserver control */
1363933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953
1364933707f3Ssthen/** the version of unbound-control that this software implements */
1365933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1
1366933707f3Ssthen
1367933707f3Ssthen
1368