1 /* ldns/config.h. Generated from config.h.in by configure. */
2 /* ldns/config.h.in. Generated from configure.ac by autoheader. */
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
7 /* Define to 1 if you have the <arpa/inet.h> header file. */
8 #define HAVE_ARPA_INET_H 1
10 /* Whether the C compiler accepts the "format" attribute */
11 #define HAVE_ATTR_FORMAT 1
13 /* Whether the C compiler accepts the "unused" attribute */
14 #define HAVE_ATTR_UNUSED 1
16 /* Define to 1 if you have the `b32_ntop' function. */
17 /* #undef HAVE_B32_NTOP */
19 /* Define to 1 if you have the `b32_pton' function. */
20 /* #undef HAVE_B32_PTON */
22 /* Define to 1 if you have the `b64_ntop' function. */
23 /* #undef HAVE_B64_NTOP */
25 /* Define to 1 if you have the `b64_pton' function. */
26 /* #undef HAVE_B64_PTON */
28 /* Define to 1 if you have the `bzero' function. */
31 /* Define to 1 if you have the `calloc' function. */
34 /* Define to 1 if you have the `ctime_r' function. */
35 #define HAVE_CTIME_R 1
37 /* Is a CAFILE given at configure time */
38 #define HAVE_DANE_CA_FILE 0
40 /* Is a CAPATH given at configure time */
41 #define HAVE_DANE_CA_PATH 0
43 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
45 #define HAVE_DECL_NID_SECP384R1 1
47 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
49 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
51 /* Define to 1 if you have the <dlfcn.h> header file. */
52 #define HAVE_DLFCN_H 1
54 /* Define to 1 if you have the `endprotoent' function. */
55 #define HAVE_ENDPROTOENT 1
57 /* Define to 1 if you have the `endservent' function. */
58 #define HAVE_ENDSERVENT 1
60 /* Define to 1 if you have the `EVP_sha256' function. */
61 #define HAVE_EVP_SHA256 1
63 /* Define to 1 if you have the `fcntl' function. */
66 /* Define to 1 if you have the `fork' function. */
69 /* Whether getaddrinfo is available */
70 #define HAVE_GETADDRINFO 1
72 /* Define to 1 if you have the <getopt.h> header file. */
73 #define HAVE_GETOPT_H 1
75 /* Define to 1 if you have the `gmtime_r' function. */
76 #define HAVE_GMTIME_R 1
78 /* If you have HMAC_CTX_init */
79 #define HAVE_HMAC_CTX_INIT 1
81 /* Define to 1 if you have the `inet_aton' function. */
82 #define HAVE_INET_ATON 1
84 /* Define to 1 if you have the `inet_ntop' function. */
85 #define HAVE_INET_NTOP 1
87 /* Define to 1 if you have the `inet_pton' function. */
88 #define HAVE_INET_PTON 1
90 /* Define to 1 if the system has the type `intptr_t'. */
91 #define HAVE_INTPTR_T 1
93 /* define if you have inttypes.h */
94 #define HAVE_INTTYPES_H 1
96 /* if the function 'ioctlsocket' is available */
97 /* #undef HAVE_IOCTLSOCKET */
99 /* Define to 1 if you have the `isascii' function. */
100 #define HAVE_ISASCII 1
102 /* Define to 1 if you have the `isblank' function. */
103 #define HAVE_ISBLANK 1
105 /* Define to 1 if you have the `pcap' library (-lpcap). */
106 /* #undef HAVE_LIBPCAP */
108 /* Define to 1 if you have the `localtime_r' function. */
109 #define HAVE_LOCALTIME_R 1
111 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
113 #define HAVE_MALLOC 1
115 /* Define to 1 if you have the `memmove' function. */
116 #define HAVE_MEMMOVE 1
118 /* Define to 1 if you have the <memory.h> header file. */
119 #define HAVE_MEMORY_H 1
121 /* Define to 1 if you have the `memset' function. */
122 #define HAVE_MEMSET 1
124 /* Define to 1 if you have the <netdb.h> header file. */
125 #define HAVE_NETDB_H 1
127 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
128 /* #undef HAVE_NETINET_IF_ETHER_H */
130 /* Define to 1 if you have the <netinet/igmp.h> header file. */
131 /* #undef HAVE_NETINET_IGMP_H */
133 /* Define to 1 if you have the <netinet/in.h> header file. */
134 #define HAVE_NETINET_IN_H 1
136 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
137 /* #undef HAVE_NETINET_IN_SYSTM_H */
139 /* Define to 1 if you have the <netinet/ip6.h> header file. */
140 /* #undef HAVE_NETINET_IP6_H */
142 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
143 /* #undef HAVE_NETINET_IP_COMPAT_H */
145 /* Define to 1 if you have the <netinet/ip.h> header file. */
146 /* #undef HAVE_NETINET_IP_H */
148 /* Define to 1 if you have the <netinet/udp.h> header file. */
149 /* #undef HAVE_NETINET_UDP_H */
151 /* Define to 1 if you have the <net/ethernet.h> header file. */
152 /* #undef HAVE_NET_ETHERNET_H */
154 /* Define to 1 if you have the <net/if.h> header file. */
155 /* #undef HAVE_NET_IF_H */
157 /* Define to 1 if you have the <openssl/err.h> header file. */
158 #define HAVE_OPENSSL_ERR_H 1
160 /* Define to 1 if you have the <openssl/rand.h> header file. */
161 #define HAVE_OPENSSL_RAND_H 1
163 /* Define to 1 if you have the <openssl/ssl.h> header file. */
164 #define HAVE_OPENSSL_SSL_H 1
166 /* Define to 1 if you have the <pcap.h> header file. */
167 /* #undef HAVE_PCAP_H */
169 /* If available, contains the Python version number currently in use. */
170 /* #undef HAVE_PYTHON */
172 /* Define to 1 if you have the `random' function. */
173 #define HAVE_RANDOM 1
175 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
176 and to 0 otherwise. */
177 #define HAVE_REALLOC 1
179 /* Define to 1 if you have the `sleep' function. */
182 /* Define to 1 if you have the `snprintf' function. */
183 #define HAVE_SNPRINTF 1
185 /* Define if you have the SSL libraries installed. */
186 #define HAVE_SSL /**/
188 /* Define to 1 if you have the <stdarg.h> header file. */
189 #define HAVE_STDARG_H 1
191 /* Define to 1 if stdbool.h conforms to C99. */
192 #define HAVE_STDBOOL_H 1
194 /* Define to 1 if you have the <stdint.h> header file. */
195 #define HAVE_STDINT_H 1
197 /* Define to 1 if you have the <stdlib.h> header file. */
198 #define HAVE_STDLIB_H 1
200 /* Define to 1 if you have the <strings.h> header file. */
201 #define HAVE_STRINGS_H 1
203 /* Define to 1 if you have the <string.h> header file. */
204 #define HAVE_STRING_H 1
206 /* Define to 1 if you have the `strlcpy' function. */
207 #define HAVE_STRLCPY 1
209 /* Define to 1 if you have the `strtoul' function. */
210 #define HAVE_STRTOUL 1
212 /* Define if you have SWIG libraries and header files. */
213 /* #undef HAVE_SWIG */
215 /* Define to 1 if you have the <sys/mount.h> header file. */
216 #define HAVE_SYS_MOUNT_H 1
218 /* Define to 1 if you have the <sys/param.h> header file. */
219 #define HAVE_SYS_PARAM_H 1
221 /* define if you have sys/socket.h */
222 #define HAVE_SYS_SOCKET_H 1
224 /* Define to 1 if you have the <sys/stat.h> header file. */
225 #define HAVE_SYS_STAT_H 1
227 /* define if you have sys/types.h */
228 #define HAVE_SYS_TYPES_H 1
230 /* Define to 1 if you have the `timegm' function. */
231 #define HAVE_TIMEGM 1
233 /* Define to 1 if you have the <time.h> header file. */
234 #define HAVE_TIME_H 1
236 /* define if you have unistd.h */
237 #define HAVE_UNISTD_H 1
239 /* Define to 1 if you have the `vfork' function. */
242 /* Define to 1 if you have the <vfork.h> header file. */
243 /* #undef HAVE_VFORK_H */
245 /* Define to 1 if you have the <winsock2.h> header file. */
246 /* #undef HAVE_WINSOCK2_H */
248 /* Define to 1 if `fork' works. */
249 #define HAVE_WORKING_FORK 1
251 /* Define to 1 if `vfork' works. */
252 #define HAVE_WORKING_VFORK 1
254 /* Define to 1 if you have the <ws2tcpip.h> header file. */
255 /* #undef HAVE_WS2TCPIP_H */
257 /* Define to 1 if the system has the type `_Bool'. */
260 /* Is a CAFILE given at configure time */
261 /* #undef LDNS_DANE_CA_FILE */
263 /* Is a CAPATH given at configure time */
264 /* #undef LDNS_DANE_CA_PATH */
266 /* Default trust anchor file */
267 #define LDNS_TRUST_ANCHOR_FILE "/usr/local/etc/unbound/root.key"
269 /* Define to the sub-directory in which libtool stores uninstalled libraries.
271 #define LT_OBJDIR ".libs/"
273 /* Define to the address where bug reports for this package should be sent. */
274 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
276 /* Define to the full name of this package. */
277 #define PACKAGE_NAME "ldns"
279 /* Define to the full name and version of this package. */
280 #define PACKAGE_STRING "ldns 1.6.16"
282 /* Define to the one symbol short name of this package. */
283 #define PACKAGE_TARNAME "libdns"
285 /* Define to the home page for this package. */
286 #define PACKAGE_URL ""
288 /* Define to the version of this package. */
289 #define PACKAGE_VERSION "1.6.16"
291 /* The size of `time_t', as computed by sizeof. */
292 #define SIZEOF_TIME_T 4
294 /* Define to 1 if you have the ANSI C header files. */
295 #define STDC_HEADERS 1
297 /* System configuration dir */
298 #define SYSCONFDIR sysconfdir
300 /* Define this to enable ECDSA support. */
303 /* Define this to enable GOST support. */
304 /* #undef USE_GOST */
306 /* Define this to enable SHA256 and SHA512 support. */
309 /* Enable extensions on AIX 3, Interix. */
311 # define _ALL_SOURCE 1
313 /* Enable GNU extensions on systems that have them. */
315 # define _GNU_SOURCE 1
317 /* Enable threading extensions on Solaris. */
318 #ifndef _POSIX_PTHREAD_SEMANTICS
319 # define _POSIX_PTHREAD_SEMANTICS 1
321 /* Enable extensions on HP NonStop. */
322 #ifndef _TANDEM_SOURCE
323 # define _TANDEM_SOURCE 1
325 /* Enable general extensions on Solaris. */
326 #ifndef __EXTENSIONS__
327 # define __EXTENSIONS__ 1
331 /* Whether the windows socket API is used */
332 /* #undef USE_WINSOCK */
334 /* the version of the windows API enabled */
335 #define WINVER 0x0502
337 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
338 significant byte first (like Motorola and SPARC, unlike Intel). */
339 #if defined AC_APPLE_UNIVERSAL_BUILD
340 # if defined __BIG_ENDIAN__
341 # define WORDS_BIGENDIAN 1
344 # ifndef WORDS_BIGENDIAN
345 /* # undef WORDS_BIGENDIAN */
349 /* Define to 1 if on MINIX. */
352 /* Define to 2 if the system does not provide POSIX.1 features except with
354 /* #undef _POSIX_1_SOURCE */
356 /* Define to 1 if you need to in order for `stat' and other things to work. */
357 /* #undef _POSIX_SOURCE */
359 /* Define to empty if `const' does not conform to ANSI C. */
363 /* #undef in_addr_t */
366 /* #undef in_port_t */
368 /* Define to `__inline__' or `__inline' if that's what the C compiler
369 calls it, or to nothing if 'inline' is not supported under any name. */
374 /* Define to `short' if <sys/types.h> does not define. */
377 /* Define to `int' if <sys/types.h> does not define. */
380 /* Define to `long long' if <sys/types.h> does not define. */
383 /* Define to `char' if <sys/types.h> does not define. */
386 /* Define to the type of a signed integer type wide enough to hold a pointer,
387 if such a type exists, and if the system does not define it. */
388 /* #undef intptr_t */
390 /* Define to rpl_malloc if the replacement function should be used. */
393 /* Define to `int' if <sys/types.h> does not define. */
396 /* Define to rpl_realloc if the replacement function should be used. */
399 /* Define to `unsigned int' if <sys/types.h> does not define. */
402 /* Define to 'int' if not defined */
403 /* #undef socklen_t */
405 /* Fallback member name for socket family in struct sockaddr_storage */
406 /* #undef ss_family */
408 /* Define to `int' if <sys/types.h> does not define. */
411 /* Define to `unsigned short' if <sys/types.h> does not define. */
412 /* #undef uint16_t */
414 /* Define to `unsigned int' if <sys/types.h> does not define. */
415 /* #undef uint32_t */
417 /* Define to `unsigned long long' if <sys/types.h> does not define. */
418 /* #undef uint64_t */
420 /* Define to `unsigned char' if <sys/types.h> does not define. */
423 /* Define as `fork' if `vfork' does not work. */
432 #ifndef LITTLE_ENDIAN
433 #define LITTLE_ENDIAN 1234
437 #define BIG_ENDIAN 4321
441 #ifdef WORDS_BIGENDIAN
442 #define BYTE_ORDER BIG_ENDIAN
444 #define BYTE_ORDER LITTLE_ENDIAN
445 #endif /* WORDS_BIGENDIAN */
446 #endif /* BYTE_ORDER */
457 #ifdef HAVE_SYS_SOCKET_H
458 #include <sys/socket.h>
461 #ifdef HAVE_NETINET_IN_H
462 #include <netinet/in.h>
465 #ifdef HAVE_ARPA_INET_H
466 #include <arpa/inet.h>
469 #ifdef HAVE_WINSOCK2_H
470 #include <winsock2.h>
473 #ifdef HAVE_WS2TCPIP_H
474 #include <ws2tcpip.h>
478 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
479 #ifdef HAVE_WINSOCK2_H
480 #define FD_SET_T (u_int)
493 int ldns_b64_ntop(uint8_t const *src
, size_t srclength
,
494 char *target
, size_t targsize
);
496 * calculates the size needed to store the result of b64_ntop
499 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize
)
501 return ((((srcsize
+ 2) / 3) * 4) + 1);
503 #endif /* !B64_PTON */
505 int ldns_b64_pton(char const *src
, uint8_t *target
, size_t targsize
);
507 * calculates the size needed to store the result of ldns_b64_pton
510 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize
)
512 return (((((srcsize
+ 3) / 4) * 3)) + 1);
514 #endif /* !B64_NTOP */
517 /* use windows sleep, in millisecs, instead */
518 #define sleep(x) Sleep((x)*1000)
522 #define srandom(x) srand(x)
523 #define random(x) rand(x)
528 time_t timegm (struct tm
*tm
);
530 #ifndef HAVE_GMTIME_R
531 struct tm
*gmtime_r(const time_t *timep
, struct tm
*result
);
533 #ifndef HAVE_LOCALTIME_R
534 struct tm
*localtime_r(const time_t *timep
, struct tm
*result
);
538 #endif /* !HAVE_ISBLANK */
541 #endif /* !HAVE_ISASCII */
542 #ifndef HAVE_SNPRINTF
544 int snprintf (char *str
, size_t count
, const char *fmt
, ...);
545 int vsnprintf (char *str
, size_t count
, const char *fmt
, va_list arg
);
546 #endif /* HAVE_SNPRINTF */
547 #ifndef HAVE_INET_PTON
548 int inet_pton(int af
, const char* src
, void* dst
);
549 #endif /* HAVE_INET_PTON */
550 #ifndef HAVE_INET_NTOP
551 const char *inet_ntop(int af
, const void *src
, char *dst
, size_t size
);
553 #ifndef HAVE_INET_ATON
554 int inet_aton(const char *cp
, struct in_addr
*addr
);
557 void *memmove(void *dest
, const void *src
, size_t n
);
560 size_t strlcpy(char *dst
, const char *src
, size_t siz
);
565 #ifndef HAVE_GETADDRINFO
566 #include "compat/fake-rfc2553.h"
569 #define strtoul (unsigned long)strtol