xref: /openbsd/usr.sbin/unbound/config.h.in (revision f6b99baf)
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
18933707f3Ssthen/* Pathname to the Unbound configuration file */
19933707f3Ssthen#undef CONFIGFILE
20933707f3Ssthen
21933707f3Ssthen/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
22933707f3Ssthen   */
23933707f3Ssthen#undef DARWIN_BROKEN_SETREUID
24933707f3Ssthen
25933707f3Ssthen/* Whether daemon is deprecated */
26933707f3Ssthen#undef DEPRECATED_DAEMON
27933707f3Ssthen
2898f3ca02Sbrad/* default dnstap socket path */
2998f3ca02Sbrad#undef DNSTAP_SOCKET_PATH
3098f3ca02Sbrad
31933707f3Ssthen/* Define if you want to use debug lock checking (slow). */
32933707f3Ssthen#undef ENABLE_LOCK_CHECKS
33933707f3Ssthen
34933707f3Ssthen/* Define this if you enabled-allsymbols from libunbound to link binaries to
35933707f3Ssthen   it for smaller install size, but the libunbound export table is polluted by
36933707f3Ssthen   internal symbols */
37933707f3Ssthen#undef EXPORT_ALL_SYMBOLS
38933707f3Ssthen
3920237c55Ssthen/* Define to 1 if you have the `accept4' function. */
4020237c55Ssthen#undef HAVE_ACCEPT4
4120237c55Ssthen
4298f3ca02Sbrad/* Define to 1 if you have the `arc4random' function. */
4398f3ca02Sbrad#undef HAVE_ARC4RANDOM
4498f3ca02Sbrad
4598f3ca02Sbrad/* Define to 1 if you have the `arc4random_uniform' function. */
4698f3ca02Sbrad#undef HAVE_ARC4RANDOM_UNIFORM
4798f3ca02Sbrad
48933707f3Ssthen/* Define to 1 if you have the <arpa/inet.h> header file. */
49933707f3Ssthen#undef HAVE_ARPA_INET_H
50933707f3Ssthen
51933707f3Ssthen/* Whether the C compiler accepts the "format" attribute */
52933707f3Ssthen#undef HAVE_ATTR_FORMAT
53933707f3Ssthen
54452a1548Ssthen/* Whether the C compiler accepts the "noreturn" attribute */
55452a1548Ssthen#undef HAVE_ATTR_NORETURN
56452a1548Ssthen
57933707f3Ssthen/* Whether the C compiler accepts the "unused" attribute */
58933707f3Ssthen#undef HAVE_ATTR_UNUSED
59933707f3Ssthen
602ee382b6Ssthen/* Whether the C compiler accepts the "weak" attribute */
612ee382b6Ssthen#undef HAVE_ATTR_WEAK
622ee382b6Ssthen
63b2cdf21fSsthen/* Define to 1 if you have the `chown' function. */
64933707f3Ssthen#undef HAVE_CHOWN
65933707f3Ssthen
66933707f3Ssthen/* Define to 1 if you have the `chroot' function. */
67933707f3Ssthen#undef HAVE_CHROOT
68933707f3Ssthen
6977079be7Ssthen/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
7077079be7Ssthen#undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
7177079be7Ssthen
72933707f3Ssthen/* Define to 1 if you have the `ctime_r' function. */
73933707f3Ssthen#undef HAVE_CTIME_R
74933707f3Ssthen
75933707f3Ssthen/* Define to 1 if you have the `daemon' function. */
76933707f3Ssthen#undef HAVE_DAEMON
77933707f3Ssthen
7898f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
7998f3ca02Sbrad   don't. */
8098f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM
8198f3ca02Sbrad
8298f3ca02Sbrad/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
8398f3ca02Sbrad   if you don't. */
8498f3ca02Sbrad#undef HAVE_DECL_ARC4RANDOM_UNIFORM
8598f3ca02Sbrad
8677079be7Ssthen/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
8777079be7Ssthen   don't. */
8877079be7Ssthen#undef HAVE_DECL_INET_NTOP
8977079be7Ssthen
9077079be7Ssthen/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
9177079be7Ssthen   don't. */
9277079be7Ssthen#undef HAVE_DECL_INET_PTON
9377079be7Ssthen
942be9e038Ssthen/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
952be9e038Ssthen   don't. */
962be9e038Ssthen#undef HAVE_DECL_NID_ED25519
972be9e038Ssthen
9820237c55Ssthen/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
9920237c55Ssthen   don't. */
10020237c55Ssthen#undef HAVE_DECL_NID_ED448
10120237c55Ssthen
102d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
103d8d14d0cSsthen   don't. */
104d8d14d0cSsthen#undef HAVE_DECL_NID_SECP384R1
105d8d14d0cSsthen
106d8d14d0cSsthen/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
107d8d14d0cSsthen   if you don't. */
108d8d14d0cSsthen#undef HAVE_DECL_NID_X9_62_PRIME256V1
109d8d14d0cSsthen
110fdfb4ba6Ssthen/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
111fdfb4ba6Ssthen   don't. */
112fdfb4ba6Ssthen#undef HAVE_DECL_REALLOCARRAY
113fdfb4ba6Ssthen
11420237c55Ssthen/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
11520237c55Ssthen   don't. */
11620237c55Ssthen#undef HAVE_DECL_REDISCONNECT
11720237c55Ssthen
118933707f3Ssthen/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
119933707f3Ssthen   if you don't. */
120933707f3Ssthen#undef HAVE_DECL_SK_SSL_COMP_POP_FREE
121933707f3Ssthen
122933707f3Ssthen/* Define to 1 if you have the declaration of
123933707f3Ssthen   `SSL_COMP_get_compression_methods', and to 0 if you don't. */
124933707f3Ssthen#undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
125933707f3Ssthen
126a961b961Ssthen/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
127a961b961Ssthen   0 if you don't. */
128a961b961Ssthen#undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
129a961b961Ssthen
13098f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcat', and to 0 if you
13198f3ca02Sbrad   don't. */
13298f3ca02Sbrad#undef HAVE_DECL_STRLCAT
13398f3ca02Sbrad
13498f3ca02Sbrad/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
13598f3ca02Sbrad   don't. */
13698f3ca02Sbrad#undef HAVE_DECL_STRLCPY
13798f3ca02Sbrad
13824893edcSsthen/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
13924893edcSsthen   you don't. */
14024893edcSsthen#undef HAVE_DECL_XML_STOPPARSER
14124893edcSsthen
142933707f3Ssthen/* Define to 1 if you have the <dlfcn.h> header file. */
143933707f3Ssthen#undef HAVE_DLFCN_H
144933707f3Ssthen
14577079be7Ssthen/* Define to 1 if you have the `DSA_SIG_set0' function. */
14677079be7Ssthen#undef HAVE_DSA_SIG_SET0
14777079be7Ssthen
14898f3ca02Sbrad/* Define to 1 if you have the <endian.h> header file. */
14998f3ca02Sbrad#undef HAVE_ENDIAN_H
15098f3ca02Sbrad
1515d76a658Ssthen/* Define to 1 if you have the `endprotoent' function. */
1525d76a658Ssthen#undef HAVE_ENDPROTOENT
1535d76a658Ssthen
15477079be7Ssthen/* Define to 1 if you have the `endpwent' function. */
15577079be7Ssthen#undef HAVE_ENDPWENT
15677079be7Ssthen
1575d76a658Ssthen/* Define to 1 if you have the `endservent' function. */
1585d76a658Ssthen#undef HAVE_ENDSERVENT
1595d76a658Ssthen
16077079be7Ssthen/* Define to 1 if you have the `ERR_free_strings' function. */
16177079be7Ssthen#undef HAVE_ERR_FREE_STRINGS
16277079be7Ssthen
16377079be7Ssthen/* Define to 1 if you have the `ERR_load_crypto_strings' function. */
16477079be7Ssthen#undef HAVE_ERR_LOAD_CRYPTO_STRINGS
16577079be7Ssthen
166933707f3Ssthen/* Define to 1 if you have the `event_base_free' function. */
167933707f3Ssthen#undef HAVE_EVENT_BASE_FREE
168933707f3Ssthen
169933707f3Ssthen/* Define to 1 if you have the `event_base_get_method' function. */
170933707f3Ssthen#undef HAVE_EVENT_BASE_GET_METHOD
171933707f3Ssthen
172933707f3Ssthen/* Define to 1 if you have the `event_base_new' function. */
173933707f3Ssthen#undef HAVE_EVENT_BASE_NEW
174933707f3Ssthen
175933707f3Ssthen/* Define to 1 if you have the `event_base_once' function. */
176933707f3Ssthen#undef HAVE_EVENT_BASE_ONCE
177933707f3Ssthen
178933707f3Ssthen/* Define to 1 if you have the <event.h> header file. */
179933707f3Ssthen#undef HAVE_EVENT_H
180933707f3Ssthen
181*f6b99bafSsthen/* Define to 1 if you have the `EVP_aes_256_cbc' function. */
182*f6b99bafSsthen#undef HAVE_EVP_AES_256_CBC
183*f6b99bafSsthen
18477079be7Ssthen/* Define to 1 if you have the `EVP_cleanup' function. */
18577079be7Ssthen#undef HAVE_EVP_CLEANUP
18677079be7Ssthen
1872be9e038Ssthen/* Define to 1 if you have the `EVP_DigestVerify' function. */
1882be9e038Ssthen#undef HAVE_EVP_DIGESTVERIFY
1892be9e038Ssthen
19077079be7Ssthen/* Define to 1 if you have the `EVP_dss1' function. */
19177079be7Ssthen#undef HAVE_EVP_DSS1
19277079be7Ssthen
193*f6b99bafSsthen/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
194*f6b99bafSsthen#undef HAVE_EVP_ENCRYPTINIT_EX
195*f6b99bafSsthen
1962ee382b6Ssthen/* Define to 1 if you have the `EVP_MD_CTX_new' function. */
1972ee382b6Ssthen#undef HAVE_EVP_MD_CTX_NEW
1982ee382b6Ssthen
199933707f3Ssthen/* Define to 1 if you have the `EVP_sha1' function. */
200933707f3Ssthen#undef HAVE_EVP_SHA1
201933707f3Ssthen
202933707f3Ssthen/* Define to 1 if you have the `EVP_sha256' function. */
203933707f3Ssthen#undef HAVE_EVP_SHA256
204933707f3Ssthen
205933707f3Ssthen/* Define to 1 if you have the `EVP_sha512' function. */
206933707f3Ssthen#undef HAVE_EVP_SHA512
207933707f3Ssthen
208933707f3Ssthen/* Define to 1 if you have the `ev_default_loop' function. */
209933707f3Ssthen#undef HAVE_EV_DEFAULT_LOOP
210933707f3Ssthen
211933707f3Ssthen/* Define to 1 if you have the `ev_loop' function. */
212933707f3Ssthen#undef HAVE_EV_LOOP
213933707f3Ssthen
214933707f3Ssthen/* Define to 1 if you have the <expat.h> header file. */
215933707f3Ssthen#undef HAVE_EXPAT_H
216933707f3Ssthen
217452a1548Ssthen/* Define to 1 if you have the `explicit_bzero' function. */
218452a1548Ssthen#undef HAVE_EXPLICIT_BZERO
219452a1548Ssthen
220933707f3Ssthen/* Define to 1 if you have the `fcntl' function. */
221933707f3Ssthen#undef HAVE_FCNTL
222933707f3Ssthen
2233dcb24b8Ssthen/* Define to 1 if you have the `FIPS_mode' function. */
2243dcb24b8Ssthen#undef HAVE_FIPS_MODE
2253dcb24b8Ssthen
226933707f3Ssthen/* Define to 1 if you have the `fork' function. */
227933707f3Ssthen#undef HAVE_FORK
228933707f3Ssthen
229933707f3Ssthen/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
230933707f3Ssthen#undef HAVE_FSEEKO
231933707f3Ssthen
23224893edcSsthen/* Define to 1 if you have the `fsync' function. */
23324893edcSsthen#undef HAVE_FSYNC
23424893edcSsthen
235933707f3Ssthen/* Whether getaddrinfo is available */
236933707f3Ssthen#undef HAVE_GETADDRINFO
237933707f3Ssthen
238b2cdf21fSsthen/* Define to 1 if you have the `getauxval' function. */
239b2cdf21fSsthen#undef HAVE_GETAUXVAL
240b2cdf21fSsthen
24198f3ca02Sbrad/* Define to 1 if you have the `getentropy' function. */
24298f3ca02Sbrad#undef HAVE_GETENTROPY
24398f3ca02Sbrad
244933707f3Ssthen/* Define to 1 if you have the <getopt.h> header file. */
245933707f3Ssthen#undef HAVE_GETOPT_H
246933707f3Ssthen
247933707f3Ssthen/* Define to 1 if you have the `getpwnam' function. */
248933707f3Ssthen#undef HAVE_GETPWNAM
249933707f3Ssthen
250933707f3Ssthen/* Define to 1 if you have the `getrlimit' function. */
251933707f3Ssthen#undef HAVE_GETRLIMIT
252933707f3Ssthen
253933707f3Ssthen/* Define to 1 if you have the `glob' function. */
254933707f3Ssthen#undef HAVE_GLOB
255933707f3Ssthen
256933707f3Ssthen/* Define to 1 if you have the <glob.h> header file. */
257933707f3Ssthen#undef HAVE_GLOB_H
258933707f3Ssthen
259933707f3Ssthen/* Define to 1 if you have the `gmtime_r' function. */
260933707f3Ssthen#undef HAVE_GMTIME_R
261933707f3Ssthen
262933707f3Ssthen/* Define to 1 if you have the <grp.h> header file. */
263933707f3Ssthen#undef HAVE_GRP_H
264933707f3Ssthen
26520237c55Ssthen/* Define to 1 if you have the <hiredis/hiredis.h> header file. */
26620237c55Ssthen#undef HAVE_HIREDIS_HIREDIS_H
26720237c55Ssthen
268*f6b99bafSsthen/* Define to 1 if you have the `HMAC_Init_ex' function. */
269*f6b99bafSsthen#undef HAVE_HMAC_INIT_EX
270*f6b99bafSsthen
2712ee382b6Ssthen/* If you have HMAC_Update */
2722ee382b6Ssthen#undef HAVE_HMAC_UPDATE
273933707f3Ssthen
274933707f3Ssthen/* Define to 1 if you have the `inet_aton' function. */
275933707f3Ssthen#undef HAVE_INET_ATON
276933707f3Ssthen
277933707f3Ssthen/* Define to 1 if you have the `inet_ntop' function. */
278933707f3Ssthen#undef HAVE_INET_NTOP
279933707f3Ssthen
280933707f3Ssthen/* Define to 1 if you have the `inet_pton' function. */
281933707f3Ssthen#undef HAVE_INET_PTON
282933707f3Ssthen
283933707f3Ssthen/* Define to 1 if you have the `initgroups' function. */
284933707f3Ssthen#undef HAVE_INITGROUPS
285933707f3Ssthen
286933707f3Ssthen/* Define to 1 if you have the <inttypes.h> header file. */
287933707f3Ssthen#undef HAVE_INTTYPES_H
288933707f3Ssthen
289933707f3Ssthen/* if the function 'ioctlsocket' is available */
290933707f3Ssthen#undef HAVE_IOCTLSOCKET
291933707f3Ssthen
292933707f3Ssthen/* Define to 1 if you have the <iphlpapi.h> header file. */
293933707f3Ssthen#undef HAVE_IPHLPAPI_H
294933707f3Ssthen
29524893edcSsthen/* Define to 1 if you have the `isblank' function. */
29624893edcSsthen#undef HAVE_ISBLANK
29724893edcSsthen
298933707f3Ssthen/* Define to 1 if you have the `kill' function. */
299933707f3Ssthen#undef HAVE_KILL
300933707f3Ssthen
30120237c55Ssthen/* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
30220237c55Ssthen#undef HAVE_LIBKERN_OSBYTEORDER_H
30320237c55Ssthen
30498f3ca02Sbrad/* Define if we have LibreSSL */
30598f3ca02Sbrad#undef HAVE_LIBRESSL
30698f3ca02Sbrad
307933707f3Ssthen/* Define to 1 if you have the `localtime_r' function. */
308933707f3Ssthen#undef HAVE_LOCALTIME_R
309933707f3Ssthen
310933707f3Ssthen/* Define to 1 if you have the <login_cap.h> header file. */
311933707f3Ssthen#undef HAVE_LOGIN_CAP_H
312933707f3Ssthen
313933707f3Ssthen/* If have GNU libc compatible malloc */
314933707f3Ssthen#undef HAVE_MALLOC
315933707f3Ssthen
316933707f3Ssthen/* Define to 1 if you have the `memmove' function. */
317933707f3Ssthen#undef HAVE_MEMMOVE
318933707f3Ssthen
319933707f3Ssthen/* Define to 1 if you have the <memory.h> header file. */
320933707f3Ssthen#undef HAVE_MEMORY_H
321933707f3Ssthen
322933707f3Ssthen/* Define to 1 if you have the <netdb.h> header file. */
323933707f3Ssthen#undef HAVE_NETDB_H
324933707f3Ssthen
325933707f3Ssthen/* Define to 1 if you have the <netinet/in.h> header file. */
326933707f3Ssthen#undef HAVE_NETINET_IN_H
327933707f3Ssthen
32832e31f52Ssthen/* Define to 1 if you have the <netinet/tcp.h> header file. */
32932e31f52Ssthen#undef HAVE_NETINET_TCP_H
33032e31f52Ssthen
33124893edcSsthen/* Use libnettle for crypto */
33224893edcSsthen#undef HAVE_NETTLE
33324893edcSsthen
33477079be7Ssthen/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
33577079be7Ssthen#undef HAVE_NETTLE_DSA_COMPAT_H
33677079be7Ssthen
3377191de28Ssthen/* Define to 1 if you have the <nettle/eddsa.h> header file. */
3387191de28Ssthen#undef HAVE_NETTLE_EDDSA_H
3397191de28Ssthen
3403dcb24b8Ssthen/* Use libnss for crypto */
3413dcb24b8Ssthen#undef HAVE_NSS
3423dcb24b8Ssthen
34377079be7Ssthen/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
34477079be7Ssthen#undef HAVE_OPENSSL_ADD_ALL_DIGESTS
34577079be7Ssthen
34677079be7Ssthen/* Define to 1 if you have the <openssl/bn.h> header file. */
34777079be7Ssthen#undef HAVE_OPENSSL_BN_H
34877079be7Ssthen
349933707f3Ssthen/* Define to 1 if you have the `OPENSSL_config' function. */
350933707f3Ssthen#undef HAVE_OPENSSL_CONFIG
351933707f3Ssthen
352933707f3Ssthen/* Define to 1 if you have the <openssl/conf.h> header file. */
353933707f3Ssthen#undef HAVE_OPENSSL_CONF_H
354933707f3Ssthen
35577079be7Ssthen/* Define to 1 if you have the <openssl/dh.h> header file. */
35677079be7Ssthen#undef HAVE_OPENSSL_DH_H
35777079be7Ssthen
35877079be7Ssthen/* Define to 1 if you have the <openssl/dsa.h> header file. */
35977079be7Ssthen#undef HAVE_OPENSSL_DSA_H
36077079be7Ssthen
361933707f3Ssthen/* Define to 1 if you have the <openssl/engine.h> header file. */
362933707f3Ssthen#undef HAVE_OPENSSL_ENGINE_H
363933707f3Ssthen
364933707f3Ssthen/* Define to 1 if you have the <openssl/err.h> header file. */
365933707f3Ssthen#undef HAVE_OPENSSL_ERR_H
366933707f3Ssthen
36777079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_crypto' function. */
36877079be7Ssthen#undef HAVE_OPENSSL_INIT_CRYPTO
36977079be7Ssthen
37077079be7Ssthen/* Define to 1 if you have the `OPENSSL_init_ssl' function. */
37177079be7Ssthen#undef HAVE_OPENSSL_INIT_SSL
37277079be7Ssthen
373933707f3Ssthen/* Define to 1 if you have the <openssl/rand.h> header file. */
374933707f3Ssthen#undef HAVE_OPENSSL_RAND_H
375933707f3Ssthen
37677079be7Ssthen/* Define to 1 if you have the <openssl/rsa.h> header file. */
37777079be7Ssthen#undef HAVE_OPENSSL_RSA_H
37877079be7Ssthen
379933707f3Ssthen/* Define to 1 if you have the <openssl/ssl.h> header file. */
380933707f3Ssthen#undef HAVE_OPENSSL_SSL_H
381933707f3Ssthen
382933707f3Ssthen/* Define if you have POSIX threads libraries and header files. */
383933707f3Ssthen#undef HAVE_PTHREAD
384933707f3Ssthen
385229e174cSsthen/* Have PTHREAD_PRIO_INHERIT. */
386229e174cSsthen#undef HAVE_PTHREAD_PRIO_INHERIT
387229e174cSsthen
388933707f3Ssthen/* Define to 1 if the system has the type `pthread_rwlock_t'. */
389933707f3Ssthen#undef HAVE_PTHREAD_RWLOCK_T
390933707f3Ssthen
391933707f3Ssthen/* Define to 1 if the system has the type `pthread_spinlock_t'. */
392933707f3Ssthen#undef HAVE_PTHREAD_SPINLOCK_T
393933707f3Ssthen
394933707f3Ssthen/* Define to 1 if you have the <pwd.h> header file. */
395933707f3Ssthen#undef HAVE_PWD_H
396933707f3Ssthen
397933707f3Ssthen/* Define if you have Python libraries and header files. */
398933707f3Ssthen#undef HAVE_PYTHON
399933707f3Ssthen
400933707f3Ssthen/* Define to 1 if you have the `random' function. */
401933707f3Ssthen#undef HAVE_RANDOM
402933707f3Ssthen
40377079be7Ssthen/* Define to 1 if you have the `RAND_cleanup' function. */
40477079be7Ssthen#undef HAVE_RAND_CLEANUP
40577079be7Ssthen
406fdfb4ba6Ssthen/* Define to 1 if you have the `reallocarray' function. */
407fdfb4ba6Ssthen#undef HAVE_REALLOCARRAY
408fdfb4ba6Ssthen
409933707f3Ssthen/* Define to 1 if you have the `recvmsg' function. */
410933707f3Ssthen#undef HAVE_RECVMSG
411933707f3Ssthen
412933707f3Ssthen/* Define to 1 if you have the `sendmsg' function. */
413933707f3Ssthen#undef HAVE_SENDMSG
414933707f3Ssthen
415933707f3Ssthen/* Define to 1 if you have the `setregid' function. */
416933707f3Ssthen#undef HAVE_SETREGID
417933707f3Ssthen
418933707f3Ssthen/* Define to 1 if you have the `setresgid' function. */
419933707f3Ssthen#undef HAVE_SETRESGID
420933707f3Ssthen
421933707f3Ssthen/* Define to 1 if you have the `setresuid' function. */
422933707f3Ssthen#undef HAVE_SETRESUID
423933707f3Ssthen
424933707f3Ssthen/* Define to 1 if you have the `setreuid' function. */
425933707f3Ssthen#undef HAVE_SETREUID
426933707f3Ssthen
427933707f3Ssthen/* Define to 1 if you have the `setrlimit' function. */
428933707f3Ssthen#undef HAVE_SETRLIMIT
429933707f3Ssthen
430933707f3Ssthen/* Define to 1 if you have the `setsid' function. */
431933707f3Ssthen#undef HAVE_SETSID
432933707f3Ssthen
433933707f3Ssthen/* Define to 1 if you have the `setusercontext' function. */
434933707f3Ssthen#undef HAVE_SETUSERCONTEXT
435933707f3Ssthen
43698f3ca02Sbrad/* Define to 1 if you have the `SHA512_Update' function. */
43798f3ca02Sbrad#undef HAVE_SHA512_UPDATE
43898f3ca02Sbrad
4392be9e038Ssthen/* Define to 1 if you have the `shmget' function. */
4402be9e038Ssthen#undef HAVE_SHMGET
4412be9e038Ssthen
442933707f3Ssthen/* Define to 1 if you have the `sigprocmask' function. */
443933707f3Ssthen#undef HAVE_SIGPROCMASK
444933707f3Ssthen
445933707f3Ssthen/* Define to 1 if you have the `sleep' function. */
446933707f3Ssthen#undef HAVE_SLEEP
447933707f3Ssthen
448933707f3Ssthen/* Define to 1 if you have the `snprintf' function. */
449933707f3Ssthen#undef HAVE_SNPRINTF
450933707f3Ssthen
451933707f3Ssthen/* Define to 1 if you have the `socketpair' function. */
452933707f3Ssthen#undef HAVE_SOCKETPAIR
453933707f3Ssthen
454933707f3Ssthen/* Using Solaris threads */
455933707f3Ssthen#undef HAVE_SOLARIS_THREADS
456933707f3Ssthen
457933707f3Ssthen/* Define to 1 if you have the `srandom' function. */
458933707f3Ssthen#undef HAVE_SRANDOM
459933707f3Ssthen
460933707f3Ssthen/* Define if you have the SSL libraries installed. */
461933707f3Ssthen#undef HAVE_SSL
462933707f3Ssthen
463*f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
464*f6b99bafSsthen#undef HAVE_SSL_CTX_SET_CIPHERSUITES
465*f6b99bafSsthen
46677079be7Ssthen/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
46777079be7Ssthen#undef HAVE_SSL_CTX_SET_SECURITY_LEVEL
46877079be7Ssthen
469*f6b99bafSsthen/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_cb' function. */
470*f6b99bafSsthen#undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_CB
471*f6b99bafSsthen
472938a3a5eSflorian/* Define to 1 if you have the `SSL_get0_peername' function. */
473938a3a5eSflorian#undef HAVE_SSL_GET0_PEERNAME
474938a3a5eSflorian
475938a3a5eSflorian/* Define to 1 if you have the `SSL_set1_host' function. */
476938a3a5eSflorian#undef HAVE_SSL_SET1_HOST
477938a3a5eSflorian
478933707f3Ssthen/* Define to 1 if you have the <stdarg.h> header file. */
479933707f3Ssthen#undef HAVE_STDARG_H
480933707f3Ssthen
481933707f3Ssthen/* Define to 1 if you have the <stdbool.h> header file. */
482933707f3Ssthen#undef HAVE_STDBOOL_H
483933707f3Ssthen
484933707f3Ssthen/* Define to 1 if you have the <stdint.h> header file. */
485933707f3Ssthen#undef HAVE_STDINT_H
486933707f3Ssthen
487933707f3Ssthen/* Define to 1 if you have the <stdlib.h> header file. */
488933707f3Ssthen#undef HAVE_STDLIB_H
489933707f3Ssthen
490933707f3Ssthen/* Define to 1 if you have the `strftime' function. */
491933707f3Ssthen#undef HAVE_STRFTIME
492933707f3Ssthen
493933707f3Ssthen/* Define to 1 if you have the <strings.h> header file. */
494933707f3Ssthen#undef HAVE_STRINGS_H
495933707f3Ssthen
496933707f3Ssthen/* Define to 1 if you have the <string.h> header file. */
497933707f3Ssthen#undef HAVE_STRING_H
498933707f3Ssthen
4995d76a658Ssthen/* Define to 1 if you have the `strlcat' function. */
5005d76a658Ssthen#undef HAVE_STRLCAT
5015d76a658Ssthen
502933707f3Ssthen/* Define to 1 if you have the `strlcpy' function. */
503933707f3Ssthen#undef HAVE_STRLCPY
504933707f3Ssthen
505933707f3Ssthen/* Define to 1 if you have the `strptime' function. */
506933707f3Ssthen#undef HAVE_STRPTIME
507933707f3Ssthen
5082ee382b6Ssthen/* Define to 1 if you have the `strsep' function. */
5092ee382b6Ssthen#undef HAVE_STRSEP
5102ee382b6Ssthen
511d8d14d0cSsthen/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
512d8d14d0cSsthen#undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST
513d8d14d0cSsthen
514b2cdf21fSsthen/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
515b2cdf21fSsthen#undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
516b2cdf21fSsthen
517933707f3Ssthen/* Define if you have Swig libraries and header files. */
518933707f3Ssthen#undef HAVE_SWIG
519933707f3Ssthen
520933707f3Ssthen/* Define to 1 if you have the <syslog.h> header file. */
521933707f3Ssthen#undef HAVE_SYSLOG_H
522933707f3Ssthen
52377079be7Ssthen/* Define to 1 if systemd should be used */
52477079be7Ssthen#undef HAVE_SYSTEMD
52577079be7Ssthen
52620237c55Ssthen/* Define to 1 if you have the <sys/endian.h> header file. */
52720237c55Ssthen#undef HAVE_SYS_ENDIAN_H
52820237c55Ssthen
5292be9e038Ssthen/* Define to 1 if you have the <sys/ipc.h> header file. */
5302be9e038Ssthen#undef HAVE_SYS_IPC_H
5312be9e038Ssthen
532933707f3Ssthen/* Define to 1 if you have the <sys/param.h> header file. */
533933707f3Ssthen#undef HAVE_SYS_PARAM_H
534933707f3Ssthen
535933707f3Ssthen/* Define to 1 if you have the <sys/resource.h> header file. */
536933707f3Ssthen#undef HAVE_SYS_RESOURCE_H
537933707f3Ssthen
53898f3ca02Sbrad/* Define to 1 if you have the <sys/sha2.h> header file. */
53998f3ca02Sbrad#undef HAVE_SYS_SHA2_H
54098f3ca02Sbrad
5412be9e038Ssthen/* Define to 1 if you have the <sys/shm.h> header file. */
5422be9e038Ssthen#undef HAVE_SYS_SHM_H
5432be9e038Ssthen
544933707f3Ssthen/* Define to 1 if you have the <sys/socket.h> header file. */
545933707f3Ssthen#undef HAVE_SYS_SOCKET_H
546933707f3Ssthen
547933707f3Ssthen/* Define to 1 if you have the <sys/stat.h> header file. */
548933707f3Ssthen#undef HAVE_SYS_STAT_H
549933707f3Ssthen
55098f3ca02Sbrad/* Define to 1 if you have the <sys/sysctl.h> header file. */
55198f3ca02Sbrad#undef HAVE_SYS_SYSCTL_H
55298f3ca02Sbrad
553933707f3Ssthen/* Define to 1 if you have the <sys/types.h> header file. */
554933707f3Ssthen#undef HAVE_SYS_TYPES_H
555933707f3Ssthen
556933707f3Ssthen/* Define to 1 if you have the <sys/uio.h> header file. */
557933707f3Ssthen#undef HAVE_SYS_UIO_H
558933707f3Ssthen
559b2cdf21fSsthen/* Define to 1 if you have the <sys/un.h> header file. */
560b2cdf21fSsthen#undef HAVE_SYS_UN_H
561b2cdf21fSsthen
562933707f3Ssthen/* Define to 1 if you have the <sys/wait.h> header file. */
563933707f3Ssthen#undef HAVE_SYS_WAIT_H
564933707f3Ssthen
565933707f3Ssthen/* Define to 1 if you have the <time.h> header file. */
566933707f3Ssthen#undef HAVE_TIME_H
567933707f3Ssthen
568933707f3Ssthen/* Define to 1 if you have the `tzset' function. */
569933707f3Ssthen#undef HAVE_TZSET
570933707f3Ssthen
571933707f3Ssthen/* Define to 1 if you have the <unistd.h> header file. */
572933707f3Ssthen#undef HAVE_UNISTD_H
573933707f3Ssthen
574933707f3Ssthen/* Define to 1 if you have the `usleep' function. */
575933707f3Ssthen#undef HAVE_USLEEP
576933707f3Ssthen
577933707f3Ssthen/* Define to 1 if you have the `vfork' function. */
578933707f3Ssthen#undef HAVE_VFORK
579933707f3Ssthen
580933707f3Ssthen/* Define to 1 if you have the <vfork.h> header file. */
581933707f3Ssthen#undef HAVE_VFORK_H
582933707f3Ssthen
583933707f3Ssthen/* Define to 1 if you have the <windows.h> header file. */
584933707f3Ssthen#undef HAVE_WINDOWS_H
585933707f3Ssthen
586933707f3Ssthen/* Using Windows threads */
587933707f3Ssthen#undef HAVE_WINDOWS_THREADS
588933707f3Ssthen
589933707f3Ssthen/* Define to 1 if you have the <winsock2.h> header file. */
590933707f3Ssthen#undef HAVE_WINSOCK2_H
591933707f3Ssthen
592933707f3Ssthen/* Define to 1 if `fork' works. */
593933707f3Ssthen#undef HAVE_WORKING_FORK
594933707f3Ssthen
595933707f3Ssthen/* Define to 1 if `vfork' works. */
596933707f3Ssthen#undef HAVE_WORKING_VFORK
597933707f3Ssthen
598933707f3Ssthen/* Define to 1 if you have the `writev' function. */
599933707f3Ssthen#undef HAVE_WRITEV
600933707f3Ssthen
601933707f3Ssthen/* Define to 1 if you have the <ws2tcpip.h> header file. */
602933707f3Ssthen#undef HAVE_WS2TCPIP_H
603933707f3Ssthen
604*f6b99bafSsthen/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
605*f6b99bafSsthen#undef HAVE_X509_VERIFY_PARAM_SET1_HOST
606*f6b99bafSsthen
607933707f3Ssthen/* Define to 1 if you have the `_beginthreadex' function. */
608933707f3Ssthen#undef HAVE__BEGINTHREADEX
609933707f3Ssthen
610933707f3Ssthen/* if lex has yylex_destroy */
611933707f3Ssthen#undef LEX_HAS_YYLEX_DESTROY
612933707f3Ssthen
61332e31f52Ssthen/* Define to the sub-directory where libtool stores uninstalled libraries. */
614933707f3Ssthen#undef LT_OBJDIR
615933707f3Ssthen
616933707f3Ssthen/* Define to the maximum message length to pass to syslog. */
617933707f3Ssthen#undef MAXSYSLOGMSGLEN
618933707f3Ssthen
619933707f3Ssthen/* Define if memcmp() does not compare unsigned bytes */
620933707f3Ssthen#undef MEMCMP_IS_BROKEN
621933707f3Ssthen
622933707f3Ssthen/* Define if mkdir has one argument. */
623933707f3Ssthen#undef MKDIR_HAS_ONE_ARG
624933707f3Ssthen
625933707f3Ssthen/* Define if the network stack does not fully support nonblocking io (causes
626933707f3Ssthen   lower performance). */
627933707f3Ssthen#undef NONBLOCKING_IS_BROKEN
628933707f3Ssthen
629933707f3Ssthen/* Put -D_ALL_SOURCE define in config.h */
630933707f3Ssthen#undef OMITTED__D_ALL_SOURCE
631933707f3Ssthen
632933707f3Ssthen/* Put -D_BSD_SOURCE define in config.h */
633933707f3Ssthen#undef OMITTED__D_BSD_SOURCE
634933707f3Ssthen
63532e31f52Ssthen/* Put -D_DEFAULT_SOURCE define in config.h */
63632e31f52Ssthen#undef OMITTED__D_DEFAULT_SOURCE
63732e31f52Ssthen
638933707f3Ssthen/* Put -D_GNU_SOURCE define in config.h */
639933707f3Ssthen#undef OMITTED__D_GNU_SOURCE
640933707f3Ssthen
641933707f3Ssthen/* Put -D_LARGEFILE_SOURCE=1 define in config.h */
642933707f3Ssthen#undef OMITTED__D_LARGEFILE_SOURCE_1
643933707f3Ssthen
644933707f3Ssthen/* Put -D_POSIX_C_SOURCE=200112 define in config.h */
645933707f3Ssthen#undef OMITTED__D_POSIX_C_SOURCE_200112
646933707f3Ssthen
647933707f3Ssthen/* Put -D_XOPEN_SOURCE=600 define in config.h */
648933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_600
649933707f3Ssthen
650933707f3Ssthen/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
651933707f3Ssthen#undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1
652933707f3Ssthen
653933707f3Ssthen/* Put -D__EXTENSIONS__ define in config.h */
654933707f3Ssthen#undef OMITTED__D__EXTENSIONS__
655933707f3Ssthen
656933707f3Ssthen/* Define to the address where bug reports for this package should be sent. */
657933707f3Ssthen#undef PACKAGE_BUGREPORT
658933707f3Ssthen
659933707f3Ssthen/* Define to the full name of this package. */
660933707f3Ssthen#undef PACKAGE_NAME
661933707f3Ssthen
662933707f3Ssthen/* Define to the full name and version of this package. */
663933707f3Ssthen#undef PACKAGE_STRING
664933707f3Ssthen
665933707f3Ssthen/* Define to the one symbol short name of this package. */
666933707f3Ssthen#undef PACKAGE_TARNAME
667933707f3Ssthen
668933707f3Ssthen/* Define to the home page for this package. */
669933707f3Ssthen#undef PACKAGE_URL
670933707f3Ssthen
671933707f3Ssthen/* Define to the version of this package. */
672933707f3Ssthen#undef PACKAGE_VERSION
673933707f3Ssthen
674933707f3Ssthen/* default pidfile location */
675933707f3Ssthen#undef PIDFILE
676933707f3Ssthen
677933707f3Ssthen/* Define to necessary symbol if this constant uses a non-standard name on
678933707f3Ssthen   your system. */
679933707f3Ssthen#undef PTHREAD_CREATE_JOINABLE
680933707f3Ssthen
681933707f3Ssthen/* Define as the return type of signal handlers (`int' or `void'). */
682933707f3Ssthen#undef RETSIGTYPE
683933707f3Ssthen
6843150e5f6Ssthen/* if REUSEPORT is enabled by default */
6853150e5f6Ssthen#undef REUSEPORT_DEFAULT
6863150e5f6Ssthen
687933707f3Ssthen/* default rootkey location */
688933707f3Ssthen#undef ROOT_ANCHOR_FILE
689933707f3Ssthen
690933707f3Ssthen/* default rootcert location */
691933707f3Ssthen#undef ROOT_CERT_FILE
692933707f3Ssthen
693933707f3Ssthen/* version number for resource files */
694933707f3Ssthen#undef RSRC_PACKAGE_VERSION
695933707f3Ssthen
696933707f3Ssthen/* Directory to chdir to */
697933707f3Ssthen#undef RUN_DIR
698933707f3Ssthen
699933707f3Ssthen/* Shared data */
700933707f3Ssthen#undef SHARE_DIR
701933707f3Ssthen
7025d76a658Ssthen/* The size of `time_t', as computed by sizeof. */
7035d76a658Ssthen#undef SIZEOF_TIME_T
7045d76a658Ssthen
70524893edcSsthen/* define if (v)snprintf does not return length needed, (but length used) */
70624893edcSsthen#undef SNPRINTF_RET_BROKEN
70724893edcSsthen
708bdfc4d55Sflorian/* Define to 1 if libsodium supports sodium_set_misuse_handler */
709bdfc4d55Sflorian#undef SODIUM_MISUSE_HANDLER
710bdfc4d55Sflorian
711933707f3Ssthen/* Define to 1 if you have the ANSI C header files. */
712933707f3Ssthen#undef STDC_HEADERS
713933707f3Ssthen
714933707f3Ssthen/* use default strptime. */
715933707f3Ssthen#undef STRPTIME_WORKS
716933707f3Ssthen
717933707f3Ssthen/* Use win32 resources and API */
718933707f3Ssthen#undef UB_ON_WINDOWS
719933707f3Ssthen
720933707f3Ssthen/* default username */
721933707f3Ssthen#undef UB_USERNAME
722933707f3Ssthen
723933707f3Ssthen/* use to enable lightweight alloc assertions, for debug use */
724933707f3Ssthen#undef UNBOUND_ALLOC_LITE
725933707f3Ssthen
726933707f3Ssthen/* use malloc not regions, for debug use */
727933707f3Ssthen#undef UNBOUND_ALLOC_NONREGIONAL
728933707f3Ssthen
729933707f3Ssthen/* use statistics for allocs and frees, for debug use */
730933707f3Ssthen#undef UNBOUND_ALLOC_STATS
731933707f3Ssthen
732933707f3Ssthen/* define this to enable debug checks. */
733933707f3Ssthen#undef UNBOUND_DEBUG
734933707f3Ssthen
7352ee382b6Ssthen/* Define to 1 to use cachedb support */
7362ee382b6Ssthen#undef USE_CACHEDB
7372ee382b6Ssthen
7382be9e038Ssthen/* Define to 1 to enable dnscrypt support */
7392be9e038Ssthen#undef USE_DNSCRYPT
7402be9e038Ssthen
7412be9e038Ssthen/* Define to 1 to enable dnscrypt with xchacha20 support */
7422be9e038Ssthen#undef USE_DNSCRYPT_XCHACHA20
7432be9e038Ssthen
74498f3ca02Sbrad/* Define to 1 to enable dnstap support */
74598f3ca02Sbrad#undef USE_DNSTAP
74698f3ca02Sbrad
7472ee382b6Ssthen/* Define this to enable DSA support. */
7482ee382b6Ssthen#undef USE_DSA
7492ee382b6Ssthen
750d8d14d0cSsthen/* Define this to enable ECDSA support. */
751d8d14d0cSsthen#undef USE_ECDSA
752d8d14d0cSsthen
753d8d14d0cSsthen/* Define this to enable an EVP workaround for older openssl */
754d8d14d0cSsthen#undef USE_ECDSA_EVP_WORKAROUND
755d8d14d0cSsthen
7562be9e038Ssthen/* Define this to enable ED25519 support. */
7572be9e038Ssthen#undef USE_ED25519
7582be9e038Ssthen
75920237c55Ssthen/* Define this to enable ED448 support. */
76020237c55Ssthen#undef USE_ED448
76120237c55Ssthen
762933707f3Ssthen/* Define this to enable GOST support. */
763933707f3Ssthen#undef USE_GOST
764933707f3Ssthen
7652be9e038Ssthen/* Define to 1 to use ipsecmod support. */
7662be9e038Ssthen#undef USE_IPSECMOD
7672be9e038Ssthen
768933707f3Ssthen/* Define if you want to use internal select based events */
769933707f3Ssthen#undef USE_MINI_EVENT
770933707f3Ssthen
77177079be7Ssthen/* Define this to enable client TCP Fast Open. */
77277079be7Ssthen#undef USE_MSG_FASTOPEN
77377079be7Ssthen
77477079be7Ssthen/* Define this to enable client TCP Fast Open. */
77577079be7Ssthen#undef USE_OSX_MSG_FASTOPEN
77677079be7Ssthen
77720237c55Ssthen/* Define this to use hiredis client. */
77820237c55Ssthen#undef USE_REDIS
77920237c55Ssthen
7802be9e038Ssthen/* Define this to enable SHA1 support. */
7812be9e038Ssthen#undef USE_SHA1
7822be9e038Ssthen
783933707f3Ssthen/* Define this to enable SHA256 and SHA512 support. */
784933707f3Ssthen#undef USE_SHA2
785933707f3Ssthen
786933707f3Ssthen/* Enable extensions on AIX 3, Interix.  */
787933707f3Ssthen#ifndef _ALL_SOURCE
788933707f3Ssthen# undef _ALL_SOURCE
789933707f3Ssthen#endif
790933707f3Ssthen/* Enable GNU extensions on systems that have them.  */
791933707f3Ssthen#ifndef _GNU_SOURCE
792933707f3Ssthen# undef _GNU_SOURCE
793933707f3Ssthen#endif
794933707f3Ssthen/* Enable threading extensions on Solaris.  */
795933707f3Ssthen#ifndef _POSIX_PTHREAD_SEMANTICS
796933707f3Ssthen# undef _POSIX_PTHREAD_SEMANTICS
797933707f3Ssthen#endif
798933707f3Ssthen/* Enable extensions on HP NonStop.  */
799933707f3Ssthen#ifndef _TANDEM_SOURCE
800933707f3Ssthen# undef _TANDEM_SOURCE
801933707f3Ssthen#endif
802933707f3Ssthen/* Enable general extensions on Solaris.  */
803933707f3Ssthen#ifndef __EXTENSIONS__
804933707f3Ssthen# undef __EXTENSIONS__
805933707f3Ssthen#endif
806933707f3Ssthen
807933707f3Ssthen
80877079be7Ssthen/* Define this to enable server TCP Fast Open. */
80977079be7Ssthen#undef USE_TCP_FASTOPEN
81077079be7Ssthen
811933707f3Ssthen/* Whether the windows socket API is used */
812933707f3Ssthen#undef USE_WINSOCK
813933707f3Ssthen
814933707f3Ssthen/* the version of the windows API enabled */
815933707f3Ssthen#undef WINVER
816933707f3Ssthen
817933707f3Ssthen/* Define if you want Python module. */
818933707f3Ssthen#undef WITH_PYTHONMODULE
819933707f3Ssthen
820933707f3Ssthen/* Define if you want PyUnbound. */
821933707f3Ssthen#undef WITH_PYUNBOUND
822933707f3Ssthen
823933707f3Ssthen/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
824933707f3Ssthen   `char[]'. */
825933707f3Ssthen#undef YYTEXT_POINTER
826933707f3Ssthen
827229e174cSsthen/* Enable large inode numbers on Mac OS X 10.5.  */
828229e174cSsthen#ifndef _DARWIN_USE_64_BIT_INODE
829229e174cSsthen# define _DARWIN_USE_64_BIT_INODE 1
830229e174cSsthen#endif
831229e174cSsthen
832933707f3Ssthen/* Number of bits in a file offset, on hosts where this is settable. */
833933707f3Ssthen#undef _FILE_OFFSET_BITS
834933707f3Ssthen
835933707f3Ssthen/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
836933707f3Ssthen#undef _LARGEFILE_SOURCE
837933707f3Ssthen
838933707f3Ssthen/* Define for large files, on AIX-style hosts. */
839933707f3Ssthen#undef _LARGE_FILES
840933707f3Ssthen
841933707f3Ssthen/* Define to 1 if on MINIX. */
842933707f3Ssthen#undef _MINIX
843933707f3Ssthen
8445d76a658Ssthen/* Enable for compile on Minix */
8455d76a658Ssthen#undef _NETBSD_SOURCE
8465d76a658Ssthen
847933707f3Ssthen/* Define to 2 if the system does not provide POSIX.1 features except with
848933707f3Ssthen   this defined. */
849933707f3Ssthen#undef _POSIX_1_SOURCE
850933707f3Ssthen
851933707f3Ssthen/* Define to 1 if you need to in order for `stat' and other things to work. */
852933707f3Ssthen#undef _POSIX_SOURCE
853933707f3Ssthen
854933707f3Ssthen/* Define to empty if `const' does not conform to ANSI C. */
855933707f3Ssthen#undef const
856933707f3Ssthen
857933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */
858933707f3Ssthen#undef gid_t
859933707f3Ssthen
860933707f3Ssthen/* in_addr_t */
861933707f3Ssthen#undef in_addr_t
862933707f3Ssthen
863933707f3Ssthen/* in_port_t */
864933707f3Ssthen#undef in_port_t
865933707f3Ssthen
866933707f3Ssthen/* Define to `__inline__' or `__inline' if that's what the C compiler
867933707f3Ssthen   calls it, or to nothing if 'inline' is not supported under any name.  */
868933707f3Ssthen#ifndef __cplusplus
869933707f3Ssthen#undef inline
870933707f3Ssthen#endif
871933707f3Ssthen
872933707f3Ssthen/* Define to `short' if <sys/types.h> does not define. */
873933707f3Ssthen#undef int16_t
874933707f3Ssthen
875933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
876933707f3Ssthen#undef int32_t
877933707f3Ssthen
878933707f3Ssthen/* Define to `long long' if <sys/types.h> does not define. */
879933707f3Ssthen#undef int64_t
880933707f3Ssthen
881933707f3Ssthen/* Define to `signed char' if <sys/types.h> does not define. */
882933707f3Ssthen#undef int8_t
883933707f3Ssthen
884933707f3Ssthen/* Define if replacement function should be used. */
885933707f3Ssthen#undef malloc
886933707f3Ssthen
887933707f3Ssthen/* Define to `long int' if <sys/types.h> does not define. */
888933707f3Ssthen#undef off_t
889933707f3Ssthen
890933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
891933707f3Ssthen#undef pid_t
892933707f3Ssthen
893933707f3Ssthen/* Define to 'int' if not defined */
894933707f3Ssthen#undef rlim_t
895933707f3Ssthen
896933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */
897933707f3Ssthen#undef size_t
898933707f3Ssthen
899933707f3Ssthen/* Define to 'int' if not defined */
900933707f3Ssthen#undef socklen_t
901933707f3Ssthen
902933707f3Ssthen/* Define to `int' if <sys/types.h> does not define. */
903933707f3Ssthen#undef ssize_t
904933707f3Ssthen
905933707f3Ssthen/* Define to 'unsigned char if not defined */
906933707f3Ssthen#undef u_char
907933707f3Ssthen
908933707f3Ssthen/* Define to `int' if <sys/types.h> doesn't define. */
909933707f3Ssthen#undef uid_t
910933707f3Ssthen
911933707f3Ssthen/* Define to `unsigned short' if <sys/types.h> does not define. */
912933707f3Ssthen#undef uint16_t
913933707f3Ssthen
914933707f3Ssthen/* Define to `unsigned int' if <sys/types.h> does not define. */
915933707f3Ssthen#undef uint32_t
916933707f3Ssthen
917933707f3Ssthen/* Define to `unsigned long long' if <sys/types.h> does not define. */
918933707f3Ssthen#undef uint64_t
919933707f3Ssthen
920933707f3Ssthen/* Define to `unsigned char' if <sys/types.h> does not define. */
921933707f3Ssthen#undef uint8_t
922933707f3Ssthen
923933707f3Ssthen/* Define as `fork' if `vfork' does not work. */
924933707f3Ssthen#undef vfork
925933707f3Ssthen
926933707f3Ssthen#if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
927933707f3Ssthen#define _GNU_SOURCE 1
928933707f3Ssthen#endif
929933707f3Ssthen
930933707f3Ssthen#if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
931933707f3Ssthen#define _BSD_SOURCE 1
932933707f3Ssthen#endif
933933707f3Ssthen
93432e31f52Ssthen#if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
93532e31f52Ssthen#define _DEFAULT_SOURCE 1
93632e31f52Ssthen#endif
93732e31f52Ssthen
938933707f3Ssthen#if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
939933707f3Ssthen#define __EXTENSIONS__ 1
940933707f3Ssthen#endif
941933707f3Ssthen
942933707f3Ssthen#if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
943933707f3Ssthen#define _POSIX_C_SOURCE 200112
944933707f3Ssthen#endif
945933707f3Ssthen
946933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
947933707f3Ssthen#define _XOPEN_SOURCE 600
948933707f3Ssthen#endif
949933707f3Ssthen
950933707f3Ssthen#if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
951933707f3Ssthen#define _XOPEN_SOURCE_EXTENDED 1
952933707f3Ssthen#endif
953933707f3Ssthen
954933707f3Ssthen#if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
955933707f3Ssthen#define _ALL_SOURCE 1
956933707f3Ssthen#endif
957933707f3Ssthen
958933707f3Ssthen#if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
959933707f3Ssthen#define _LARGEFILE_SOURCE 1
960933707f3Ssthen#endif
961933707f3Ssthen
962933707f3Ssthen
963933707f3Ssthen
964933707f3Ssthen
965933707f3Ssthen#ifndef UNBOUND_DEBUG
966933707f3Ssthen#  define NDEBUG
967933707f3Ssthen#endif
968933707f3Ssthen
9695d76a658Ssthen/** Use small-ldns codebase */
9705d76a658Ssthen#define USE_SLDNS 1
9715d76a658Ssthen#ifdef HAVE_SSL
9725d76a658Ssthen#  define LDNS_BUILD_CONFIG_HAVE_SSL 1
9735d76a658Ssthen#endif
9745d76a658Ssthen
975933707f3Ssthen#include <stdio.h>
976933707f3Ssthen#include <string.h>
977933707f3Ssthen#include <unistd.h>
978933707f3Ssthen#include <assert.h>
979933707f3Ssthen
980933707f3Ssthen#if STDC_HEADERS
981933707f3Ssthen#include <stdlib.h>
982933707f3Ssthen#include <stddef.h>
983933707f3Ssthen#endif
984933707f3Ssthen
9855d76a658Ssthen#ifdef HAVE_STDARG_H
9865d76a658Ssthen#include <stdarg.h>
9875d76a658Ssthen#endif
9885d76a658Ssthen
989933707f3Ssthen#ifdef HAVE_STDINT_H
990933707f3Ssthen#include <stdint.h>
991933707f3Ssthen#endif
992933707f3Ssthen
993933707f3Ssthen#include <errno.h>
994933707f3Ssthen
995933707f3Ssthen#if HAVE_SYS_PARAM_H
996933707f3Ssthen#include <sys/param.h>
997933707f3Ssthen#endif
998933707f3Ssthen
999933707f3Ssthen#ifdef HAVE_SYS_SOCKET_H
1000933707f3Ssthen#include <sys/socket.h>
1001933707f3Ssthen#endif
1002933707f3Ssthen
1003933707f3Ssthen#ifdef HAVE_SYS_UIO_H
1004933707f3Ssthen#include <sys/uio.h>
1005933707f3Ssthen#endif
1006933707f3Ssthen
1007933707f3Ssthen#ifdef HAVE_NETINET_IN_H
1008933707f3Ssthen#include <netinet/in.h>
1009933707f3Ssthen#endif
1010933707f3Ssthen
101132e31f52Ssthen#ifdef HAVE_NETINET_TCP_H
101232e31f52Ssthen#include <netinet/tcp.h>
101332e31f52Ssthen#endif
101432e31f52Ssthen
1015933707f3Ssthen#ifdef HAVE_ARPA_INET_H
1016933707f3Ssthen#include <arpa/inet.h>
1017933707f3Ssthen#endif
1018933707f3Ssthen
1019933707f3Ssthen#ifdef HAVE_WINSOCK2_H
1020933707f3Ssthen#include <winsock2.h>
1021933707f3Ssthen#endif
1022933707f3Ssthen
1023933707f3Ssthen#ifdef HAVE_WS2TCPIP_H
1024933707f3Ssthen#include <ws2tcpip.h>
1025933707f3Ssthen#endif
1026933707f3Ssthen
10275d76a658Ssthen#ifndef USE_WINSOCK
10285d76a658Ssthen#define ARG_LL "%ll"
10295d76a658Ssthen#else
10305d76a658Ssthen#define ARG_LL "%I64"
10315d76a658Ssthen#endif
10325d76a658Ssthen
1033b2cdf21fSsthen#ifndef AF_LOCAL
1034b2cdf21fSsthen#define AF_LOCAL AF_UNIX
1035b2cdf21fSsthen#endif
1036b2cdf21fSsthen
1037933707f3Ssthen
1038933707f3Ssthen
1039933707f3Ssthen#ifdef HAVE_ATTR_FORMAT
1040933707f3Ssthen#  define ATTR_FORMAT(archetype, string_index, first_to_check) \
1041933707f3Ssthen    __attribute__ ((format (archetype, string_index, first_to_check)))
1042933707f3Ssthen#else /* !HAVE_ATTR_FORMAT */
1043933707f3Ssthen#  define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1044933707f3Ssthen#endif /* !HAVE_ATTR_FORMAT */
1045933707f3Ssthen
1046933707f3Ssthen
1047933707f3Ssthen#if defined(DOXYGEN)
1048933707f3Ssthen#  define ATTR_UNUSED(x)  x
1049933707f3Ssthen#elif defined(__cplusplus)
1050933707f3Ssthen#  define ATTR_UNUSED(x)
1051933707f3Ssthen#elif defined(HAVE_ATTR_UNUSED)
1052933707f3Ssthen#  define ATTR_UNUSED(x)  x __attribute__((unused))
1053933707f3Ssthen#else /* !HAVE_ATTR_UNUSED */
1054933707f3Ssthen#  define ATTR_UNUSED(x)  x
1055933707f3Ssthen#endif /* !HAVE_ATTR_UNUSED */
1056933707f3Ssthen
1057933707f3Ssthen
1058933707f3Ssthen#ifndef HAVE_FSEEKO
1059933707f3Ssthen#define fseeko fseek
1060933707f3Ssthen#define ftello ftell
1061933707f3Ssthen#endif /* HAVE_FSEEKO */
1062933707f3Ssthen
1063933707f3Ssthen
1064933707f3Ssthen#ifndef MAXHOSTNAMELEN
1065933707f3Ssthen#define MAXHOSTNAMELEN 256
1066933707f3Ssthen#endif
1067933707f3Ssthen
106824893edcSsthen#if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1069933707f3Ssthen#define snprintf snprintf_unbound
1070933707f3Ssthen#define vsnprintf vsnprintf_unbound
1071933707f3Ssthen#include <stdarg.h>
1072933707f3Ssthenint snprintf (char *str, size_t count, const char *fmt, ...);
1073933707f3Ssthenint vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
107424893edcSsthen#endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1075933707f3Ssthen
1076933707f3Ssthen#ifndef HAVE_INET_PTON
1077933707f3Ssthen#define inet_pton inet_pton_unbound
1078933707f3Ssthenint inet_pton(int af, const char* src, void* dst);
1079933707f3Ssthen#endif /* HAVE_INET_PTON */
1080933707f3Ssthen
1081933707f3Ssthen
1082933707f3Ssthen#ifndef HAVE_INET_NTOP
1083933707f3Ssthen#define inet_ntop inet_ntop_unbound
1084933707f3Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
1085933707f3Ssthen#endif
1086933707f3Ssthen
1087933707f3Ssthen
1088933707f3Ssthen#ifndef HAVE_INET_ATON
1089933707f3Ssthen#define inet_aton inet_aton_unbound
1090933707f3Ssthenint inet_aton(const char *cp, struct in_addr *addr);
1091933707f3Ssthen#endif
1092933707f3Ssthen
1093933707f3Ssthen
1094933707f3Ssthen#ifndef HAVE_MEMMOVE
1095933707f3Ssthen#define memmove memmove_unbound
1096933707f3Ssthenvoid *memmove(void *dest, const void *src, size_t n);
1097933707f3Ssthen#endif
1098933707f3Ssthen
1099933707f3Ssthen
11005d76a658Ssthen#ifndef HAVE_STRLCAT
11015d76a658Ssthen#define strlcat strlcat_unbound
11025d76a658Ssthensize_t strlcat(char *dst, const char *src, size_t siz);
11035d76a658Ssthen#endif
11045d76a658Ssthen
11055d76a658Ssthen
1106933707f3Ssthen#ifndef HAVE_STRLCPY
1107933707f3Ssthen#define strlcpy strlcpy_unbound
1108933707f3Ssthensize_t strlcpy(char *dst, const char *src, size_t siz);
1109933707f3Ssthen#endif
1110933707f3Ssthen
1111933707f3Ssthen
1112933707f3Ssthen#ifndef HAVE_GMTIME_R
1113933707f3Ssthen#define gmtime_r gmtime_r_unbound
1114933707f3Ssthenstruct tm *gmtime_r(const time_t *timep, struct tm *result);
1115933707f3Ssthen#endif
1116933707f3Ssthen
1117933707f3Ssthen
1118fdfb4ba6Ssthen#ifndef HAVE_REALLOCARRAY
1119fdfb4ba6Ssthen#define reallocarray reallocarrayunbound
1120fdfb4ba6Ssthenvoid* reallocarray(void *ptr, size_t nmemb, size_t size);
1121fdfb4ba6Ssthen#endif
1122fdfb4ba6Ssthen
1123fdfb4ba6Ssthen
1124229e174cSsthen#if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1125933707f3Ssthen#define sleep(x) Sleep((x)*1000) /* on win32 */
1126933707f3Ssthen#endif /* HAVE_SLEEP */
1127933707f3Ssthen
1128933707f3Ssthen
1129933707f3Ssthen#ifndef HAVE_USLEEP
1130933707f3Ssthen#define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1131933707f3Ssthen#endif /* HAVE_USLEEP */
1132933707f3Ssthen
1133933707f3Ssthen
1134933707f3Ssthen#ifndef HAVE_RANDOM
1135933707f3Ssthen#define random rand /* on win32, for tests only (bad random) */
1136933707f3Ssthen#endif /* HAVE_RANDOM */
1137933707f3Ssthen
1138933707f3Ssthen
1139933707f3Ssthen#ifndef HAVE_SRANDOM
1140933707f3Ssthen#define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1141933707f3Ssthen#endif /* HAVE_SRANDOM */
1142933707f3Ssthen
1143933707f3Ssthen
1144933707f3Ssthen/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1145933707f3Ssthen#ifdef HAVE_WINSOCK2_H
1146933707f3Ssthen#define FD_SET_T (u_int)
1147933707f3Ssthen#else
1148933707f3Ssthen#define FD_SET_T
1149933707f3Ssthen#endif
1150933707f3Ssthen
1151933707f3Ssthen
1152933707f3Ssthen#ifndef IPV6_MIN_MTU
1153933707f3Ssthen#define IPV6_MIN_MTU 1280
1154933707f3Ssthen#endif /* IPV6_MIN_MTU */
1155933707f3Ssthen
1156933707f3Ssthen
1157933707f3Ssthen#ifdef MEMCMP_IS_BROKEN
1158d8d14d0cSsthen#include "compat/memcmp.h"
1159933707f3Ssthen#define memcmp memcmp_unbound
1160933707f3Ssthenint memcmp(const void *x, const void *y, size_t n);
1161933707f3Ssthen#endif
1162933707f3Ssthen
1163933707f3Ssthen
1164933707f3Ssthen
1165933707f3Ssthen#ifndef HAVE_CTIME_R
1166933707f3Ssthen#define ctime_r unbound_ctime_r
1167933707f3Ssthenchar *ctime_r(const time_t *timep, char *buf);
1168933707f3Ssthen#endif
1169933707f3Ssthen
11702ee382b6Ssthen#ifndef HAVE_STRSEP
11712ee382b6Ssthen#define strsep unbound_strsep
11722ee382b6Ssthenchar *strsep(char **stringp, const char *delim);
11732ee382b6Ssthen#endif
11742ee382b6Ssthen
117524893edcSsthen#ifndef HAVE_ISBLANK
117624893edcSsthen#define isblank unbound_isblank
117724893edcSsthenint isblank(int c);
117824893edcSsthen#endif
117924893edcSsthen
1180452a1548Ssthen#ifndef HAVE_EXPLICIT_BZERO
1181452a1548Ssthen#define explicit_bzero unbound_explicit_bzero
1182452a1548Ssthenvoid explicit_bzero(void* buf, size_t len);
1183452a1548Ssthen#endif
1184452a1548Ssthen
118577079be7Ssthen#if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
118677079be7Ssthenconst char *inet_ntop(int af, const void *src, char *dst, size_t size);
118777079be7Ssthen#endif
118877079be7Ssthen
118977079be7Ssthen#if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
119077079be7Ssthenint inet_pton(int af, const char* src, void* dst);
119177079be7Ssthen#endif
119277079be7Ssthen
1193933707f3Ssthen#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1194933707f3Ssthen#define strptime unbound_strptime
1195933707f3Ssthenstruct tm;
1196933707f3Ssthenchar *strptime(const char *s, const char *format, struct tm *tm);
1197933707f3Ssthen#endif
1198933707f3Ssthen
119998f3ca02Sbrad#ifdef HAVE_LIBRESSL
120098f3ca02Sbrad#  if !HAVE_DECL_STRLCPY
120198f3ca02Sbradsize_t strlcpy(char *dst, const char *src, size_t siz);
120298f3ca02Sbrad#  endif
120398f3ca02Sbrad#  if !HAVE_DECL_STRLCAT
120498f3ca02Sbradsize_t strlcat(char *dst, const char *src, size_t siz);
120598f3ca02Sbrad#  endif
120698f3ca02Sbrad#  if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
120798f3ca02Sbraduint32_t arc4random(void);
120898f3ca02Sbrad#  endif
120998f3ca02Sbrad#  if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
121098f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound);
121198f3ca02Sbrad#  endif
1212fdfb4ba6Ssthen#  if !HAVE_DECL_REALLOCARRAY
1213fdfb4ba6Ssthenvoid *reallocarray(void *ptr, size_t nmemb, size_t size);
1214fdfb4ba6Ssthen#  endif
121598f3ca02Sbrad#endif /* HAVE_LIBRESSL */
121698f3ca02Sbrad#ifndef HAVE_ARC4RANDOM
121798f3ca02Sbradint getentropy(void* buf, size_t len);
121898f3ca02Sbraduint32_t arc4random(void);
121998f3ca02Sbradvoid arc4random_buf(void* buf, size_t n);
122098f3ca02Sbradvoid _ARC4_LOCK(void);
122198f3ca02Sbradvoid _ARC4_UNLOCK(void);
1222938a3a5eSflorianvoid _ARC4_LOCK_DESTROY(void);
122398f3ca02Sbrad#endif
122498f3ca02Sbrad#ifndef HAVE_ARC4RANDOM_UNIFORM
122598f3ca02Sbraduint32_t arc4random_uniform(uint32_t upper_bound);
122698f3ca02Sbrad#endif
122798f3ca02Sbrad#ifdef COMPAT_SHA512
122898f3ca02Sbrad#ifndef SHA512_DIGEST_LENGTH
122998f3ca02Sbrad#define SHA512_BLOCK_LENGTH		128
123098f3ca02Sbrad#define SHA512_DIGEST_LENGTH		64
123198f3ca02Sbrad#define SHA512_DIGEST_STRING_LENGTH	(SHA512_DIGEST_LENGTH * 2 + 1)
123298f3ca02Sbradtypedef struct _SHA512_CTX {
123398f3ca02Sbrad	uint64_t	state[8];
123498f3ca02Sbrad	uint64_t	bitcount[2];
123598f3ca02Sbrad	uint8_t	buffer[SHA512_BLOCK_LENGTH];
123698f3ca02Sbrad} SHA512_CTX;
123798f3ca02Sbrad#endif /* SHA512_DIGEST_LENGTH */
123898f3ca02Sbradvoid SHA512_Init(SHA512_CTX*);
123998f3ca02Sbradvoid SHA512_Update(SHA512_CTX*, void*, size_t);
124098f3ca02Sbradvoid SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
124198f3ca02Sbradunsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
124298f3ca02Sbrad#endif /* COMPAT_SHA512 */
124398f3ca02Sbrad
124498f3ca02Sbrad
124598f3ca02Sbrad
1246933707f3Ssthen#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))
1247933707f3Ssthen   /* using version of libevent that is not threadsafe. */
1248933707f3Ssthen#  define LIBEVENT_SIGNAL_PROBLEM 1
1249933707f3Ssthen#endif
1250933707f3Ssthen
1251933707f3Ssthen#ifndef CHECKED_INET6
1252933707f3Ssthen#  define CHECKED_INET6
1253933707f3Ssthen#  ifdef AF_INET6
1254933707f3Ssthen#    define INET6
1255933707f3Ssthen#  else
1256933707f3Ssthen#    define AF_INET6        28
1257933707f3Ssthen#  endif
1258933707f3Ssthen#endif /* CHECKED_INET6 */
1259933707f3Ssthen
1260933707f3Ssthen#ifndef HAVE_GETADDRINFO
1261933707f3Ssthenstruct sockaddr_storage;
1262933707f3Ssthen#include "compat/fake-rfc2553.h"
1263933707f3Ssthen#endif
1264933707f3Ssthen
1265933707f3Ssthen#ifdef UNBOUND_ALLOC_STATS
1266933707f3Ssthen#  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1267933707f3Ssthen#  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1268933707f3Ssthen#  define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1269933707f3Ssthen#  define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1270933707f3Ssthenvoid *unbound_stat_malloc(size_t size);
1271933707f3Ssthenvoid *unbound_stat_calloc(size_t nmemb, size_t size);
1272933707f3Ssthenvoid unbound_stat_free(void *ptr);
1273933707f3Ssthenvoid *unbound_stat_realloc(void *ptr, size_t size);
1274933707f3Ssthenvoid *unbound_stat_malloc_log(size_t size, const char* file, int line,
1275933707f3Ssthen	const char* func);
1276933707f3Ssthenvoid *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1277933707f3Ssthen	int line, const char* func);
1278933707f3Ssthenvoid unbound_stat_free_log(void *ptr, const char* file, int line,
1279933707f3Ssthen	const char* func);
1280933707f3Ssthenvoid *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1281933707f3Ssthen	int line, const char* func);
1282933707f3Ssthen#elif defined(UNBOUND_ALLOC_LITE)
1283933707f3Ssthen#  include "util/alloc.h"
1284933707f3Ssthen#endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1285933707f3Ssthen
1286933707f3Ssthen/** default port for DNS traffic. */
1287933707f3Ssthen#define UNBOUND_DNS_PORT 53
128820237c55Ssthen/** default port for DNS over TLS traffic. */
128920237c55Ssthen#define UNBOUND_DNS_OVER_TLS_PORT 853
1290933707f3Ssthen/** default port for unbound control traffic, registered port with IANA,
1291933707f3Ssthen    ub-dns-control  8953/tcp    unbound dns nameserver control */
1292933707f3Ssthen#define UNBOUND_CONTROL_PORT 8953
1293933707f3Ssthen/** the version of unbound-control that this software implements */
1294933707f3Ssthen#define UNBOUND_CONTROL_VERSION 1
1295933707f3Ssthen
1296933707f3Ssthen
1297