8 #define HAVE_ARPA_INET_H 1
11 #define HAVE_ATTR_FORMAT 1
14 #define HAVE_ATTR_UNUSED 1
35 #define HAVE_CTIME_R 1
38 #define HAVE_DANE_CA_FILE 1
41 #define HAVE_DANE_CA_PATH 1
52 #define HAVE_DLFCN_H 1
55 #define HAVE_ENDPROTOENT 1
58 #define HAVE_ENDSERVENT 1
61 #define HAVE_EVP_SHA256 1
70 #define HAVE_GETADDRINFO 1
73 #define HAVE_GETOPT_H 1
76 #define HAVE_GMTIME_R 1
79 #define HAVE_HMAC_CTX_INIT 1
82 #define HAVE_INET_ATON 1
85 #define HAVE_INET_NTOP 1
88 #define HAVE_INET_PTON 1
91 #define HAVE_INTPTR_T 1
94 #define HAVE_INTTYPES_H 1
100 #define HAVE_ISASCII 1
103 #define HAVE_ISBLANK 1
109 #define HAVE_LOCALTIME_R 1
113 #define HAVE_MALLOC 1
116 #define HAVE_MEMMOVE 1
119 #define HAVE_MEMORY_H 1
122 #define HAVE_MEMSET 1
125 #define HAVE_NETDB_H 1
134 #define HAVE_NETINET_IN_H 1
158 #define HAVE_OPENSSL_ERR_H 1
161 #define HAVE_OPENSSL_RAND_H 1
164 #define HAVE_OPENSSL_SSL_H 1
170 #define HAVE_PYTHON "2.7"
173 #define HAVE_RANDOM 1
177 #define HAVE_REALLOC 1
183 #define HAVE_SNPRINTF 1
189 #define HAVE_STDARG_H 1
192 #define HAVE_STDBOOL_H 1
195 #define HAVE_STDINT_H 1
198 #define HAVE_STDLIB_H 1
201 #define HAVE_STRINGS_H 1
204 #define HAVE_STRING_H 1
210 #define HAVE_STRTOUL 1
216 #define HAVE_SYS_MOUNT_H 1
219 #define HAVE_SYS_PARAM_H 1
222 #define HAVE_SYS_SOCKET_H 1
225 #define HAVE_SYS_STAT_H 1
228 #define HAVE_SYS_TYPES_H 1
231 #define HAVE_TIMEGM 1
234 #define HAVE_TIME_H 1
237 #define HAVE_UNISTD_H 1
249 #define HAVE_WORKING_FORK 1
252 #define HAVE_WORKING_VFORK 1
261 #define LDNS_DANE_CA_FILE "/etc/pki/tls/certs/ca-bundle.trust.crt"
264 #define LDNS_DANE_CA_PATH "/etc/pki/tls/certs/"
267 #define LDNS_TRUST_ANCHOR_FILE "/var/lib/unbound/root.key"
271 #define LT_OBJDIR ".libs/"
274 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
277 #define PACKAGE_NAME "ldns"
280 #define PACKAGE_STRING "ldns 1.6.16"
283 #define PACKAGE_TARNAME "libdns"
286 #define PACKAGE_URL ""
289 #define PACKAGE_VERSION "1.6.16"
292 #define SIZEOF_TIME_T 4
295 #define STDC_HEADERS 1
298 #define SYSCONFDIR sysconfdir
311 # define _ALL_SOURCE 1
315 # define _GNU_SOURCE 1
318 #ifndef _POSIX_PTHREAD_SEMANTICS
319 # define _POSIX_PTHREAD_SEMANTICS 1
322 #ifndef _TANDEM_SOURCE
323 # define _TANDEM_SOURCE 1
326 #ifndef __EXTENSIONS__
327 # define __EXTENSIONS__ 1
335 #define WINVER 0x0502
339 #if defined AC_APPLE_UNIVERSAL_BUILD
340 # if defined __BIG_ENDIAN__
341 # define WORDS_BIGENDIAN 1
344 # ifndef WORDS_BIGENDIAN
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
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>
479 #ifdef HAVE_WINSOCK2_H
480 #define FD_SET_T (u_int)
494 char *target,
size_t targsize);
499 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
501 return ((((srcsize + 2) / 3) * 4) + 1);
505 int ldns_b64_pton(
char const *src, uint8_t *target,
size_t targsize);
510 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
512 return (((((srcsize + 3) / 4) * 3)) + 1);
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);
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);
547 #ifndef HAVE_INET_PTON
548 int inet_pton(
int af,
const char* src,
void* dst);
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