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
96 #define HAVE_EVP_PKEY_BASE_ID 1
99 #define HAVE_EVP_PKEY_KEYGEN 1
102 #define HAVE_EVP_SHA256 1
105 #define HAVE_EVP_SHA384 1
108 #define HAVE_EVP_SHA512 1
117 #define HAVE_GETADDRINFO 1
120 #define HAVE_GETOPT_H 1
123 #define HAVE_GMTIME_R 1
126 #define HAVE_HMAC_UPDATE 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_MEMORY_H 1
169 #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_STDLIB_H 1
257 #define HAVE_STRINGS_H 1
260 #define HAVE_STRING_H 1
266 #define HAVE_STRTOUL 1
272 #define HAVE_SYS_MOUNT_H 1
275 #define HAVE_SYS_PARAM_H 1
278 #define HAVE_SYS_SOCKET_H 1
281 #define HAVE_SYS_STAT_H 1
284 #define HAVE_SYS_TYPES_H 1
287 #define HAVE_TIMEGM 1
290 #define HAVE_TIME_H 1
293 #define HAVE_UNISTD_H 1
305 #define HAVE_WORKING_FORK 1
308 #define HAVE_WORKING_VFORK 1
323 #define LT_OBJDIR ".libs/"
326 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
329 #define PACKAGE_NAME "ldns"
332 #define PACKAGE_STRING "ldns 1.7.1"
335 #define PACKAGE_TARNAME "libdns"
338 #define PACKAGE_URL ""
341 #define PACKAGE_VERSION "1.7.1"
356 #define RRTYPE_OPENPGPKEY
365 #define SIZEOF_TIME_T 8
368 #define STDC_HEADERS 1
374 #define SYSCONFDIR sysconfdir
380 #define USE_DANE_TA_USAGE 1
383 #define USE_DANE_VERIFY 1
392 #define USE_ED25519 1
405 # define _ALL_SOURCE 1
409 # define _GNU_SOURCE 1
412 #ifndef _POSIX_PTHREAD_SEMANTICS
413 # define _POSIX_PTHREAD_SEMANTICS 1
416 #ifndef _TANDEM_SOURCE
417 # define _TANDEM_SOURCE 1
420 #ifndef __EXTENSIONS__
421 # define __EXTENSIONS__ 1
429 #define WINVER 0x0502
433 #if defined AC_APPLE_UNIVERSAL_BUILD
434 # if defined __BIG_ENDIAN__
435 # define WORDS_BIGENDIAN 1
438 # ifndef WORDS_BIGENDIAN
528 #ifndef LITTLE_ENDIAN
529 #define LITTLE_ENDIAN 1234
533 #define BIG_ENDIAN 4321
537 #ifdef WORDS_BIGENDIAN
538 #define BYTE_ORDER BIG_ENDIAN
540 #define BYTE_ORDER LITTLE_ENDIAN
553 #ifdef HAVE_SYS_SOCKET_H
554 #include <sys/socket.h>
557 #ifdef HAVE_NETINET_IN_H
558 #include <netinet/in.h>
561 #ifdef HAVE_ARPA_INET_H
562 #include <arpa/inet.h>
565 #ifdef HAVE_WINSOCK2_H
566 #include <winsock2.h>
569 #ifdef HAVE_WS2TCPIP_H
570 #include <ws2tcpip.h>
575 #ifdef HAVE_WINSOCK2_H
576 #define FD_SET_T (u_int)
589 char *target,
size_t targsize);
594 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
596 return ((((srcsize + 2) / 3) * 4) + 1);
603 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
605 return (((((srcsize + 3) / 4) * 3)) + 1);
616 #define sleep(x) Sleep((x)*1000)
620 #define srandom(x) srand(x)
621 #define random(x) rand(x)
626 time_t timegm (
struct tm *tm);
628 #ifndef HAVE_GMTIME_R
629 struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
631 #ifndef HAVE_LOCALTIME_R
632 struct tm *localtime_r(
const time_t *timep,
struct tm *result);
640 #ifndef HAVE_SNPRINTF
642 int snprintf (
char *str,
size_t count,
const char *fmt, ...);
643 int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
645 #ifndef HAVE_INET_PTON
646 int inet_pton(
int af,
const char* src,
void* dst);
648 #ifndef HAVE_INET_NTOP
649 const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
651 #ifndef HAVE_INET_ATON
652 int inet_aton(
const char *cp,
struct in_addr *addr);
655 void *memmove(
void *dest,
const void *src,
size_t n);
658 size_t strlcpy(
char *dst,
const char *src,
size_t siz);
662 #define SOCK_INVALID INVALID_SOCKET
663 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
665 #define SOCK_INVALID -1
666 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
672 #ifndef HAVE_GETADDRINFO
673 #include "compat/fake-rfc2553.h"
676 #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)