1255581Sdes/* config.h.  Generated from config.h.in by configure.  */
2255581Sdes/* config.h.in.  Generated from configure.ac by autoheader.  */
3356914Scy/* $FreeBSD: stable/11/usr.sbin/unbound/config.h 369939 2021-06-03 01:02:05Z git2svn $ */
4255581Sdes
5356345Scy/* apply the noreturn attribute to a function that exits the program */
6356345Scy#define ATTR_NORETURN __attribute__((__noreturn__))
7356345Scy
8356345Scy/* apply the weak attribute to a symbol */
9356345Scy#define ATTR_WEAK __attribute__((weak))
10356345Scy
11255581Sdes/* Directory to chroot to */
12255581Sdes#define CHROOT_DIR "/var/unbound"
13255581Sdes
14356345Scy/* Define this to enable client subnet option. */
15356345Scy/* #undef CLIENT_SUBNET */
16356345Scy
17276605Sdes/* Do sha512 definitions in config.h */
18276605Sdes/* #undef COMPAT_SHA512 */
19276605Sdes
20356345Scy/* Command line arguments used with configure */
21356345Scy#define CONFCMDLINE "--with-ssl=/usr --with-libexpat=/usr --disable-dnscrypt --disable-dnstap --enable-ecdsa --disable-event-api --enable-gost --with-libevent --disable-subnet --disable-tfo-client --disable-tfo-server --with-pthreads--prefix=/usr --localstatedir=/var/unbound --mandir=/usr/share/man --build=freebsd"
22356345Scy
23255581Sdes/* Pathname to the Unbound configuration file */
24255840Sdes#define CONFIGFILE "/var/unbound/unbound.conf"
25255581Sdes
26255581Sdes/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
27255581Sdes   */
28255581Sdes/* #undef DARWIN_BROKEN_SETREUID */
29255581Sdes
30255581Sdes/* Whether daemon is deprecated */
31255581Sdes/* #undef DEPRECATED_DAEMON */
32255581Sdes
33368129Scy/* Define this to enable kernel based UDP source port randomization. */
34368129Scy/* #undef DISABLE_EXPLICIT_PORT_RANDOMISATION */
35368129Scy
36276605Sdes/* default dnstap socket path */
37276605Sdes/* #undef DNSTAP_SOCKET_PATH */
38276605Sdes
39255581Sdes/* Define if you want to use debug lock checking (slow). */
40255581Sdes/* #undef ENABLE_LOCK_CHECKS */
41255581Sdes
42255581Sdes/* Define this if you enabled-allsymbols from libunbound to link binaries to
43255581Sdes   it for smaller install size, but the libunbound export table is polluted by
44255581Sdes   internal symbols */
45255581Sdes/* #undef EXPORT_ALL_SYMBOLS */
46255581Sdes
47356345Scy/* Define to 1 if you have the `accept4' function. */
48356345Scy#define HAVE_ACCEPT4 1
49356345Scy
50276605Sdes/* Define to 1 if you have the `arc4random' function. */
51276605Sdes#define HAVE_ARC4RANDOM 1
52276605Sdes
53276605Sdes/* Define to 1 if you have the `arc4random_uniform' function. */
54276605Sdes#define HAVE_ARC4RANDOM_UNIFORM 1
55276605Sdes
56255581Sdes/* Define to 1 if you have the <arpa/inet.h> header file. */
57255581Sdes#define HAVE_ARPA_INET_H 1
58255581Sdes
59255581Sdes/* Whether the C compiler accepts the "format" attribute */
60255581Sdes#define HAVE_ATTR_FORMAT 1
61255581Sdes
62356345Scy/* Whether the C compiler accepts the "noreturn" attribute */
63356345Scy#define HAVE_ATTR_NORETURN 1
64356345Scy
65255581Sdes/* Whether the C compiler accepts the "unused" attribute */
66255581Sdes#define HAVE_ATTR_UNUSED 1
67255581Sdes
68307729Sdes/* Whether the C compiler accepts the "weak" attribute */
69307729Sdes#define HAVE_ATTR_WEAK 1
70307729Sdes
71368129Scy/* If we have be64toh */
72368129Scy/* #undef HAVE_BE64TOH */
73368129Scy
74368129Scy/* Define to 1 if you have the <bsd/stdlib.h> header file. */
75368129Scy/* #undef HAVE_BSD_STDLIB_H */
76368129Scy
77368129Scy/* Define to 1 if you have the <bsd/string.h> header file. */
78368129Scy/* #undef HAVE_BSD_STRING_H */
79368129Scy
80282089Sdes/* Define to 1 if you have the `chown' function. */
81255581Sdes#define HAVE_CHOWN 1
82255581Sdes
83255581Sdes/* Define to 1 if you have the `chroot' function. */
84255581Sdes#define HAVE_CHROOT 1
85255581Sdes
86307729Sdes/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
87307729Sdes#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
88307729Sdes
89356345Scy/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
90356345Scy/* #undef HAVE_CRYPTO_THREADID_SET_CALLBACK */
91356345Scy
92255581Sdes/* Define to 1 if you have the `ctime_r' function. */
93255581Sdes#define HAVE_CTIME_R 1
94255581Sdes
95255581Sdes/* Define to 1 if you have the `daemon' function. */
96255581Sdes#define HAVE_DAEMON 1
97255581Sdes
98276605Sdes/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
99276605Sdes   don't. */
100276605Sdes/* #undef HAVE_DECL_ARC4RANDOM */
101276605Sdes
102276605Sdes/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
103276605Sdes   if you don't. */
104276605Sdes/* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */
105276605Sdes
106356345Scy/* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if
107356345Scy   you don't. */
108356345Scy/* #undef HAVE_DECL_EVSIGNAL_ASSIGN */
109356345Scy
110356345Scy/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
111356345Scy   don't. */
112356345Scy#define HAVE_DECL_INET_NTOP 1
113356345Scy
114356345Scy/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
115356345Scy   don't. */
116356345Scy#define HAVE_DECL_INET_PTON 1
117356345Scy
118368129Scy/* Define to 1 if you have the declaration of `nghttp2_session_server_new',
119368129Scy   and to 0 if you don't. */
120368129Scy/* #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW */
121368129Scy
122356345Scy/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
123356345Scy   don't. */
124356345Scy#define HAVE_DECL_NID_ED25519 1
125356345Scy
126356345Scy/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
127356345Scy   don't. */
128356345Scy#define HAVE_DECL_NID_ED448 1
129356345Scy
130255581Sdes/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
131255581Sdes   don't. */
132255581Sdes#define HAVE_DECL_NID_SECP384R1 1
133255581Sdes
134255581Sdes/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
135255581Sdes   if you don't. */
136255581Sdes#define HAVE_DECL_NID_X9_62_PRIME256V1 1
137255581Sdes
138287917Sdes/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
139287917Sdes   don't. */
140287917Sdes/* #undef HAVE_DECL_REALLOCARRAY */
141287917Sdes
142356345Scy/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
143356345Scy   don't. */
144356345Scy/* #undef HAVE_DECL_REDISCONNECT */
145356345Scy
146255581Sdes/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
147255581Sdes   if you don't. */
148255581Sdes#define HAVE_DECL_SK_SSL_COMP_POP_FREE 1
149255581Sdes
150255581Sdes/* Define to 1 if you have the declaration of
151255581Sdes   `SSL_COMP_get_compression_methods', and to 0 if you don't. */
152255581Sdes#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1
153255581Sdes
154289063Sdes/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
155289063Sdes   0 if you don't. */
156292206Sdes#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO 1
157289063Sdes
158276605Sdes/* Define to 1 if you have the declaration of `strlcat', and to 0 if you
159276605Sdes   don't. */
160276605Sdes/* #undef HAVE_DECL_STRLCAT */
161276605Sdes
162276605Sdes/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
163276605Sdes   don't. */
164276605Sdes/* #undef HAVE_DECL_STRLCPY */
165276605Sdes
166292206Sdes/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
167292206Sdes   you don't. */
168292206Sdes#define HAVE_DECL_XML_STOPPARSER 1
169292206Sdes
170255581Sdes/* Define to 1 if you have the <dlfcn.h> header file. */
171255581Sdes#define HAVE_DLFCN_H 1
172255581Sdes
173356345Scy/* Define to 1 if you have the `DSA_SIG_set0' function. */
174356345Scy/* #undef HAVE_DSA_SIG_SET0 */
175356345Scy
176276605Sdes/* Define to 1 if you have the <endian.h> header file. */
177276605Sdes/* #undef HAVE_ENDIAN_H */
178276605Sdes
179266114Sdes/* Define to 1 if you have the `endprotoent' function. */
180266114Sdes#define HAVE_ENDPROTOENT 1
181266114Sdes
182307729Sdes/* Define to 1 if you have the `endpwent' function. */
183307729Sdes#define HAVE_ENDPWENT 1
184307729Sdes
185266114Sdes/* Define to 1 if you have the `endservent' function. */
186266114Sdes#define HAVE_ENDSERVENT 1
187266114Sdes
188368129Scy/* Define to 1 if you have the `ENGINE_cleanup' function. */
189368129Scy/* #undef HAVE_ENGINE_CLEANUP */
190368129Scy
191307729Sdes/* Define to 1 if you have the `ERR_free_strings' function. */
192307729Sdes#define HAVE_ERR_FREE_STRINGS 1
193307729Sdes
194307729Sdes/* Define to 1 if you have the `ERR_load_crypto_strings' function. */
195307729Sdes#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1
196307729Sdes
197356345Scy/* Define to 1 if you have the `event_assign' function. */
198356345Scy/* #undef HAVE_EVENT_ASSIGN */
199356345Scy
200255581Sdes/* Define to 1 if you have the `event_base_free' function. */
201255581Sdes/* #undef HAVE_EVENT_BASE_FREE */
202255581Sdes
203255581Sdes/* Define to 1 if you have the `event_base_get_method' function. */
204255581Sdes/* #undef HAVE_EVENT_BASE_GET_METHOD */
205255581Sdes
206255581Sdes/* Define to 1 if you have the `event_base_new' function. */
207255581Sdes/* #undef HAVE_EVENT_BASE_NEW */
208255581Sdes
209255581Sdes/* Define to 1 if you have the `event_base_once' function. */
210255581Sdes/* #undef HAVE_EVENT_BASE_ONCE */
211255581Sdes
212255581Sdes/* Define to 1 if you have the <event.h> header file. */
213255581Sdes/* #undef HAVE_EVENT_H */
214255581Sdes
215356345Scy/* Define to 1 if you have the `EVP_aes_256_cbc' function. */
216356345Scy#define HAVE_EVP_AES_256_CBC 1
217356345Scy
218307729Sdes/* Define to 1 if you have the `EVP_cleanup' function. */
219307729Sdes#define HAVE_EVP_CLEANUP 1
220307729Sdes
221356345Scy/* Define to 1 if you have the `EVP_DigestVerify' function. */
222356345Scy/* #undef HAVE_EVP_DIGESTVERIFY */
223356345Scy
224356345Scy/* Define to 1 if you have the `EVP_dss1' function. */
225356345Scy/* #undef HAVE_EVP_DSS1 */
226356345Scy
227356345Scy/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
228356345Scy/* #undef HAVE_EVP_ENCRYPTINIT_EX */
229356345Scy
230368129Scy/* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
231368129Scy/* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */
232368129Scy
233307729Sdes/* Define to 1 if you have the `EVP_MD_CTX_new' function. */
234307729Sdes/* #undef HAVE_EVP_MD_CTX_NEW */
235307729Sdes
236255581Sdes/* Define to 1 if you have the `EVP_sha1' function. */
237255581Sdes#define HAVE_EVP_SHA1 1
238255581Sdes
239255581Sdes/* Define to 1 if you have the `EVP_sha256' function. */
240255581Sdes#define HAVE_EVP_SHA256 1
241255581Sdes
242255581Sdes/* Define to 1 if you have the `EVP_sha512' function. */
243255581Sdes#define HAVE_EVP_SHA512 1
244255581Sdes
245255581Sdes/* Define to 1 if you have the `ev_default_loop' function. */
246255581Sdes/* #undef HAVE_EV_DEFAULT_LOOP */
247255581Sdes
248255581Sdes/* Define to 1 if you have the `ev_loop' function. */
249255581Sdes/* #undef HAVE_EV_LOOP */
250255581Sdes
251255581Sdes/* Define to 1 if you have the <expat.h> header file. */
252255581Sdes#define HAVE_EXPAT_H 1
253255581Sdes
254356345Scy/* Define to 1 if you have the `explicit_bzero' function. */
255356345Scy#define HAVE_EXPLICIT_BZERO 1
256356345Scy
257255581Sdes/* Define to 1 if you have the `fcntl' function. */
258255581Sdes#define HAVE_FCNTL 1
259255581Sdes
260255581Sdes/* Define to 1 if you have the `FIPS_mode' function. */
261255581Sdes#define HAVE_FIPS_MODE 1
262255581Sdes
263255581Sdes/* Define to 1 if you have the `fork' function. */
264255581Sdes#define HAVE_FORK 1
265255581Sdes
266255581Sdes/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
267255581Sdes#define HAVE_FSEEKO 1
268255581Sdes
269292206Sdes/* Define to 1 if you have the `fsync' function. */
270292206Sdes#define HAVE_FSYNC 1
271292206Sdes
272255581Sdes/* Whether getaddrinfo is available */
273255581Sdes#define HAVE_GETADDRINFO 1
274255581Sdes
275282089Sdes/* Define to 1 if you have the `getauxval' function. */
276282089Sdes/* #undef HAVE_GETAUXVAL */
277282089Sdes
278276605Sdes/* Define to 1 if you have the `getentropy' function. */
279276605Sdes/* #undef HAVE_GETENTROPY */
280276605Sdes
281368129Scy/* Define to 1 if you have the `getifaddrs' function. */
282368129Scy#define HAVE_GETIFADDRS 1
283368129Scy
284255581Sdes/* Define to 1 if you have the <getopt.h> header file. */
285255581Sdes#define HAVE_GETOPT_H 1
286255581Sdes
287255581Sdes/* Define to 1 if you have the `getpwnam' function. */
288255581Sdes#define HAVE_GETPWNAM 1
289255581Sdes
290255581Sdes/* Define to 1 if you have the `getrlimit' function. */
291255581Sdes#define HAVE_GETRLIMIT 1
292255581Sdes
293255581Sdes/* Define to 1 if you have the `glob' function. */
294255581Sdes#define HAVE_GLOB 1
295255581Sdes
296255581Sdes/* Define to 1 if you have the <glob.h> header file. */
297255581Sdes#define HAVE_GLOB_H 1
298255581Sdes
299255581Sdes/* Define to 1 if you have the `gmtime_r' function. */
300255581Sdes#define HAVE_GMTIME_R 1
301255581Sdes
302255581Sdes/* Define to 1 if you have the <grp.h> header file. */
303255581Sdes#define HAVE_GRP_H 1
304255581Sdes
305356345Scy/* Define to 1 if you have the <hiredis/hiredis.h> header file. */
306356345Scy/* #undef HAVE_HIREDIS_HIREDIS_H */
307356345Scy
308356345Scy/* Define to 1 if you have the `HMAC_Init_ex' function. */
309356345Scy#define HAVE_HMAC_INIT_EX 1
310356345Scy
311368129Scy/* If we have htobe64 */
312368129Scy/* #undef HAVE_HTOBE64 */
313255581Sdes
314368129Scy/* Define to 1 if you have the <ifaddrs.h> header file. */
315368129Scy#define HAVE_IFADDRS_H 1
316368129Scy
317255581Sdes/* Define to 1 if you have the `inet_aton' function. */
318255581Sdes#define HAVE_INET_ATON 1
319255581Sdes
320255581Sdes/* Define to 1 if you have the `inet_ntop' function. */
321255581Sdes#define HAVE_INET_NTOP 1
322255581Sdes
323255581Sdes/* Define to 1 if you have the `inet_pton' function. */
324255581Sdes#define HAVE_INET_PTON 1
325255581Sdes
326255581Sdes/* Define to 1 if you have the `initgroups' function. */
327255581Sdes#define HAVE_INITGROUPS 1
328255581Sdes
329255581Sdes/* Define to 1 if you have the <inttypes.h> header file. */
330255581Sdes#define HAVE_INTTYPES_H 1
331255581Sdes
332255581Sdes/* if the function 'ioctlsocket' is available */
333255581Sdes/* #undef HAVE_IOCTLSOCKET */
334255581Sdes
335255581Sdes/* Define to 1 if you have the <iphlpapi.h> header file. */
336255581Sdes/* #undef HAVE_IPHLPAPI_H */
337255581Sdes
338292206Sdes/* Define to 1 if you have the `isblank' function. */
339292206Sdes#define HAVE_ISBLANK 1
340292206Sdes
341255581Sdes/* Define to 1 if you have the `kill' function. */
342255581Sdes#define HAVE_KILL 1
343255581Sdes
344368129Scy/* Use portable libbsd functions */
345368129Scy/* #undef HAVE_LIBBSD */
346368129Scy
347356345Scy/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
348356345Scy/* #undef HAVE_LIBKERN_OSBYTEORDER_H */
349356345Scy
350276605Sdes/* Define if we have LibreSSL */
351276605Sdes/* #undef HAVE_LIBRESSL */
352276605Sdes
353255581Sdes/* Define to 1 if you have the `localtime_r' function. */
354255581Sdes#define HAVE_LOCALTIME_R 1
355255581Sdes
356255581Sdes/* Define to 1 if you have the <login_cap.h> header file. */
357255581Sdes#define HAVE_LOGIN_CAP_H 1
358255581Sdes
359255581Sdes/* If have GNU libc compatible malloc */
360255581Sdes#define HAVE_MALLOC 1
361255581Sdes
362255581Sdes/* Define to 1 if you have the `memmove' function. */
363255581Sdes#define HAVE_MEMMOVE 1
364255581Sdes
365255581Sdes/* Define to 1 if you have the <memory.h> header file. */
366255581Sdes#define HAVE_MEMORY_H 1
367255581Sdes
368255581Sdes/* Define to 1 if you have the <netdb.h> header file. */
369255581Sdes#define HAVE_NETDB_H 1
370255581Sdes
371255581Sdes/* Define to 1 if you have the <netinet/in.h> header file. */
372255581Sdes#define HAVE_NETINET_IN_H 1
373255581Sdes
374296415Sdes/* Define to 1 if you have the <netinet/tcp.h> header file. */
375296415Sdes#define HAVE_NETINET_TCP_H 1
376296415Sdes
377292206Sdes/* Use libnettle for crypto */
378292206Sdes/* #undef HAVE_NETTLE */
379292206Sdes
380307729Sdes/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
381307729Sdes/* #undef HAVE_NETTLE_DSA_COMPAT_H */
382307729Sdes
383356345Scy/* Define to 1 if you have the <nettle/eddsa.h> header file. */
384356345Scy/* #undef HAVE_NETTLE_EDDSA_H */
385356345Scy
386368129Scy/* Define to 1 if you have the <net/if.h> header file. */
387368129Scy#define HAVE_NET_IF_H 1
388368129Scy
389368129Scy/* Define this to use nghttp2 client. */
390368129Scy/* #undef HAVE_NGHTTP2 */
391368129Scy
392368129Scy/* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */
393368129Scy/* #undef HAVE_NGHTTP2_NGHTTP2_H */
394368129Scy
395255581Sdes/* Use libnss for crypto */
396255581Sdes/* #undef HAVE_NSS */
397255581Sdes
398307729Sdes/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
399307729Sdes#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1
400307729Sdes
401307729Sdes/* Define to 1 if you have the <openssl/bn.h> header file. */
402307729Sdes#define HAVE_OPENSSL_BN_H 1
403307729Sdes
404255581Sdes/* Define to 1 if you have the `OPENSSL_config' function. */
405255581Sdes#define HAVE_OPENSSL_CONFIG 1
406255581Sdes
407255581Sdes/* Define to 1 if you have the <openssl/conf.h> header file. */
408255581Sdes#define HAVE_OPENSSL_CONF_H 1
409255581Sdes
410368129Scy/* Define to 1 if you have the <openssl/core_names.h> header file. */
411368129Scy/* #undef HAVE_OPENSSL_CORE_NAMES_H */
412368129Scy
413307729Sdes/* Define to 1 if you have the <openssl/dh.h> header file. */
414307729Sdes#define HAVE_OPENSSL_DH_H 1
415307729Sdes
416307729Sdes/* Define to 1 if you have the <openssl/dsa.h> header file. */
417307729Sdes#define HAVE_OPENSSL_DSA_H 1
418307729Sdes
419255581Sdes/* Define to 1 if you have the <openssl/engine.h> header file. */
420255581Sdes#define HAVE_OPENSSL_ENGINE_H 1
421255581Sdes
422255581Sdes/* Define to 1 if you have the <openssl/err.h> header file. */
423255581Sdes#define HAVE_OPENSSL_ERR_H 1
424255581Sdes
425307729Sdes/* Define to 1 if you have the `OPENSSL_init_crypto' function. */
426307729Sdes/* #undef HAVE_OPENSSL_INIT_CRYPTO */
427307729Sdes
428307729Sdes/* Define to 1 if you have the `OPENSSL_init_ssl' function. */
429307729Sdes/* #undef HAVE_OPENSSL_INIT_SSL */
430307729Sdes
431255581Sdes/* Define to 1 if you have the <openssl/rand.h> header file. */
432255581Sdes#define HAVE_OPENSSL_RAND_H 1
433255581Sdes
434307729Sdes/* Define to 1 if you have the <openssl/rsa.h> header file. */
435307729Sdes#define HAVE_OPENSSL_RSA_H 1
436307729Sdes
437255581Sdes/* Define to 1 if you have the <openssl/ssl.h> header file. */
438255581Sdes#define HAVE_OPENSSL_SSL_H 1
439255581Sdes
440255581Sdes/* Define if you have POSIX threads libraries and header files. */
441255581Sdes#define HAVE_PTHREAD 1
442255581Sdes
443266114Sdes/* Have PTHREAD_PRIO_INHERIT. */
444266114Sdes#define HAVE_PTHREAD_PRIO_INHERIT 1
445266114Sdes
446255581Sdes/* Define to 1 if the system has the type `pthread_rwlock_t'. */
447255581Sdes#define HAVE_PTHREAD_RWLOCK_T 1
448255581Sdes
449255581Sdes/* Define to 1 if the system has the type `pthread_spinlock_t'. */
450255581Sdes#define HAVE_PTHREAD_SPINLOCK_T 1
451255581Sdes
452255581Sdes/* Define to 1 if you have the <pwd.h> header file. */
453255581Sdes#define HAVE_PWD_H 1
454255581Sdes
455255581Sdes/* Define if you have Python libraries and header files. */
456255581Sdes/* #undef HAVE_PYTHON */
457255581Sdes
458255581Sdes/* Define to 1 if you have the `random' function. */
459255581Sdes#define HAVE_RANDOM 1
460255581Sdes
461307729Sdes/* Define to 1 if you have the `RAND_cleanup' function. */
462307729Sdes#define HAVE_RAND_CLEANUP 1
463307729Sdes
464356345Scy/* If we have reallocarray(3) */
465287917Sdes#define HAVE_REALLOCARRAY 1
466287917Sdes
467255581Sdes/* Define to 1 if you have the `recvmsg' function. */
468255581Sdes#define HAVE_RECVMSG 1
469255581Sdes
470255581Sdes/* Define to 1 if you have the `sendmsg' function. */
471255581Sdes#define HAVE_SENDMSG 1
472255581Sdes
473255581Sdes/* Define to 1 if you have the `setregid' function. */
474255581Sdes/* #undef HAVE_SETREGID */
475255581Sdes
476255581Sdes/* Define to 1 if you have the `setresgid' function. */
477255581Sdes#define HAVE_SETRESGID 1
478255581Sdes
479255581Sdes/* Define to 1 if you have the `setresuid' function. */
480255581Sdes#define HAVE_SETRESUID 1
481255581Sdes
482255581Sdes/* Define to 1 if you have the `setreuid' function. */
483255581Sdes/* #undef HAVE_SETREUID */
484255581Sdes
485255581Sdes/* Define to 1 if you have the `setrlimit' function. */
486255581Sdes#define HAVE_SETRLIMIT 1
487255581Sdes
488255581Sdes/* Define to 1 if you have the `setsid' function. */
489255581Sdes#define HAVE_SETSID 1
490255581Sdes
491255581Sdes/* Define to 1 if you have the `setusercontext' function. */
492255581Sdes#define HAVE_SETUSERCONTEXT 1
493255581Sdes
494276605Sdes/* Define to 1 if you have the `SHA512_Update' function. */
495276605Sdes/* #undef HAVE_SHA512_UPDATE */
496276605Sdes
497356345Scy/* Define to 1 if you have the `shmget' function. */
498356345Scy#define HAVE_SHMGET 1
499356345Scy
500255581Sdes/* Define to 1 if you have the `sigprocmask' function. */
501255581Sdes#define HAVE_SIGPROCMASK 1
502255581Sdes
503255581Sdes/* Define to 1 if you have the `sleep' function. */
504255581Sdes#define HAVE_SLEEP 1
505255581Sdes
506255581Sdes/* Define to 1 if you have the `snprintf' function. */
507255581Sdes#define HAVE_SNPRINTF 1
508255581Sdes
509255581Sdes/* Define to 1 if you have the `socketpair' function. */
510255581Sdes#define HAVE_SOCKETPAIR 1
511255581Sdes
512255581Sdes/* Using Solaris threads */
513255581Sdes/* #undef HAVE_SOLARIS_THREADS */
514255581Sdes
515255581Sdes/* Define to 1 if you have the `srandom' function. */
516255581Sdes#define HAVE_SRANDOM 1
517255581Sdes
518255581Sdes/* Define if you have the SSL libraries installed. */
519255581Sdes#define HAVE_SSL /**/
520255581Sdes
521368129Scy/* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */
522368129Scy#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1
523368129Scy
524356345Scy/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
525356345Scy/* #undef HAVE_SSL_CTX_SET_CIPHERSUITES */
526356345Scy
527356345Scy/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
528356345Scy/* #undef HAVE_SSL_CTX_SET_SECURITY_LEVEL */
529356345Scy
530368129Scy/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb'
531368129Scy   function. */
532368129Scy/* #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB */
533356345Scy
534356345Scy/* Define to 1 if you have the `SSL_get0_peername' function. */
535356345Scy/* #undef HAVE_SSL_GET0_PEERNAME */
536356345Scy
537356345Scy/* Define to 1 if you have the `SSL_set1_host' function. */
538356345Scy/* #undef HAVE_SSL_SET1_HOST */
539356345Scy
540255581Sdes/* Define to 1 if you have the <stdarg.h> header file. */
541255581Sdes#define HAVE_STDARG_H 1
542255581Sdes
543255581Sdes/* Define to 1 if you have the <stdbool.h> header file. */
544255581Sdes#define HAVE_STDBOOL_H 1
545255581Sdes
546255581Sdes/* Define to 1 if you have the <stdint.h> header file. */
547255581Sdes#define HAVE_STDINT_H 1
548255581Sdes
549255581Sdes/* Define to 1 if you have the <stdlib.h> header file. */
550255581Sdes#define HAVE_STDLIB_H 1
551255581Sdes
552255581Sdes/* Define to 1 if you have the `strftime' function. */
553255581Sdes#define HAVE_STRFTIME 1
554255581Sdes
555255581Sdes/* Define to 1 if you have the <strings.h> header file. */
556255581Sdes#define HAVE_STRINGS_H 1
557255581Sdes
558255581Sdes/* Define to 1 if you have the <string.h> header file. */
559255581Sdes#define HAVE_STRING_H 1
560255581Sdes
561266114Sdes/* Define to 1 if you have the `strlcat' function. */
562266114Sdes#define HAVE_STRLCAT 1
563266114Sdes
564255581Sdes/* Define to 1 if you have the `strlcpy' function. */
565255581Sdes#define HAVE_STRLCPY 1
566255581Sdes
567255581Sdes/* Define to 1 if you have the `strptime' function. */
568255581Sdes#define HAVE_STRPTIME 1
569255581Sdes
570307729Sdes/* Define to 1 if you have the `strsep' function. */
571307729Sdes#define HAVE_STRSEP 1
572307729Sdes
573255581Sdes/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
574255581Sdes/* #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST */
575255581Sdes
576277057Sdes/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
577277057Sdes#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
578277057Sdes
579255581Sdes/* Define if you have Swig libraries and header files. */
580255581Sdes/* #undef HAVE_SWIG */
581255581Sdes
582255581Sdes/* Define to 1 if you have the <syslog.h> header file. */
583255581Sdes#define HAVE_SYSLOG_H 1
584255581Sdes
585356345Scy/* Define to 1 if systemd should be used */
586356345Scy/* #undef HAVE_SYSTEMD */
587356345Scy
588356345Scy/* Define to 1 if you have the <sys/endian.h> header file. */
589356345Scy#define HAVE_SYS_ENDIAN_H 1
590356345Scy
591356345Scy/* Define to 1 if you have the <sys/ipc.h> header file. */
592356345Scy#define HAVE_SYS_IPC_H 1
593356345Scy
594255581Sdes/* Define to 1 if you have the <sys/param.h> header file. */
595255581Sdes#define HAVE_SYS_PARAM_H 1
596255581Sdes
597255581Sdes/* Define to 1 if you have the <sys/resource.h> header file. */
598255581Sdes#define HAVE_SYS_RESOURCE_H 1
599255581Sdes
600368129Scy/* Define to 1 if you have the <sys/select.h> header file. */
601368129Scy#define HAVE_SYS_SELECT_H 1
602368129Scy
603276605Sdes/* Define to 1 if you have the <sys/sha2.h> header file. */
604276605Sdes/* #undef HAVE_SYS_SHA2_H */
605276605Sdes
606356345Scy/* Define to 1 if you have the <sys/shm.h> header file. */
607356345Scy#define HAVE_SYS_SHM_H 1
608356345Scy
609255581Sdes/* Define to 1 if you have the <sys/socket.h> header file. */
610255581Sdes#define HAVE_SYS_SOCKET_H 1
611255581Sdes
612255581Sdes/* Define to 1 if you have the <sys/stat.h> header file. */
613255581Sdes#define HAVE_SYS_STAT_H 1
614255581Sdes
615276605Sdes/* Define to 1 if you have the <sys/sysctl.h> header file. */
616276605Sdes/* #undef HAVE_SYS_SYSCTL_H */
617276605Sdes
618255581Sdes/* Define to 1 if you have the <sys/types.h> header file. */
619255581Sdes#define HAVE_SYS_TYPES_H 1
620255581Sdes
621255581Sdes/* Define to 1 if you have the <sys/uio.h> header file. */
622255581Sdes#define HAVE_SYS_UIO_H 1
623255581Sdes
624276699Sdes/* Define to 1 if you have the <sys/un.h> header file. */
625276699Sdes#define HAVE_SYS_UN_H 1
626276699Sdes
627255581Sdes/* Define to 1 if you have the <sys/wait.h> header file. */
628255581Sdes#define HAVE_SYS_WAIT_H 1
629255581Sdes
630368129Scy/* Define to 1 if you have the <TargetConditionals.h> header file. */
631368129Scy/* #undef HAVE_TARGETCONDITIONALS_H */
632368129Scy
633255581Sdes/* Define to 1 if you have the <time.h> header file. */
634255581Sdes#define HAVE_TIME_H 1
635255581Sdes
636255581Sdes/* Define to 1 if you have the `tzset' function. */
637255581Sdes#define HAVE_TZSET 1
638255581Sdes
639255581Sdes/* Define to 1 if you have the <unistd.h> header file. */
640255581Sdes#define HAVE_UNISTD_H 1
641255581Sdes
642255581Sdes/* Define to 1 if you have the `usleep' function. */
643255581Sdes#define HAVE_USLEEP 1
644255581Sdes
645255581Sdes/* Define to 1 if you have the `vfork' function. */
646255581Sdes#define HAVE_VFORK 1
647255581Sdes
648255581Sdes/* Define to 1 if you have the <vfork.h> header file. */
649255581Sdes/* #undef HAVE_VFORK_H */
650255581Sdes
651255581Sdes/* Define to 1 if you have the <windows.h> header file. */
652255581Sdes/* #undef HAVE_WINDOWS_H */
653255581Sdes
654255581Sdes/* Using Windows threads */
655255581Sdes/* #undef HAVE_WINDOWS_THREADS */
656255581Sdes
657255581Sdes/* Define to 1 if you have the <winsock2.h> header file. */
658255581Sdes/* #undef HAVE_WINSOCK2_H */
659255581Sdes
660255581Sdes/* Define to 1 if `fork' works. */
661255581Sdes#define HAVE_WORKING_FORK 1
662255581Sdes
663255581Sdes/* Define to 1 if `vfork' works. */
664255581Sdes#define HAVE_WORKING_VFORK 1
665255581Sdes
666255581Sdes/* Define to 1 if you have the `writev' function. */
667255581Sdes#define HAVE_WRITEV 1
668255581Sdes
669255581Sdes/* Define to 1 if you have the <ws2tcpip.h> header file. */
670255581Sdes/* #undef HAVE_WS2TCPIP_H */
671255581Sdes
672356345Scy/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
673356345Scy#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1
674356345Scy
675255581Sdes/* Define to 1 if you have the `_beginthreadex' function. */
676255581Sdes/* #undef HAVE__BEGINTHREADEX */
677255581Sdes
678356345Scy/* If HMAC_Init_ex() returns void */
679356345Scy/* #undef HMAC_INIT_EX_RETURNS_VOID */
680356345Scy
681255581Sdes/* if lex has yylex_destroy */
682255581Sdes#define LEX_HAS_YYLEX_DESTROY 1
683255581Sdes
684296415Sdes/* Define to the sub-directory where libtool stores uninstalled libraries. */
685255581Sdes#define LT_OBJDIR ".libs/"
686255581Sdes
687255581Sdes/* Define to the maximum message length to pass to syslog. */
688255581Sdes#define MAXSYSLOGMSGLEN 10240
689255581Sdes
690255581Sdes/* Define if memcmp() does not compare unsigned bytes */
691255581Sdes/* #undef MEMCMP_IS_BROKEN */
692255581Sdes
693255581Sdes/* Define if mkdir has one argument. */
694255581Sdes/* #undef MKDIR_HAS_ONE_ARG */
695255581Sdes
696255581Sdes/* Define if the network stack does not fully support nonblocking io (causes
697255581Sdes   lower performance). */
698255581Sdes/* #undef NONBLOCKING_IS_BROKEN */
699255581Sdes
700255581Sdes/* Put -D_ALL_SOURCE define in config.h */
701255581Sdes/* #undef OMITTED__D_ALL_SOURCE */
702255581Sdes
703255581Sdes/* Put -D_BSD_SOURCE define in config.h */
704255581Sdes/* #undef OMITTED__D_BSD_SOURCE */
705255581Sdes
706296415Sdes/* Put -D_DEFAULT_SOURCE define in config.h */
707296415Sdes/* #undef OMITTED__D_DEFAULT_SOURCE */
708296415Sdes
709255581Sdes/* Put -D_GNU_SOURCE define in config.h */
710255581Sdes/* #undef OMITTED__D_GNU_SOURCE */
711255581Sdes
712255581Sdes/* Put -D_LARGEFILE_SOURCE=1 define in config.h */
713255581Sdes/* #undef OMITTED__D_LARGEFILE_SOURCE_1 */
714255581Sdes
715255581Sdes/* Put -D_POSIX_C_SOURCE=200112 define in config.h */
716255581Sdes/* #undef OMITTED__D_POSIX_C_SOURCE_200112 */
717255581Sdes
718255581Sdes/* Put -D_XOPEN_SOURCE=600 define in config.h */
719255581Sdes/* #undef OMITTED__D_XOPEN_SOURCE_600 */
720255581Sdes
721255581Sdes/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
722255581Sdes/* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */
723255581Sdes
724255581Sdes/* Put -D__EXTENSIONS__ define in config.h */
725255581Sdes/* #undef OMITTED__D__EXTENSIONS__ */
726255581Sdes
727255581Sdes/* Define to the address where bug reports for this package should be sent. */
728356345Scy#define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues"
729255581Sdes
730255581Sdes/* Define to the full name of this package. */
731255581Sdes#define PACKAGE_NAME "unbound"
732255581Sdes
733255581Sdes/* Define to the full name and version of this package. */
734369939Sgit2svn#define PACKAGE_STRING "unbound 1.13.1"
735255581Sdes
736255581Sdes/* Define to the one symbol short name of this package. */
737255581Sdes#define PACKAGE_TARNAME "unbound"
738255581Sdes
739255581Sdes/* Define to the home page for this package. */
740255581Sdes#define PACKAGE_URL ""
741255581Sdes
742255581Sdes/* Define to the version of this package. */
743369939Sgit2svn#define PACKAGE_VERSION "1.13.1"
744255581Sdes
745255581Sdes/* default pidfile location */
746255581Sdes#define PIDFILE "/var/unbound/unbound.pid"
747255581Sdes
748255581Sdes/* Define to necessary symbol if this constant uses a non-standard name on
749255581Sdes   your system. */
750255581Sdes/* #undef PTHREAD_CREATE_JOINABLE */
751255581Sdes
752255581Sdes/* Define as the return type of signal handlers (`int' or `void'). */
753255581Sdes#define RETSIGTYPE void
754255581Sdes
755356345Scy/* if REUSEPORT is enabled by default */
756356345Scy#define REUSEPORT_DEFAULT 0
757356345Scy
758255581Sdes/* default rootkey location */
759255581Sdes#define ROOT_ANCHOR_FILE "/var/unbound/root.key"
760255581Sdes
761255581Sdes/* default rootcert location */
762255581Sdes#define ROOT_CERT_FILE "/var/unbound/icannbundle.pem"
763255581Sdes
764255581Sdes/* version number for resource files */
765369939Sgit2svn#define RSRC_PACKAGE_VERSION 1,13,1,0
766255581Sdes
767255581Sdes/* Directory to chdir to */
768255581Sdes#define RUN_DIR "/var/unbound"
769255581Sdes
770255581Sdes/* Shared data */
771255581Sdes#define SHARE_DIR "/var/unbound"
772255581Sdes
773356345Scy/* The size of `size_t'. */
774356345Scy#ifdef  __LP64__
775356345Scy#define SIZEOF_SIZE_T 8
776356345Scy#else
777356345Scy#define SIZEOF_SIZE_T 4
778356345Scy#endif
779356345Scy
780266114Sdes/* The size of `time_t', as computed by sizeof. */
781356345Scy#ifdef  __i386__
782356345Scy#define SIZEOF_TIME_T 4
783356345Scy#else
784266114Sdes#define SIZEOF_TIME_T 8
785356345Scy#endif
786266114Sdes
787292206Sdes/* define if (v)snprintf does not return length needed, (but length used) */
788292206Sdes/* #undef SNPRINTF_RET_BROKEN */
789292206Sdes
790356345Scy/* Define to 1 if libsodium supports sodium_set_misuse_handler */
791356345Scy/* #undef SODIUM_MISUSE_HANDLER */
792356345Scy
793255581Sdes/* Define to 1 if you have the ANSI C header files. */
794255581Sdes#define STDC_HEADERS 1
795255581Sdes
796255581Sdes/* use default strptime. */
797255581Sdes#define STRPTIME_WORKS 1
798255581Sdes
799255581Sdes/* Use win32 resources and API */
800255581Sdes/* #undef UB_ON_WINDOWS */
801255581Sdes
802356345Scy/* the SYSLOG_FACILITY to use, default LOG_DAEMON */
803356345Scy#define UB_SYSLOG_FACILITY LOG_DAEMON
804356345Scy
805255581Sdes/* default username */
806255581Sdes#define UB_USERNAME "unbound"
807255581Sdes
808255581Sdes/* use to enable lightweight alloc assertions, for debug use */
809255581Sdes/* #undef UNBOUND_ALLOC_LITE */
810255581Sdes
811255581Sdes/* use malloc not regions, for debug use */
812255581Sdes/* #undef UNBOUND_ALLOC_NONREGIONAL */
813255581Sdes
814255581Sdes/* use statistics for allocs and frees, for debug use */
815255581Sdes/* #undef UNBOUND_ALLOC_STATS */
816255581Sdes
817255581Sdes/* define this to enable debug checks. */
818255581Sdes/* #undef UNBOUND_DEBUG */
819255581Sdes
820307729Sdes/* Define to 1 to use cachedb support */
821307729Sdes/* #undef USE_CACHEDB */
822307729Sdes
823356345Scy/* Define to 1 to enable dnscrypt support */
824356345Scy/* #undef USE_DNSCRYPT */
825356345Scy
826356345Scy/* Define to 1 to enable dnscrypt with xchacha20 support */
827356345Scy/* #undef USE_DNSCRYPT_XCHACHA20 */
828356345Scy
829276605Sdes/* Define to 1 to enable dnstap support */
830276605Sdes/* #undef USE_DNSTAP */
831276605Sdes
832307729Sdes/* Define this to enable DSA support. */
833307729Sdes#define USE_DSA 1
834307729Sdes
835255581Sdes/* Define this to enable ECDSA support. */
836255581Sdes#define USE_ECDSA 1
837255581Sdes
838255581Sdes/* Define this to enable an EVP workaround for older openssl */
839255581Sdes/* #undef USE_ECDSA_EVP_WORKAROUND */
840255581Sdes
841356345Scy/* Define this to enable ED25519 support. */
842356345Scy#define USE_ED25519 1
843356345Scy
844356345Scy/* Define this to enable ED448 support. */
845356345Scy#define USE_ED448 1
846356345Scy
847255581Sdes/* Define this to enable GOST support. */
848356345Scy/* #undef USE_GOST */
849255581Sdes
850356345Scy/* Define to 1 to use ipsecmod support. */
851356345Scy/* #undef USE_IPSECMOD */
852356345Scy
853356345Scy/* Define to 1 to use ipset support */
854356345Scy/* #undef USE_IPSET */
855356345Scy
856368129Scy/* Define if you enable libevent */
857368129Scy#define USE_LIBEVENT 1
858368129Scy
859255581Sdes/* Define if you want to use internal select based events */
860255581Sdes#define USE_MINI_EVENT 1
861255581Sdes
862307729Sdes/* Define this to enable client TCP Fast Open. */
863307729Sdes/* #undef USE_MSG_FASTOPEN */
864307729Sdes
865307729Sdes/* Define this to enable client TCP Fast Open. */
866307729Sdes/* #undef USE_OSX_MSG_FASTOPEN */
867307729Sdes
868356345Scy/* Define this to use hiredis client. */
869356345Scy/* #undef USE_REDIS */
870356345Scy
871356345Scy/* Define this to enable SHA1 support. */
872356345Scy#define USE_SHA1 1
873356345Scy
874255581Sdes/* Define this to enable SHA256 and SHA512 support. */
875255581Sdes#define USE_SHA2 1
876255581Sdes
877255581Sdes/* Enable extensions on AIX 3, Interix.  */
878255581Sdes#ifndef _ALL_SOURCE
879255581Sdes# define _ALL_SOURCE 1
880255581Sdes#endif
881255581Sdes/* Enable GNU extensions on systems that have them.  */
882255581Sdes#ifndef _GNU_SOURCE
883255581Sdes# define _GNU_SOURCE 1
884255581Sdes#endif
885255581Sdes/* Enable threading extensions on Solaris.  */
886255581Sdes#ifndef _POSIX_PTHREAD_SEMANTICS
887255581Sdes# define _POSIX_PTHREAD_SEMANTICS 1
888255581Sdes#endif
889255581Sdes/* Enable extensions on HP NonStop.  */
890255581Sdes#ifndef _TANDEM_SOURCE
891255581Sdes# define _TANDEM_SOURCE 1
892255581Sdes#endif
893255581Sdes/* Enable general extensions on Solaris.  */
894255581Sdes#ifndef __EXTENSIONS__
895255581Sdes# define __EXTENSIONS__ 1
896255581Sdes#endif
897255581Sdes
898255581Sdes
899307729Sdes/* Define this to enable server TCP Fast Open. */
900307729Sdes/* #undef USE_TCP_FASTOPEN */
901307729Sdes
902255581Sdes/* Whether the windows socket API is used */
903255581Sdes/* #undef USE_WINSOCK */
904255581Sdes
905255581Sdes/* the version of the windows API enabled */
906255581Sdes#define WINVER 0x0502
907255581Sdes
908368129Scy/* Define if you want dynlib module. */
909368129Scy/* #undef WITH_DYNLIBMODULE */
910368129Scy
911255581Sdes/* Define if you want Python module. */
912255581Sdes/* #undef WITH_PYTHONMODULE */
913255581Sdes
914255581Sdes/* Define if you want PyUnbound. */
915255581Sdes/* #undef WITH_PYUNBOUND */
916255581Sdes
917255581Sdes/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
918255581Sdes   `char[]'. */
919255581Sdes#define YYTEXT_POINTER 1
920255581Sdes
921255581Sdes/* Enable large inode numbers on Mac OS X 10.5.  */
922255581Sdes#ifndef _DARWIN_USE_64_BIT_INODE
923255581Sdes# define _DARWIN_USE_64_BIT_INODE 1
924255581Sdes#endif
925255581Sdes
926255581Sdes/* Number of bits in a file offset, on hosts where this is settable. */
927255581Sdes/* #undef _FILE_OFFSET_BITS */
928255581Sdes
929255581Sdes/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
930255581Sdes/* #undef _LARGEFILE_SOURCE */
931255581Sdes
932255581Sdes/* Define for large files, on AIX-style hosts. */
933255581Sdes/* #undef _LARGE_FILES */
934255581Sdes
935255581Sdes/* Define to 1 if on MINIX. */
936255581Sdes/* #undef _MINIX */
937255581Sdes
938266114Sdes/* Enable for compile on Minix */
939266114Sdes/* #undef _NETBSD_SOURCE */
940266114Sdes
941255581Sdes/* Define to 2 if the system does not provide POSIX.1 features except with
942255581Sdes   this defined. */
943255581Sdes/* #undef _POSIX_1_SOURCE */
944255581Sdes
945255581Sdes/* Define to 1 if you need to in order for `stat' and other things to work. */
946255581Sdes/* #undef _POSIX_SOURCE */
947255581Sdes
948255581Sdes/* Define to empty if `const' does not conform to ANSI C. */
949255581Sdes/* #undef const */
950255581Sdes
951255581Sdes/* Define to `int' if <sys/types.h> doesn't define. */
952255581Sdes/* #undef gid_t */
953255581Sdes
954255581Sdes/* in_addr_t */
955255581Sdes/* #undef in_addr_t */
956255581Sdes
957255581Sdes/* in_port_t */
958255581Sdes/* #undef in_port_t */
959255581Sdes
960255581Sdes/* Define to `__inline__' or `__inline' if that's what the C compiler
961255581Sdes   calls it, or to nothing if 'inline' is not supported under any name.  */
962255581Sdes#ifndef __cplusplus
963255581Sdes/* #undef inline */
964255581Sdes#endif
965255581Sdes
966255581Sdes/* Define to `short' if <sys/types.h> does not define. */
967255581Sdes/* #undef int16_t */
968255581Sdes
969255581Sdes/* Define to `int' if <sys/types.h> does not define. */
970255581Sdes/* #undef int32_t */
971255581Sdes
972255581Sdes/* Define to `long long' if <sys/types.h> does not define. */
973255581Sdes/* #undef int64_t */
974255581Sdes
975255581Sdes/* Define to `signed char' if <sys/types.h> does not define. */
976255581Sdes/* #undef int8_t */
977255581Sdes
978255581Sdes/* Define if replacement function should be used. */
979255581Sdes/* #undef malloc */
980255581Sdes
981255581Sdes/* Define to `long int' if <sys/types.h> does not define. */
982255581Sdes/* #undef off_t */
983255581Sdes
984255581Sdes/* Define to `int' if <sys/types.h> does not define. */
985255581Sdes/* #undef pid_t */
986255581Sdes
987255581Sdes/* Define to 'int' if not defined */
988255581Sdes/* #undef rlim_t */
989255581Sdes
990255581Sdes/* Define to `unsigned int' if <sys/types.h> does not define. */
991255581Sdes/* #undef size_t */
992255581Sdes
993255581Sdes/* Define to 'int' if not defined */
994255581Sdes/* #undef socklen_t */
995255581Sdes
996255581Sdes/* Define to `int' if <sys/types.h> does not define. */
997255581Sdes/* #undef ssize_t */
998255581Sdes
999255581Sdes/* Define to 'unsigned char if not defined */
1000255581Sdes/* #undef u_char */
1001255581Sdes
1002255581Sdes/* Define to `int' if <sys/types.h> doesn't define. */
1003255581Sdes/* #undef uid_t */
1004255581Sdes
1005255581Sdes/* Define to `unsigned short' if <sys/types.h> does not define. */
1006255581Sdes/* #undef uint16_t */
1007255581Sdes
1008255581Sdes/* Define to `unsigned int' if <sys/types.h> does not define. */
1009255581Sdes/* #undef uint32_t */
1010255581Sdes
1011255581Sdes/* Define to `unsigned long long' if <sys/types.h> does not define. */
1012255581Sdes/* #undef uint64_t */
1013255581Sdes
1014255581Sdes/* Define to `unsigned char' if <sys/types.h> does not define. */
1015255581Sdes/* #undef uint8_t */
1016255581Sdes
1017255581Sdes/* Define as `fork' if `vfork' does not work. */
1018255581Sdes/* #undef vfork */
1019255581Sdes
1020255581Sdes#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
1021255581Sdes#define _GNU_SOURCE 1
1022255581Sdes#endif
1023255581Sdes
1024255581Sdes#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
1025255581Sdes#define _BSD_SOURCE 1
1026255581Sdes#endif
1027255581Sdes
1028296415Sdes#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
1029296415Sdes#define _DEFAULT_SOURCE 1
1030296415Sdes#endif
1031296415Sdes
1032255581Sdes#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
1033255581Sdes#define __EXTENSIONS__ 1
1034255581Sdes#endif
1035255581Sdes
1036255581Sdes#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
1037255581Sdes#define _POSIX_C_SOURCE 200112
1038255581Sdes#endif
1039255581Sdes
1040255581Sdes#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
1041255581Sdes#define _XOPEN_SOURCE 600
1042255581Sdes#endif
1043255581Sdes
1044255581Sdes#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
1045255581Sdes#define _XOPEN_SOURCE_EXTENDED 1
1046255581Sdes#endif
1047255581Sdes
1048255581Sdes#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
1049255581Sdes#define _ALL_SOURCE 1
1050255581Sdes#endif
1051255581Sdes
1052255581Sdes#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
1053255581Sdes#define _LARGEFILE_SOURCE 1
1054255581Sdes#endif
1055255581Sdes
1056255581Sdes
1057255581Sdes
1058255581Sdes
1059356345Scy#ifndef _OPENBSD_SOURCE
1060356345Scy#define _OPENBSD_SOURCE 1
1061356345Scy#endif
1062356345Scy
1063255581Sdes#ifndef UNBOUND_DEBUG
1064356345Scy# ifndef NDEBUG
1065255581Sdes#  define NDEBUG
1066356345Scy# endif
1067255581Sdes#endif
1068255581Sdes
1069266114Sdes/** Use small-ldns codebase */
1070266114Sdes#define USE_SLDNS 1
1071266114Sdes#ifdef HAVE_SSL
1072266114Sdes#  define LDNS_BUILD_CONFIG_HAVE_SSL 1
1073266114Sdes#endif
1074266114Sdes
1075255581Sdes#include <stdio.h>
1076255581Sdes#include <string.h>
1077255581Sdes#include <unistd.h>
1078255581Sdes#include <assert.h>
1079255581Sdes
1080255581Sdes#if STDC_HEADERS
1081255581Sdes#include <stdlib.h>
1082255581Sdes#include <stddef.h>
1083255581Sdes#endif
1084255581Sdes
1085266114Sdes#ifdef HAVE_STDARG_H
1086266114Sdes#include <stdarg.h>
1087266114Sdes#endif
1088266114Sdes
1089255581Sdes#ifdef HAVE_STDINT_H
1090255581Sdes#include <stdint.h>
1091255581Sdes#endif
1092255581Sdes
1093255581Sdes#include <errno.h>
1094255581Sdes
1095255581Sdes#if HAVE_SYS_PARAM_H
1096255581Sdes#include <sys/param.h>
1097255581Sdes#endif
1098255581Sdes
1099255581Sdes#ifdef HAVE_SYS_SOCKET_H
1100255581Sdes#include <sys/socket.h>
1101255581Sdes#endif
1102255581Sdes
1103255581Sdes#ifdef HAVE_SYS_UIO_H
1104255581Sdes#include <sys/uio.h>
1105255581Sdes#endif
1106255581Sdes
1107255581Sdes#ifdef HAVE_NETINET_IN_H
1108255581Sdes#include <netinet/in.h>
1109255581Sdes#endif
1110255581Sdes
1111296415Sdes#ifdef HAVE_NETINET_TCP_H
1112296415Sdes#include <netinet/tcp.h>
1113296415Sdes#endif
1114296415Sdes
1115255581Sdes#ifdef HAVE_ARPA_INET_H
1116255581Sdes#include <arpa/inet.h>
1117255581Sdes#endif
1118255581Sdes
1119255581Sdes#ifdef HAVE_WINSOCK2_H
1120255581Sdes#include <winsock2.h>
1121255581Sdes#endif
1122255581Sdes
1123255581Sdes#ifdef HAVE_WS2TCPIP_H
1124255581Sdes#include <ws2tcpip.h>
1125255581Sdes#endif
1126255581Sdes
1127266114Sdes#ifndef USE_WINSOCK
1128266114Sdes#define ARG_LL "%ll"
1129266114Sdes#else
1130266114Sdes#define ARG_LL "%I64"
1131266114Sdes#endif
1132255581Sdes
1133282089Sdes#ifndef AF_LOCAL
1134282089Sdes#define AF_LOCAL AF_UNIX
1135282089Sdes#endif
1136266114Sdes
1137282089Sdes
1138255581Sdes
1139255581Sdes#ifdef HAVE_ATTR_FORMAT
1140255581Sdes#  define ATTR_FORMAT(archetype, string_index, first_to_check) \
1141255581Sdes    __attribute__ ((format (archetype, string_index, first_to_check)))
1142255581Sdes#else /* !HAVE_ATTR_FORMAT */
1143255581Sdes#  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1144255581Sdes#endif /* !HAVE_ATTR_FORMAT */
1145255581Sdes
1146255581Sdes
1147255581Sdes#if defined(DOXYGEN)
1148255581Sdes#  define ATTR_UNUSED(x)  x
1149255581Sdes#elif defined(__cplusplus)
1150255581Sdes#  define ATTR_UNUSED(x)
1151255581Sdes#elif defined(HAVE_ATTR_UNUSED)
1152255581Sdes#  define ATTR_UNUSED(x)  x __attribute__((unused))
1153255581Sdes#else /* !HAVE_ATTR_UNUSED */
1154255581Sdes#  define ATTR_UNUSED(x)  x
1155255581Sdes#endif /* !HAVE_ATTR_UNUSED */
1156255581Sdes
1157255581Sdes
1158255581Sdes#ifndef HAVE_FSEEKO
1159255581Sdes#define fseeko fseek
1160255581Sdes#define ftello ftell
1161255581Sdes#endif /* HAVE_FSEEKO */
1162255581Sdes
1163255581Sdes
1164255581Sdes#ifndef MAXHOSTNAMELEN
1165255581Sdes#define MAXHOSTNAMELEN 256
1166255581Sdes#endif
1167255581Sdes
1168292206Sdes#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1169255581Sdes#define snprintf snprintf_unbound
1170255581Sdes#define vsnprintf vsnprintf_unbound
1171255581Sdes#include <stdarg.h>
1172255581Sdesint snprintf (char *str, size_t count, const char *fmt, ...);
1173255581Sdesint vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
1174292206Sdes#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1175255581Sdes
1176255581Sdes#ifndef HAVE_INET_PTON
1177255581Sdes#define inet_pton inet_pton_unbound
1178255581Sdesint inet_pton(int af, const char* src, void* dst);
1179255581Sdes#endif /* HAVE_INET_PTON */
1180255581Sdes
1181255581Sdes
1182255581Sdes#ifndef HAVE_INET_NTOP
1183255581Sdes#define inet_ntop inet_ntop_unbound
1184255581Sdesconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
1185255581Sdes#endif
1186255581Sdes
1187255581Sdes
1188255581Sdes#ifndef HAVE_INET_ATON
1189255581Sdes#define inet_aton inet_aton_unbound
1190255581Sdesint inet_aton(const char *cp, struct in_addr *addr);
1191255581Sdes#endif
1192255581Sdes
1193255581Sdes
1194255581Sdes#ifndef HAVE_MEMMOVE
1195255581Sdes#define memmove memmove_unbound
1196255581Sdesvoid *memmove(void *dest, const void *src, size_t n);
1197255581Sdes#endif
1198255581Sdes
1199255581Sdes
1200266114Sdes#ifndef HAVE_STRLCAT
1201266114Sdes#define strlcat strlcat_unbound
1202266114Sdessize_t strlcat(char *dst, const char *src, size_t siz);
1203266114Sdes#endif
1204266114Sdes
1205266114Sdes
1206255581Sdes#ifndef HAVE_STRLCPY
1207255581Sdes#define strlcpy strlcpy_unbound
1208255581Sdessize_t strlcpy(char *dst, const char *src, size_t siz);
1209255581Sdes#endif
1210255581Sdes
1211255581Sdes
1212255581Sdes#ifndef HAVE_GMTIME_R
1213255581Sdes#define gmtime_r gmtime_r_unbound
1214255581Sdesstruct tm *gmtime_r(const time_t *timep, struct tm *result);
1215255581Sdes#endif
1216255581Sdes
1217255581Sdes
1218287917Sdes#ifndef HAVE_REALLOCARRAY
1219287917Sdes#define reallocarray reallocarrayunbound
1220287917Sdesvoid* reallocarray(void *ptr, size_t nmemb, size_t size);
1221287917Sdes#endif
1222287917Sdes
1223287917Sdes
1224266114Sdes#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1225255581Sdes#define sleep(x) Sleep((x)*1000) /* on win32 */
1226255581Sdes#endif /* HAVE_SLEEP */
1227255581Sdes
1228255581Sdes
1229255581Sdes#ifndef HAVE_USLEEP
1230255581Sdes#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1231255581Sdes#endif /* HAVE_USLEEP */
1232255581Sdes
1233255581Sdes
1234255581Sdes#ifndef HAVE_RANDOM
1235255581Sdes#define random rand /* on win32, for tests only (bad random) */
1236255581Sdes#endif /* HAVE_RANDOM */
1237255581Sdes
1238255581Sdes
1239255581Sdes#ifndef HAVE_SRANDOM
1240255581Sdes#define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1241255581Sdes#endif /* HAVE_SRANDOM */
1242255581Sdes
1243255581Sdes
1244255581Sdes/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1245255581Sdes#ifdef HAVE_WINSOCK2_H
1246255581Sdes#define FD_SET_T (u_int)
1247255581Sdes#else
1248255581Sdes#define FD_SET_T
1249255581Sdes#endif
1250255581Sdes
1251255581Sdes
1252255581Sdes#ifndef IPV6_MIN_MTU
1253255581Sdes#define IPV6_MIN_MTU 1280
1254255581Sdes#endif /* IPV6_MIN_MTU */
1255255581Sdes
1256255581Sdes
1257255581Sdes#ifdef MEMCMP_IS_BROKEN
1258255581Sdes#include "compat/memcmp.h"
1259255581Sdes#define memcmp memcmp_unbound
1260255581Sdesint memcmp(const void *x, const void *y, size_t n);
1261255581Sdes#endif
1262255581Sdes
1263255581Sdes
1264255581Sdes
1265255581Sdes#ifndef HAVE_CTIME_R
1266255581Sdes#define ctime_r unbound_ctime_r
1267255581Sdeschar *ctime_r(const time_t *timep, char *buf);
1268255581Sdes#endif
1269255581Sdes
1270307729Sdes#ifndef HAVE_STRSEP
1271307729Sdes#define strsep unbound_strsep
1272307729Sdeschar *strsep(char **stringp, const char *delim);
1273307729Sdes#endif
1274307729Sdes
1275292206Sdes#ifndef HAVE_ISBLANK
1276292206Sdes#define isblank unbound_isblank
1277292206Sdesint isblank(int c);
1278292206Sdes#endif
1279292206Sdes
1280356345Scy#ifndef HAVE_EXPLICIT_BZERO
1281356345Scy#define explicit_bzero unbound_explicit_bzero
1282356345Scyvoid explicit_bzero(void* buf, size_t len);
1283356345Scy#endif
1284356345Scy
1285356345Scy#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
1286356345Scyconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
1287356345Scy#endif
1288356345Scy
1289356345Scy#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
1290356345Scyint inet_pton(int af, const char* src, void* dst);
1291356345Scy#endif
1292356345Scy
1293255581Sdes#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1294255581Sdes#define strptime unbound_strptime
1295255581Sdesstruct tm;
1296255581Sdeschar *strptime(const char *s, const char *format, struct tm *tm);
1297255581Sdes#endif
1298255581Sdes
1299356345Scy#if !HAVE_DECL_REALLOCARRAY
1300356345Scyvoid *reallocarray(void *ptr, size_t nmemb, size_t size);
1301356345Scy#endif
1302356345Scy
1303368129Scy#ifdef HAVE_LIBBSD
1304368129Scy#include <bsd/string.h>
1305368129Scy#include <bsd/stdlib.h>
1306368129Scy#endif
1307368129Scy
1308276605Sdes#ifdef HAVE_LIBRESSL
1309276605Sdes#  if !HAVE_DECL_STRLCPY
1310276605Sdessize_t strlcpy(char *dst, const char *src, size_t siz);
1311276605Sdes#  endif
1312276605Sdes#  if !HAVE_DECL_STRLCAT
1313276605Sdessize_t strlcat(char *dst, const char *src, size_t siz);
1314276605Sdes#  endif
1315276605Sdes#  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
1316276605Sdesuint32_t arc4random(void);
1317276605Sdes#  endif
1318276605Sdes#  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
1319276605Sdesuint32_t arc4random_uniform(uint32_t upper_bound);
1320276605Sdes#  endif
1321276605Sdes#endif /* HAVE_LIBRESSL */
1322276605Sdes#ifndef HAVE_ARC4RANDOM
1323276605Sdesint getentropy(void* buf, size_t len);
1324276605Sdesuint32_t arc4random(void);
1325276605Sdesvoid arc4random_buf(void* buf, size_t n);
1326276605Sdesvoid _ARC4_LOCK(void);
1327276605Sdesvoid _ARC4_UNLOCK(void);
1328356345Scyvoid _ARC4_LOCK_DESTROY(void);
1329276605Sdes#endif
1330276605Sdes#ifndef HAVE_ARC4RANDOM_UNIFORM
1331276605Sdesuint32_t arc4random_uniform(uint32_t upper_bound);
1332276605Sdes#endif
1333276605Sdes#ifdef COMPAT_SHA512
1334276605Sdes#ifndef SHA512_DIGEST_LENGTH
1335276605Sdes#define SHA512_BLOCK_LENGTH		128
1336276605Sdes#define SHA512_DIGEST_LENGTH		64
1337276605Sdes#define SHA512_DIGEST_STRING_LENGTH	(SHA512_DIGEST_LENGTH * 2 + 1)
1338276605Sdestypedef struct _SHA512_CTX {
1339276605Sdes	uint64_t	state[8];
1340276605Sdes	uint64_t	bitcount[2];
1341276605Sdes	uint8_t	buffer[SHA512_BLOCK_LENGTH];
1342276605Sdes} SHA512_CTX;
1343276605Sdes#endif /* SHA512_DIGEST_LENGTH */
1344276605Sdesvoid SHA512_Init(SHA512_CTX*);
1345276605Sdesvoid SHA512_Update(SHA512_CTX*, void*, size_t);
1346276605Sdesvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1347276605Sdesunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1348276605Sdes#endif /* COMPAT_SHA512 */
1349276605Sdes
1350276605Sdes
1351276605Sdes
1352255581Sdes#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))
1353255581Sdes   /* using version of libevent that is not threadsafe. */
1354255581Sdes#  define LIBEVENT_SIGNAL_PROBLEM 1
1355255581Sdes#endif
1356255581Sdes
1357255581Sdes#ifndef CHECKED_INET6
1358255581Sdes#  define CHECKED_INET6
1359255581Sdes#  ifdef AF_INET6
1360255581Sdes#    define INET6
1361255581Sdes#  else
1362255581Sdes#    define AF_INET6        28
1363255581Sdes#  endif
1364255581Sdes#endif /* CHECKED_INET6 */
1365255581Sdes
1366255581Sdes#ifndef HAVE_GETADDRINFO
1367255581Sdesstruct sockaddr_storage;
1368255581Sdes#include "compat/fake-rfc2553.h"
1369255581Sdes#endif
1370255581Sdes
1371255581Sdes#ifdef UNBOUND_ALLOC_STATS
1372255581Sdes#  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1373255581Sdes#  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1374255581Sdes#  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1375255581Sdes#  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1376255581Sdesvoid *unbound_stat_malloc(size_t size);
1377255581Sdesvoid *unbound_stat_calloc(size_t nmemb, size_t size);
1378255581Sdesvoid unbound_stat_free(void *ptr);
1379255581Sdesvoid *unbound_stat_realloc(void *ptr, size_t size);
1380255581Sdesvoid *unbound_stat_malloc_log(size_t size, const char* file, int line,
1381255581Sdes	const char* func);
1382255581Sdesvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1383255581Sdes	int line, const char* func);
1384255581Sdesvoid unbound_stat_free_log(void *ptr, const char* file, int line,
1385255581Sdes	const char* func);
1386255581Sdesvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1387255581Sdes	int line, const char* func);
1388255581Sdes#elif defined(UNBOUND_ALLOC_LITE)
1389255581Sdes#  include "util/alloc.h"
1390255581Sdes#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1391255581Sdes
1392255581Sdes/** default port for DNS traffic. */
1393255581Sdes#define UNBOUND_DNS_PORT 53
1394356345Scy/** default port for DNS over TLS traffic. */
1395356345Scy#define UNBOUND_DNS_OVER_TLS_PORT 853
1396368129Scy/** default port for DNS over HTTPS traffic. */
1397368129Scy#define UNBOUND_DNS_OVER_HTTPS_PORT 443
1398255581Sdes/** default port for unbound control traffic, registered port with IANA,
1399255581Sdes    ub-dns-control  8953/tcp    unbound dns nameserver control */
1400255581Sdes#define UNBOUND_CONTROL_PORT 8953
1401255581Sdes/** the version of unbound-control that this software implements */
1402255581Sdes#define UNBOUND_CONTROL_VERSION 1
1403255581Sdes
1404255581Sdes
1405