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_SECP384R1 1 49 #define HAVE_DECL_NID_X9_62_PRIME256V1 1 52 #define HAVE_DLFCN_H 1 55 #define HAVE_ENDPROTOENT 1 58 #define HAVE_ENDSERVENT 1 61 #define HAVE_EVP_SHA256 1 70 #define HAVE_GETADDRINFO 1 73 #define HAVE_GETOPT_H 1 76 #define HAVE_GMTIME_R 1 79 #define HAVE_HMAC_CTX_INIT 1 82 #define HAVE_INET_ATON 1 85 #define HAVE_INET_NTOP 1 88 #define HAVE_INET_PTON 1 91 #define HAVE_INTTYPES_H 1 97 #define HAVE_ISASCII 1 100 #define HAVE_ISBLANK 1 106 #define HAVE_LOCALTIME_R 1 110 #define HAVE_MALLOC 1 113 #define HAVE_MEMMOVE 1 116 #define HAVE_MEMORY_H 1 119 #define HAVE_MEMSET 1 122 #define HAVE_NETDB_H 1 131 #define HAVE_NETINET_IN_H 1 155 #define HAVE_OPENSSL_ERR_H 1 158 #define HAVE_OPENSSL_RAND_H 1 161 #define HAVE_OPENSSL_SSL_H 1 167 #define HAVE_PYTHON "2.7" 170 #define HAVE_RANDOM 1 174 #define HAVE_REALLOC 1 180 #define HAVE_SNPRINTF 1 186 #define HAVE_STDARG_H 1 189 #define HAVE_STDBOOL_H 1 192 #define HAVE_STDINT_H 1 195 #define HAVE_STDLIB_H 1 198 #define HAVE_STRINGS_H 1 201 #define HAVE_STRING_H 1 207 #define HAVE_STRTOUL 1 213 #define HAVE_SYS_MOUNT_H 1 216 #define HAVE_SYS_PARAM_H 1 219 #define HAVE_SYS_SOCKET_H 1 222 #define HAVE_SYS_STAT_H 1 225 #define HAVE_SYS_TYPES_H 1 228 #define HAVE_TIMEGM 1 231 #define HAVE_TIME_H 1 234 #define HAVE_UNISTD_H 1 246 #define HAVE_WORKING_FORK 1 249 #define HAVE_WORKING_VFORK 1 264 #define LDNS_TRUST_ANCHOR_FILE "/etc/unbound/root.key" 268 #define LT_OBJDIR ".libs/" 271 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl" 274 #define PACKAGE_NAME "ldns" 277 #define PACKAGE_STRING "ldns 1.6.17" 280 #define PACKAGE_TARNAME "libdns" 283 #define PACKAGE_URL "" 286 #define PACKAGE_VERSION "1.6.17" 304 #define SIZEOF_TIME_T 8 307 #define STDC_HEADERS 1 313 #define SYSCONFDIR sysconfdir 329 # define _ALL_SOURCE 1 333 # define _GNU_SOURCE 1 336 #ifndef _POSIX_PTHREAD_SEMANTICS 337 # define _POSIX_PTHREAD_SEMANTICS 1 340 #ifndef _TANDEM_SOURCE 341 # define _TANDEM_SOURCE 1 344 #ifndef __EXTENSIONS__ 345 # define __EXTENSIONS__ 1 353 #define WINVER 0x0502 357 #if defined AC_APPLE_UNIVERSAL_BUILD 358 # if defined __BIG_ENDIAN__ 359 # define WORDS_BIGENDIAN 1 362 # ifndef WORDS_BIGENDIAN 449 #ifndef LITTLE_ENDIAN 450 #define LITTLE_ENDIAN 1234 454 #define BIG_ENDIAN 4321 458 #ifdef WORDS_BIGENDIAN 459 #define BYTE_ORDER BIG_ENDIAN 461 #define BYTE_ORDER LITTLE_ENDIAN 474 #ifdef HAVE_SYS_SOCKET_H 475 #include <sys/socket.h> 478 #ifdef HAVE_NETINET_IN_H 479 #include <netinet/in.h> 482 #ifdef HAVE_ARPA_INET_H 483 #include <arpa/inet.h> 486 #ifdef HAVE_WINSOCK2_H 487 #include <winsock2.h> 490 #ifdef HAVE_WS2TCPIP_H 491 #include <ws2tcpip.h> 496 #ifdef HAVE_WINSOCK2_H 497 #define FD_SET_T (u_int) 510 char *target,
size_t targsize);
515 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
517 return ((((srcsize + 2) / 3) * 4) + 1);
519 int ldns_b64_pton(
char const *src, uint8_t *target,
size_t targsize);
524 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
526 return (((((srcsize + 3) / 4) * 3)) + 1);
537 #define sleep(x) Sleep((x)*1000) 541 #define srandom(x) srand(x) 542 #define random(x) rand(x) 547 time_t timegm (
struct tm *tm);
549 #ifndef HAVE_GMTIME_R 550 struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
552 #ifndef HAVE_LOCALTIME_R 553 struct tm *localtime_r(
const time_t *timep,
struct tm *result);
561 #ifndef HAVE_SNPRINTF 563 int snprintf (
char *str,
size_t count,
const char *fmt, ...);
564 int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
566 #ifndef HAVE_INET_PTON 567 int inet_pton(
int af,
const char* src,
void* dst);
569 #ifndef HAVE_INET_NTOP 570 const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
572 #ifndef HAVE_INET_ATON 573 int inet_aton(
const char *cp,
struct in_addr *addr);
576 void *memmove(
void *dest,
const void *src,
size_t n);
579 size_t strlcpy(
char *dst,
const char *src,
size_t siz);
584 #ifndef HAVE_GETADDRINFO 585 #include "compat/fake-rfc2553.h" 588 #define strtoul (unsigned long)strtol size_t strlcpy(char *dst, const char *src, size_t siz)
int ldns_b64_ntop(uint8_t const *src, size_t srclength, char *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.
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize)