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
50#define HAVE_DANE_CA_FILE 1
53#define HAVE_DANE_CA_PATH 1
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
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
132#define HAVE_EVP_PKEY_GET_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
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
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
267#define HAVE_PYTHON "3.15"
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
339#define HAVE_UNISTD_H 1
348#define HAVE_WCHAR_H 1
354#define HAVE_WORKING_FORK 1
357#define HAVE_WORKING_VFORK 1
366#define LDNS_DANE_CA_FILE "/etc/pki/tls/certs/ca-bundle.trust.crt"
369#define LDNS_DANE_CA_PATH "/etc/pki/tls/certs/"
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.0"
384#define PACKAGE_TARNAME "libdns"
387#define PACKAGE_URL ""
390#define PACKAGE_VERSION "1.9.0"
393#define RRTYPE_AMTRELAY
414#define RRTYPE_OPENPGPKEY
417#define RRTYPE_RESINFO
423#define RRTYPE_SVCB_HTTPS
429#define SIZEOF_TIME_T 4
434#define STDC_HEADERS 1
440#define SYSCONFDIR sysconfdir
446#define USE_DANE_TA_USAGE 1
449#define USE_DANE_VERIFY 1
471# define _ALL_SOURCE 1
475# define _COSMO_SOURCE 1
478#ifndef _DARWIN_C_SOURCE
479# define _DARWIN_C_SOURCE 1
482#ifndef __EXTENSIONS__
483# define __EXTENSIONS__ 1
487# define _GNU_SOURCE 1
491#ifndef _HPUX_ALT_XOPEN_SOCKET_API
492# define _HPUX_ALT_XOPEN_SOCKET_API 1
502#ifndef _NETBSD_SOURCE
503# define _NETBSD_SOURCE 1
507#ifndef _OPENBSD_SOURCE
508# define _OPENBSD_SOURCE 1
515#ifndef _POSIX_1_SOURCE
519#ifndef _POSIX_PTHREAD_SEMANTICS
520# define _POSIX_PTHREAD_SEMANTICS 1
523#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
524# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
527#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
528# define __STDC_WANT_IEC_60559_BFP_EXT__ 1
531#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
532# define __STDC_WANT_IEC_60559_DFP_EXT__ 1
535#ifndef __STDC_WANT_IEC_60559_EXT__
536# define __STDC_WANT_IEC_60559_EXT__ 1
539#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
540# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
543#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
544# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
547#ifndef __STDC_WANT_LIB_EXT2__
548# define __STDC_WANT_LIB_EXT2__ 1
551#ifndef __STDC_WANT_MATH_SPEC_FUNCS__
552# define __STDC_WANT_MATH_SPEC_FUNCS__ 1
555#ifndef _TANDEM_SOURCE
556# define _TANDEM_SOURCE 1
573#if defined AC_APPLE_UNIVERSAL_BUILD
574# if defined __BIG_ENDIAN__
575# define WORDS_BIGENDIAN 1
578# ifndef WORDS_BIGENDIAN
584#define _NETBSD_SOURCE 1
653#define LITTLE_ENDIAN 1234
657#define BIG_ENDIAN 4321
661#ifdef WORDS_BIGENDIAN
662#define BYTE_ORDER BIG_ENDIAN
664#define BYTE_ORDER LITTLE_ENDIAN
677#ifdef HAVE_SYS_SOCKET_H
678#include <sys/socket.h>
681#ifdef HAVE_NETINET_IN_H
682#include <netinet/in.h>
685#ifdef HAVE_ARPA_INET_H
686#include <arpa/inet.h>
689#ifdef HAVE_WINSOCK2_H
693#ifdef HAVE_WS2TCPIP_H
699#ifdef HAVE_WINSOCK2_H
700#define FD_SET_T (u_int)
713 char *target,
size_t targsize);
718static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
720 return ((((srcsize + 2) / 3) * 4) + 1);
727static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
729 return (((((srcsize + 3) / 4) * 3)) + 1);
740#define sleep(x) Sleep((x)*1000)
744#define srandom(x) srand(x)
745#define random(x) rand(x)
750time_t timegm (
struct tm *tm);
753struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
755#ifndef HAVE_ASCTIME_R
756char *asctime_r(
const struct tm *tm,
char *buf);
758#ifndef HAVE_LOCALTIME_R
759struct tm *localtime_r(
const time_t *timep,
struct tm *result);
769int snprintf (
char *str,
size_t count,
const char *fmt, ...);
770int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
772#if !defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
773int inet_pton(
int af,
const char* src,
void* dst);
775#if !defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
776const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
778#ifndef HAVE_INET_ATON
779int inet_aton(
const char *cp,
struct in_addr *addr);
782void *memmove(
void *dest,
const void *src,
size_t n);
785size_t strlcpy(
char *dst,
const char *src,
size_t siz);
789#define SOCK_INVALID ((INT_PTR)INVALID_SOCKET)
790#define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
792#define SOCK_INVALID -1
793#define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s >= -1 ? _s : -1); _s = -1;} } while(0)
799#ifndef HAVE_GETADDRINFO
800#include "compat/fake-rfc2553.h"
803#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.