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 0
41 #define HAVE_DANE_CA_PATH 0
45 #define HAVE_DECL_NID_ED25519 1
49 #define HAVE_DECL_NID_ED448 1
53 #define HAVE_DECL_NID_SECP384R1 1
57 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
60 #define HAVE_DLFCN_H 1
63 #define HAVE_DSA_GET0_KEY 1
66 #define HAVE_DSA_GET0_PQG 1
69 #define HAVE_DSA_SIG_GET0 1
72 #define HAVE_DSA_SIG_SET0 1
75 #define HAVE_ECDSA_SIG_GET0 1
78 #define HAVE_ENDPROTOENT 1
81 #define HAVE_ENDSERVENT 1
93 #define HAVE_EVP_MD_CTX_NEW 1
99 #define HAVE_EVP_PKEY_GET_BASE_ID 1
102 #define HAVE_EVP_PKEY_KEYGEN 1
105 #define HAVE_EVP_SHA256 1
108 #define HAVE_EVP_SHA384 1
111 #define HAVE_EVP_SHA512 1
120 #define HAVE_GETADDRINFO 1
123 #define HAVE_GETOPT_H 1
126 #define HAVE_GMTIME_R 1
129 #define HAVE_INET_ATON 1
132 #define HAVE_INET_NTOP 1
135 #define HAVE_INET_PTON 1
138 #define HAVE_INTTYPES_H 1
144 #define HAVE_ISASCII 1
147 #define HAVE_ISBLANK 1
150 #define HAVE_LIBPCAP 1
156 #define HAVE_LOCALTIME_R 1
160 #define HAVE_MALLOC 1
163 #define HAVE_MEMMOVE 1
166 #define HAVE_MEMSET 1
172 #define HAVE_NETDB_H 1
175 #define HAVE_NETINET_IF_ETHER_H 1
178 #define HAVE_NETINET_IGMP_H 1
181 #define HAVE_NETINET_IN_H 1
184 #define HAVE_NETINET_IN_SYSTM_H 1
187 #define HAVE_NETINET_IP6_H 1
193 #define HAVE_NETINET_IP_H 1
196 #define HAVE_NETINET_UDP_H 1
199 #define HAVE_NET_ETHERNET_H 1
202 #define HAVE_NET_IF_H 1
205 #define HAVE_OPENSSL_ERR_H 1
208 #define HAVE_OPENSSL_INIT_CRYPTO 1
214 #define HAVE_OPENSSL_RAND_H 1
217 #define HAVE_OPENSSL_SSL_H 1
220 #define HAVE_PCAP_H 1
229 #define HAVE_RANDOM 1
233 #define HAVE_REALLOC 1
239 #define HAVE_SNPRINTF 1
245 #define HAVE_STDARG_H 1
248 #define HAVE_STDBOOL_H 1
251 #define HAVE_STDINT_H 1
254 #define HAVE_STDIO_H 1
257 #define HAVE_STDLIB_H 1
260 #define HAVE_STRINGS_H 1
263 #define HAVE_STRING_H 1
269 #define HAVE_STRTOUL 1
275 #define HAVE_SYS_MOUNT_H 1
278 #define HAVE_SYS_PARAM_H 1
281 #define HAVE_SYS_SOCKET_H 1
284 #define HAVE_SYS_STAT_H 1
287 #define HAVE_SYS_TYPES_H 1
290 #define HAVE_TIMEGM 1
293 #define HAVE_TIME_H 1
296 #define HAVE_UNISTD_H 1
305 #define HAVE_WCHAR_H 1
311 #define HAVE_WORKING_FORK 1
314 #define HAVE_WORKING_VFORK 1
329 #define LT_OBJDIR ".libs/"
332 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
335 #define PACKAGE_NAME "ldns"
338 #define PACKAGE_STRING "ldns 1.7.1"
341 #define PACKAGE_TARNAME "libdns"
344 #define PACKAGE_URL ""
347 #define PACKAGE_VERSION "1.7.1"
362 #define RRTYPE_OPENPGPKEY
371 #define SIZEOF_TIME_T 8
376 #define STDC_HEADERS 1
382 #define SYSCONFDIR sysconfdir
388 #define USE_DANE_TA_USAGE 1
391 #define USE_DANE_VERIFY 1
400 #define USE_ED25519 1
413 # define _ALL_SOURCE 1
416 #ifndef _DARWIN_C_SOURCE
417 # define _DARWIN_C_SOURCE 1
420 #ifndef __EXTENSIONS__
421 # define __EXTENSIONS__ 1
425 # define _GNU_SOURCE 1
429 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
430 # define _HPUX_ALT_XOPEN_SOCKET_API 1
440 #ifndef _NETBSD_SOURCE
441 # define _NETBSD_SOURCE 1
445 #ifndef _OPENBSD_SOURCE
446 # define _OPENBSD_SOURCE 1
449 #ifndef _POSIX_SOURCE
453 #ifndef _POSIX_1_SOURCE
457 #ifndef _POSIX_PTHREAD_SEMANTICS
458 # define _POSIX_PTHREAD_SEMANTICS 1
461 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
462 # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
465 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
466 # define __STDC_WANT_IEC_60559_BFP_EXT__ 1
469 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
470 # define __STDC_WANT_IEC_60559_DFP_EXT__ 1
473 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
474 # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
477 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
478 # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
481 #ifndef __STDC_WANT_LIB_EXT2__
482 # define __STDC_WANT_LIB_EXT2__ 1
485 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
486 # define __STDC_WANT_MATH_SPEC_FUNCS__ 1
489 #ifndef _TANDEM_SOURCE
490 # define _TANDEM_SOURCE 1
494 #ifndef _XOPEN_SOURCE
503 #define WINVER 0x0502
507 #if defined AC_APPLE_UNIVERSAL_BUILD
508 # if defined __BIG_ENDIAN__
509 # define WORDS_BIGENDIAN 1
512 # ifndef WORDS_BIGENDIAN
513 # define WORDS_BIGENDIAN 1
518 #define _NETBSD_SOURCE 1
592 #ifndef LITTLE_ENDIAN
593 #define LITTLE_ENDIAN 1234
597 #define BIG_ENDIAN 4321
601 #ifdef WORDS_BIGENDIAN
602 #define BYTE_ORDER BIG_ENDIAN
604 #define BYTE_ORDER LITTLE_ENDIAN
617 #ifdef HAVE_SYS_SOCKET_H
618 #include <sys/socket.h>
621 #ifdef HAVE_NETINET_IN_H
622 #include <netinet/in.h>
625 #ifdef HAVE_ARPA_INET_H
626 #include <arpa/inet.h>
629 #ifdef HAVE_WINSOCK2_H
630 #include <winsock2.h>
633 #ifdef HAVE_WS2TCPIP_H
634 #include <ws2tcpip.h>
639 #ifdef HAVE_WINSOCK2_H
640 #define FD_SET_T (u_int)
653 char *target,
size_t targsize);
658 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
660 return ((((srcsize + 2) / 3) * 4) + 1);
667 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
669 return (((((srcsize + 3) / 4) * 3)) + 1);
680 #define sleep(x) Sleep((x)*1000)
684 #define srandom(x) srand(x)
685 #define random(x) rand(x)
690 time_t timegm (
struct tm *tm);
692 #ifndef HAVE_GMTIME_R
693 struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
695 #ifndef HAVE_LOCALTIME_R
696 struct tm *localtime_r(
const time_t *timep,
struct tm *result);
704 #ifndef HAVE_SNPRINTF
706 int snprintf (
char *str,
size_t count,
const char *fmt, ...);
707 int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
709 #ifndef HAVE_INET_PTON
710 int inet_pton(
int af,
const char* src,
void* dst);
712 #ifndef HAVE_INET_NTOP
713 const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
715 #ifndef HAVE_INET_ATON
716 int inet_aton(
const char *cp,
struct in_addr *addr);
719 void *memmove(
void *dest,
const void *src,
size_t n);
722 size_t strlcpy(
char *dst,
const char *src,
size_t siz);
726 #define SOCK_INVALID INVALID_SOCKET
727 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
729 #define SOCK_INVALID -1
730 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
736 #ifndef HAVE_GETADDRINFO
737 #include "compat/fake-rfc2553.h"
740 #define strtoul (unsigned long)strtol
int ldns_b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize)
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize)
int ldns_dname_compare_v(const void *a, const void *b)
Given in dnssec_zone.c, also used in dnssec_sign.c:w.
size_t strlcpy(char *dst, const char *src, size_t siz)