8 #define HAVE_ARPA_INET_H 1
11 #define HAVE_ASCTIME_R 1
14 #define HAVE_ATTR_FORMAT 1
17 #define HAVE_ATTR_UNUSED 1
38 #define HAVE_CONF_MODULES_UNLOAD 1
44 #define HAVE_CRYPTO_MEMCMP 1
47 #define HAVE_CTIME_R 1
50 #define HAVE_DANE_CA_FILE 0
53 #define HAVE_DANE_CA_PATH 0
57 #define HAVE_DECL_EVP_PKEY_BASE_ID 1
61 #define HAVE_DECL_INET_NTOP 1
65 #define HAVE_DECL_INET_PTON 1
69 #define HAVE_DECL_NID_ED25519 1
73 #define HAVE_DECL_NID_ED448 1
77 #define HAVE_DECL_NID_SECP384R1 1
81 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
84 #define HAVE_DLFCN_H 1
87 #define HAVE_DSA_GET0_KEY 1
90 #define HAVE_DSA_GET0_PQG 1
93 #define HAVE_DSA_SIG_GET0 1
96 #define HAVE_DSA_SIG_SET0 1
99 #define HAVE_ECDSA_SIG_GET0 1
102 #define HAVE_ENDPROTOENT 1
105 #define HAVE_ENDSERVENT 1
111 #define HAVE_ENGINE_FREE 1
126 #define HAVE_EVP_MD_CTX_NEW 1
129 #define HAVE_EVP_PKEY_BASE_ID 1
135 #define HAVE_EVP_PKEY_KEYGEN 1
138 #define HAVE_EVP_SHA256 1
141 #define HAVE_EVP_SHA384 1
144 #define HAVE_EVP_SHA512 1
153 #define HAVE_FORK_AVAILABLE 1
156 #define HAVE_GETADDRINFO 1
159 #define HAVE_GETOPT_H 1
162 #define HAVE_GMTIME_R 1
165 #define HAVE_INET_ATON 1
168 #define HAVE_INET_NTOP 1
171 #define HAVE_INET_PTON 1
174 #define HAVE_INTTYPES_H 1
180 #define HAVE_ISASCII 1
183 #define HAVE_ISBLANK 1
186 #define HAVE_LIBPCAP 1
192 #define HAVE_LOCALTIME_R 1
195 #define HAVE_MEMMOVE 1
198 #define HAVE_MEMSET 1
204 #define HAVE_NETDB_H 1
207 #define HAVE_NETINET_IF_ETHER_H 1
210 #define HAVE_NETINET_IGMP_H 1
213 #define HAVE_NETINET_IN_H 1
216 #define HAVE_NETINET_IN_SYSTM_H 1
219 #define HAVE_NETINET_IP6_H 1
225 #define HAVE_NETINET_IP_H 1
228 #define HAVE_NETINET_UDP_H 1
231 #define HAVE_NET_ETHERNET_H 1
234 #define HAVE_NET_IF_H 1
237 #define HAVE_OPENSSL_CONF_H 1
240 #define HAVE_OPENSSL_ENGINE_H 1
243 #define HAVE_OPENSSL_ERR_H 1
246 #define HAVE_OPENSSL_EVP_H 1
249 #define HAVE_OPENSSL_INIT_CRYPTO 1
255 #define HAVE_OPENSSL_RAND_H 1
258 #define HAVE_OPENSSL_SSL_H 1
261 #define HAVE_PCAP_H 1
270 #define HAVE_RANDOM 1
276 #define HAVE_SNPRINTF 1
282 #define HAVE_STDARG_H 1
285 #define HAVE_STDBOOL_H 1
288 #define HAVE_STDINT_H 1
291 #define HAVE_STDIO_H 1
294 #define HAVE_STDLIB_H 1
297 #define HAVE_STRINGS_H 1
300 #define HAVE_STRING_H 1
303 #define HAVE_STRLCPY 1
306 #define HAVE_STRTOUL 1
312 #define HAVE_SYMLINK 1
315 #define HAVE_SYS_MOUNT_H 1
318 #define HAVE_SYS_PARAM_H 1
321 #define HAVE_SYS_SOCKET_H 1
324 #define HAVE_SYS_STAT_H 1
327 #define HAVE_SYS_TYPES_H 1
333 #define HAVE_TIMEGM 1
336 #define HAVE_TIME_H 1
339 #define HAVE_UNISTD_H 1
348 #define HAVE_WCHAR_H 1
354 #define HAVE_WORKING_FORK 1
357 #define HAVE_WORKING_VFORK 1
372 #define LT_OBJDIR ".libs/"
375 #define PACKAGE_BUGREPORT "dns-team@nlnetlabs.nl"
378 #define PACKAGE_NAME "ldns"
381 #define PACKAGE_STRING "ldns 1.9.2"
384 #define PACKAGE_TARNAME "libdns"
387 #define PACKAGE_URL ""
390 #define PACKAGE_VERSION "1.9.2"
393 #define RRTYPE_AMTRELAY
414 #define RRTYPE_OPENPGPKEY
417 #define RRTYPE_RESINFO
423 #define RRTYPE_SVCB_HTTPS
429 #define SIZEOF_TIME_T 8
434 #define STDC_HEADERS 1
440 #define SYSCONFDIR sysconfdir
446 #define USE_DANE_TA_USAGE 1
449 #define USE_DANE_VERIFY 1
458 #define USE_ED25519 1
471 # define _ALL_SOURCE 1
474 #ifndef _DARWIN_C_SOURCE
475 # define _DARWIN_C_SOURCE 1
478 #ifndef __EXTENSIONS__
479 # define __EXTENSIONS__ 1
483 # define _GNU_SOURCE 1
487 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
488 # define _HPUX_ALT_XOPEN_SOCKET_API 1
498 #ifndef _NETBSD_SOURCE
499 # define _NETBSD_SOURCE 1
503 #ifndef _OPENBSD_SOURCE
504 # define _OPENBSD_SOURCE 1
507 #ifndef _POSIX_SOURCE
511 #ifndef _POSIX_1_SOURCE
515 #ifndef _POSIX_PTHREAD_SEMANTICS
516 # define _POSIX_PTHREAD_SEMANTICS 1
519 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
520 # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
523 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
524 # define __STDC_WANT_IEC_60559_BFP_EXT__ 1
527 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
528 # define __STDC_WANT_IEC_60559_DFP_EXT__ 1
531 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
532 # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
535 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
536 # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
539 #ifndef __STDC_WANT_LIB_EXT2__
540 # define __STDC_WANT_LIB_EXT2__ 1
543 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
544 # define __STDC_WANT_MATH_SPEC_FUNCS__ 1
547 #ifndef _TANDEM_SOURCE
548 # define _TANDEM_SOURCE 1
552 #ifndef _XOPEN_SOURCE
561 #define WINVER 0x0502
565 #if defined AC_APPLE_UNIVERSAL_BUILD
566 # if defined __BIG_ENDIAN__
567 # define WORDS_BIGENDIAN 1
570 # ifndef WORDS_BIGENDIAN
576 #define _NETBSD_SOURCE 1
644 #ifndef LITTLE_ENDIAN
645 #define LITTLE_ENDIAN 1234
649 #define BIG_ENDIAN 4321
653 #ifdef WORDS_BIGENDIAN
654 #define BYTE_ORDER BIG_ENDIAN
656 #define BYTE_ORDER LITTLE_ENDIAN
669 #ifdef HAVE_SYS_SOCKET_H
670 #include <sys/socket.h>
673 #ifdef HAVE_NETINET_IN_H
674 #include <netinet/in.h>
677 #ifdef HAVE_ARPA_INET_H
678 #include <arpa/inet.h>
681 #ifdef HAVE_WINSOCK2_H
682 #include <winsock2.h>
685 #ifdef HAVE_WS2TCPIP_H
686 #include <ws2tcpip.h>
691 #ifdef HAVE_WINSOCK2_H
692 #define FD_SET_T (u_int)
705 char *target,
size_t targsize);
710 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
712 return ((((srcsize + 2) / 3) * 4) + 1);
719 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
721 return (((((srcsize + 3) / 4) * 3)) + 1);
732 #define sleep(x) Sleep((x)*1000)
736 #define srandom(x) srand(x)
737 #define random(x) rand(x)
742 time_t timegm (
struct tm *tm);
744 #ifndef HAVE_GMTIME_R
745 struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
747 #ifndef HAVE_ASCTIME_R
748 char *asctime_r(
const struct tm *tm,
char *buf);
750 #ifndef HAVE_LOCALTIME_R
751 struct tm *localtime_r(
const time_t *timep,
struct tm *result);
759 #ifndef HAVE_SNPRINTF
761 int snprintf (
char *str,
size_t count,
const char *fmt, ...);
762 int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
764 #if !defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
765 int inet_pton(
int af,
const char* src,
void* dst);
767 #if !defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
768 const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
770 #ifndef HAVE_INET_ATON
771 int inet_aton(
const char *cp,
struct in_addr *addr);
774 void *memmove(
void *dest,
const void *src,
size_t n);
777 size_t strlcpy(
char *dst,
const char *src,
size_t siz);
781 #define SOCK_INVALID ((INT_PTR)INVALID_SOCKET)
782 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
784 #define SOCK_INVALID -1
785 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s >= -1 ? _s : -1); _s = -1;} } while(0)
791 #ifndef HAVE_GETADDRINFO
792 #include "compat/fake-rfc2553.h"
795 #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.