8 #define HAVE_ARPA_INET_H 1
11 #define HAVE_ATTR_FORMAT 1
14 #define HAVE_ATTR_UNUSED 1
35 #define HAVE_CONF_MODULES_UNLOAD 1
41 #define HAVE_CRYPTO_MEMCMP 1
44 #define HAVE_CTIME_R 1
47 #define HAVE_DANE_CA_FILE 0
50 #define HAVE_DANE_CA_PATH 0
54 #define HAVE_DECL_EVP_PKEY_BASE_ID 1
58 #define HAVE_DECL_NID_ED25519 1
62 #define HAVE_DECL_NID_ED448 1
66 #define HAVE_DECL_NID_SECP384R1 1
70 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
73 #define HAVE_DLFCN_H 1
76 #define HAVE_DSA_GET0_KEY 1
79 #define HAVE_DSA_GET0_PQG 1
82 #define HAVE_DSA_SIG_GET0 1
85 #define HAVE_DSA_SIG_SET0 1
88 #define HAVE_ECDSA_SIG_GET0 1
91 #define HAVE_ENDPROTOENT 1
94 #define HAVE_ENDSERVENT 1
100 #define HAVE_ENGINE_FREE 1
115 #define HAVE_EVP_MD_CTX_NEW 1
118 #define HAVE_EVP_PKEY_BASE_ID 1
124 #define HAVE_EVP_PKEY_KEYGEN 1
127 #define HAVE_EVP_SHA256 1
130 #define HAVE_EVP_SHA384 1
133 #define HAVE_EVP_SHA512 1
142 #define HAVE_FORK_AVAILABLE 1
145 #define HAVE_GETADDRINFO 1
148 #define HAVE_GETOPT_H 1
151 #define HAVE_GMTIME_R 1
154 #define HAVE_INET_ATON 1
157 #define HAVE_INET_NTOP 1
160 #define HAVE_INET_PTON 1
163 #define HAVE_INTTYPES_H 1
169 #define HAVE_ISASCII 1
172 #define HAVE_ISBLANK 1
175 #define HAVE_LIBPCAP 1
181 #define HAVE_LOCALTIME_R 1
184 #define HAVE_MEMMOVE 1
187 #define HAVE_MEMORY_H 1
190 #define HAVE_MEMSET 1
193 #define HAVE_NETDB_H 1
196 #define HAVE_NETINET_IF_ETHER_H 1
199 #define HAVE_NETINET_IGMP_H 1
202 #define HAVE_NETINET_IN_H 1
205 #define HAVE_NETINET_IN_SYSTM_H 1
208 #define HAVE_NETINET_IP6_H 1
214 #define HAVE_NETINET_IP_H 1
217 #define HAVE_NETINET_UDP_H 1
220 #define HAVE_NET_ETHERNET_H 1
223 #define HAVE_NET_IF_H 1
226 #define HAVE_OPENSSL_CONF_H 1
229 #define HAVE_OPENSSL_ENGINE_H 1
232 #define HAVE_OPENSSL_ERR_H 1
235 #define HAVE_OPENSSL_EVP_H 1
238 #define HAVE_OPENSSL_INIT_CRYPTO 1
244 #define HAVE_OPENSSL_RAND_H 1
247 #define HAVE_OPENSSL_SSL_H 1
250 #define HAVE_PCAP_H 1
256 #define HAVE_PYTHON "3.9"
259 #define HAVE_RANDOM 1
265 #define HAVE_SNPRINTF 1
271 #define HAVE_STDARG_H 1
274 #define HAVE_STDBOOL_H 1
277 #define HAVE_STDINT_H 1
280 #define HAVE_STDLIB_H 1
283 #define HAVE_STRINGS_H 1
286 #define HAVE_STRING_H 1
289 #define HAVE_STRLCPY 1
292 #define HAVE_STRTOUL 1
298 #define HAVE_SYS_MOUNT_H 1
301 #define HAVE_SYS_PARAM_H 1
304 #define HAVE_SYS_SOCKET_H 1
307 #define HAVE_SYS_STAT_H 1
310 #define HAVE_SYS_TYPES_H 1
316 #define HAVE_TIMEGM 1
319 #define HAVE_TIME_H 1
322 #define HAVE_UNISTD_H 1
334 #define HAVE_WORKING_FORK 1
337 #define HAVE_WORKING_VFORK 1
352 #define LT_OBJDIR ".libs/"
355 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
358 #define PACKAGE_NAME "ldns"
361 #define PACKAGE_STRING "ldns 1.8.1"
364 #define PACKAGE_TARNAME "libdns"
367 #define PACKAGE_URL ""
370 #define PACKAGE_VERSION "1.8.1"
385 #define RRTYPE_OPENPGPKEY
397 #define SIZEOF_TIME_T 4
400 #define STDC_HEADERS 1
406 #define SYSCONFDIR sysconfdir
412 #define USE_DANE_TA_USAGE 1
415 #define USE_DANE_VERIFY 1
424 #define USE_ED25519 1
437 # define _ALL_SOURCE 1
441 # define _GNU_SOURCE 1
444 #ifndef _POSIX_PTHREAD_SEMANTICS
445 # define _POSIX_PTHREAD_SEMANTICS 1
448 #ifndef _TANDEM_SOURCE
449 # define _TANDEM_SOURCE 1
452 #ifndef __EXTENSIONS__
453 # define __EXTENSIONS__ 1
461 #define WINVER 0x0502
465 #if defined AC_APPLE_UNIVERSAL_BUILD
466 # if defined __BIG_ENDIAN__
467 # define WORDS_BIGENDIAN 1
470 # ifndef WORDS_BIGENDIAN
554 #ifndef LITTLE_ENDIAN
555 #define LITTLE_ENDIAN 1234
559 #define BIG_ENDIAN 4321
563 #ifdef WORDS_BIGENDIAN
564 #define BYTE_ORDER BIG_ENDIAN
566 #define BYTE_ORDER LITTLE_ENDIAN
579 #ifdef HAVE_SYS_SOCKET_H
580 #include <sys/socket.h>
583 #ifdef HAVE_NETINET_IN_H
584 #include <netinet/in.h>
587 #ifdef HAVE_ARPA_INET_H
588 #include <arpa/inet.h>
591 #ifdef HAVE_WINSOCK2_H
592 #include <winsock2.h>
595 #ifdef HAVE_WS2TCPIP_H
596 #include <ws2tcpip.h>
601 #ifdef HAVE_WINSOCK2_H
602 #define FD_SET_T (u_int)
615 char *target,
size_t targsize);
620 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
622 return ((((srcsize + 2) / 3) * 4) + 1);
629 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
631 return (((((srcsize + 3) / 4) * 3)) + 1);
642 #define sleep(x) Sleep((x)*1000)
646 #define srandom(x) srand(x)
647 #define random(x) rand(x)
652 time_t timegm (
struct tm *tm);
654 #ifndef HAVE_GMTIME_R
655 struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
657 #ifndef HAVE_LOCALTIME_R
658 struct tm *localtime_r(
const time_t *timep,
struct tm *result);
666 #ifndef HAVE_SNPRINTF
668 int snprintf (
char *str,
size_t count,
const char *fmt, ...);
669 int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
671 #ifndef HAVE_INET_PTON
672 int inet_pton(
int af,
const char* src,
void* dst);
674 #ifndef HAVE_INET_NTOP
675 const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
677 #ifndef HAVE_INET_ATON
678 int inet_aton(
const char *cp,
struct in_addr *addr);
681 void *memmove(
void *dest,
const void *src,
size_t n);
684 size_t strlcpy(
char *dst,
const char *src,
size_t siz);
688 #define SOCK_INVALID INVALID_SOCKET
689 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
691 #define SOCK_INVALID -1
692 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
698 #ifndef HAVE_GETADDRINFO
699 #include "compat/fake-rfc2553.h"
702 #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.