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 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
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
192#define HAVE_LOCALTIME_R 1
195#define HAVE_MEMMOVE 1
204#define HAVE_NETDB_H 1
213#define HAVE_NETINET_IN_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
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
372#define LT_OBJDIR ".libs/"
375#define PACKAGE_BUGREPORT "dns-team@nlnetlabs.nl"
378#define PACKAGE_NAME "ldns"
381#define PACKAGE_STRING "ldns 1.8.4"
384#define PACKAGE_TARNAME "libdns"
387#define PACKAGE_URL ""
390#define PACKAGE_VERSION "1.8.4"
393#define RRTYPE_AMTRELAY
405#define RRTYPE_OPENPGPKEY
408#define RRTYPE_RESINFO
414#define RRTYPE_SVCB_HTTPS
420#define SIZEOF_TIME_T 8
425#define STDC_HEADERS 1
431#define SYSCONFDIR sysconfdir
462# define _ALL_SOURCE 1
465#ifndef _DARWIN_C_SOURCE
466# define _DARWIN_C_SOURCE 1
469#ifndef __EXTENSIONS__
470# define __EXTENSIONS__ 1
474# define _GNU_SOURCE 1
478#ifndef _HPUX_ALT_XOPEN_SOCKET_API
479# define _HPUX_ALT_XOPEN_SOCKET_API 1
489#ifndef _NETBSD_SOURCE
490# define _NETBSD_SOURCE 1
494#ifndef _OPENBSD_SOURCE
495# define _OPENBSD_SOURCE 1
502#ifndef _POSIX_1_SOURCE
506#ifndef _POSIX_PTHREAD_SEMANTICS
507# define _POSIX_PTHREAD_SEMANTICS 1
510#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
511# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
514#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
515# define __STDC_WANT_IEC_60559_BFP_EXT__ 1
518#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
519# define __STDC_WANT_IEC_60559_DFP_EXT__ 1
522#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
523# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
526#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
527# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
530#ifndef __STDC_WANT_LIB_EXT2__
531# define __STDC_WANT_LIB_EXT2__ 1
534#ifndef __STDC_WANT_MATH_SPEC_FUNCS__
535# define __STDC_WANT_MATH_SPEC_FUNCS__ 1
538#ifndef _TANDEM_SOURCE
539# define _TANDEM_SOURCE 1
556#if defined AC_APPLE_UNIVERSAL_BUILD
557# if defined __BIG_ENDIAN__
558# define WORDS_BIGENDIAN 1
561# ifndef WORDS_BIGENDIAN
567#define _NETBSD_SOURCE 1
636#define LITTLE_ENDIAN 1234
640#define BIG_ENDIAN 4321
644#ifdef WORDS_BIGENDIAN
645#define BYTE_ORDER BIG_ENDIAN
647#define BYTE_ORDER LITTLE_ENDIAN
660#ifdef HAVE_SYS_SOCKET_H
661#include <sys/socket.h>
664#ifdef HAVE_NETINET_IN_H
665#include <netinet/in.h>
668#ifdef HAVE_ARPA_INET_H
669#include <arpa/inet.h>
672#ifdef HAVE_WINSOCK2_H
676#ifdef HAVE_WS2TCPIP_H
682#ifdef HAVE_WINSOCK2_H
683#define FD_SET_T (u_int)
696 char *target,
size_t targsize);
701static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
703 return ((((srcsize + 2) / 3) * 4) + 1);
710static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
712 return (((((srcsize + 3) / 4) * 3)) + 1);
723#define sleep(x) Sleep((x)*1000)
727#define srandom(x) srand(x)
728#define random(x) rand(x)
733time_t timegm (
struct tm *tm);
736struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
738#ifndef HAVE_ASCTIME_R
739char *asctime_r(
const struct tm *tm,
char *buf);
741#ifndef HAVE_LOCALTIME_R
742struct tm *localtime_r(
const time_t *timep,
struct tm *result);
752int snprintf (
char *str,
size_t count,
const char *fmt, ...);
753int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
755#if !defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
756int inet_pton(
int af,
const char* src,
void* dst);
758#if !defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
759const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
761#ifndef HAVE_INET_ATON
762int inet_aton(
const char *cp,
struct in_addr *addr);
765void *memmove(
void *dest,
const void *src,
size_t n);
768size_t strlcpy(
char *dst,
const char *src,
size_t siz);
772#define SOCK_INVALID ((INT_PTR)INVALID_SOCKET)
773#define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
775#define SOCK_INVALID -1
776#define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
782#ifndef HAVE_GETADDRINFO
783#include "compat/fake-rfc2553.h"
786#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.