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 1 41 #define HAVE_DANE_CA_PATH 1 45 #define HAVE_DECL_NID_SECP384R1 1 57 #define HAVE_DECL_NID_X9_62_PRIME256V1 1 60 #define HAVE_DLFCN_H 1 63 #define HAVE_DSA_GET0_KEY 1 66 #define HAVE_DSA_GET0_PQG 1 69 #define HAVE_DSA_SIG_GET0 1 72 #define HAVE_DSA_SIG_SET0 1 75 #define HAVE_ECDSA_SIG_GET0 1 78 #define HAVE_ENDPROTOENT 1 81 #define HAVE_ENDSERVENT 1 90 #define HAVE_EVP_MD_CTX_NEW 1 93 #define HAVE_EVP_PKEY_BASE_ID 1 96 #define HAVE_EVP_PKEY_KEYGEN 1 99 #define HAVE_EVP_SHA256 1 102 #define HAVE_EVP_SHA384 1 105 #define HAVE_EVP_SHA512 1 114 #define HAVE_GETADDRINFO 1 117 #define HAVE_GETOPT_H 1 120 #define HAVE_GMTIME_R 1 123 #define HAVE_HMAC_UPDATE 1 126 #define HAVE_INET_ATON 1 129 #define HAVE_INET_NTOP 1 132 #define HAVE_INET_PTON 1 135 #define HAVE_INTTYPES_H 1 141 #define HAVE_ISASCII 1 144 #define HAVE_ISBLANK 1 153 #define HAVE_LOCALTIME_R 1 157 #define HAVE_MALLOC 1 160 #define HAVE_MEMMOVE 1 163 #define HAVE_MEMORY_H 1 166 #define HAVE_MEMSET 1 169 #define HAVE_NETDB_H 1 178 #define HAVE_NETINET_IN_H 1 202 #define HAVE_OPENSSL_ERR_H 1 205 #define HAVE_OPENSSL_RAND_H 1 208 #define HAVE_OPENSSL_SSL_H 1 217 #define HAVE_PYTHON "2.7" 220 #define HAVE_RANDOM 1 224 #define HAVE_REALLOC 1 230 #define HAVE_SNPRINTF 1 236 #define HAVE_STDARG_H 1 239 #define HAVE_STDBOOL_H 1 242 #define HAVE_STDINT_H 1 245 #define HAVE_STDLIB_H 1 248 #define HAVE_STRINGS_H 1 251 #define HAVE_STRING_H 1 257 #define HAVE_STRTOUL 1 263 #define HAVE_SYS_MOUNT_H 1 266 #define HAVE_SYS_PARAM_H 1 269 #define HAVE_SYS_SOCKET_H 1 272 #define HAVE_SYS_STAT_H 1 275 #define HAVE_SYS_TYPES_H 1 278 #define HAVE_TIMEGM 1 281 #define HAVE_TIME_H 1 284 #define HAVE_UNISTD_H 1 296 #define HAVE_WORKING_FORK 1 299 #define HAVE_WORKING_VFORK 1 308 #define LDNS_DANE_CA_FILE "/etc/pki/tls/certs/ca-bundle.trust.crt" 311 #define LDNS_DANE_CA_PATH "/etc/pki/tls/certs/" 314 #define LT_OBJDIR ".libs/" 317 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl" 320 #define PACKAGE_NAME "ldns" 323 #define PACKAGE_STRING "ldns 1.7.0" 326 #define PACKAGE_TARNAME "libdns" 329 #define PACKAGE_URL "" 332 #define PACKAGE_VERSION "1.7.0" 341 #define RRTYPE_OPENPGPKEY 350 #define SIZEOF_TIME_T 8 353 #define STDC_HEADERS 1 359 #define SYSCONFDIR sysconfdir 365 #define USE_DANE_TA_USAGE 1 368 #define USE_DANE_VERIFY 1 390 # define _ALL_SOURCE 1 394 # define _GNU_SOURCE 1 397 #ifndef _POSIX_PTHREAD_SEMANTICS 398 # define _POSIX_PTHREAD_SEMANTICS 1 401 #ifndef _TANDEM_SOURCE 402 # define _TANDEM_SOURCE 1 405 #ifndef __EXTENSIONS__ 406 # define __EXTENSIONS__ 1 414 #define WINVER 0x0502 418 #if defined AC_APPLE_UNIVERSAL_BUILD 419 # if defined __BIG_ENDIAN__ 420 # define WORDS_BIGENDIAN 1 423 # ifndef WORDS_BIGENDIAN 424 # define WORDS_BIGENDIAN 1 513 #ifndef LITTLE_ENDIAN 514 #define LITTLE_ENDIAN 1234 518 #define BIG_ENDIAN 4321 522 #ifdef WORDS_BIGENDIAN 523 #define BYTE_ORDER BIG_ENDIAN 525 #define BYTE_ORDER LITTLE_ENDIAN 538 #ifdef HAVE_SYS_SOCKET_H 539 #include <sys/socket.h> 542 #ifdef HAVE_NETINET_IN_H 543 #include <netinet/in.h> 546 #ifdef HAVE_ARPA_INET_H 547 #include <arpa/inet.h> 550 #ifdef HAVE_WINSOCK2_H 551 #include <winsock2.h> 554 #ifdef HAVE_WS2TCPIP_H 555 #include <ws2tcpip.h> 560 #ifdef HAVE_WINSOCK2_H 561 #define FD_SET_T (u_int) 574 char *target,
size_t targsize);
579 static inline size_t ldns_b64_ntop_calculate_size(
size_t srcsize)
581 return ((((srcsize + 2) / 3) * 4) + 1);
583 int ldns_b64_pton(
char const *src, uint8_t *target,
size_t targsize);
588 static inline size_t ldns_b64_pton_calculate_size(
size_t srcsize)
590 return (((((srcsize + 3) / 4) * 3)) + 1);
601 #define sleep(x) Sleep((x)*1000) 605 #define srandom(x) srand(x) 606 #define random(x) rand(x) 611 time_t timegm (
struct tm *tm);
613 #ifndef HAVE_GMTIME_R 614 struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
616 #ifndef HAVE_LOCALTIME_R 617 struct tm *localtime_r(
const time_t *timep,
struct tm *result);
625 #ifndef HAVE_SNPRINTF 627 int snprintf (
char *str,
size_t count,
const char *fmt, ...);
628 int vsnprintf (
char *str,
size_t count,
const char *fmt, va_list arg);
630 #ifndef HAVE_INET_PTON 631 int inet_pton(
int af,
const char* src,
void* dst);
633 #ifndef HAVE_INET_NTOP 634 const char *inet_ntop(
int af,
const void *src,
char *dst,
size_t size);
636 #ifndef HAVE_INET_ATON 637 int inet_aton(
const char *cp,
struct in_addr *addr);
640 void *memmove(
void *dest,
const void *src,
size_t n);
643 size_t strlcpy(
char *dst,
const char *src,
size_t siz);
647 #define SOCK_INVALID INVALID_SOCKET 648 #define close_socket(_s) do { if (_s > SOCK_INVALID) {closesocket(_s); _s = SOCK_INVALID;} } while(0) 650 #define SOCK_INVALID -1 651 #define close_socket(_s) do { if (_s > SOCK_INVALID) {close(_s); _s = SOCK_INVALID;} } while(0) 657 #ifndef HAVE_GETADDRINFO 658 #include "compat/fake-rfc2553.h" 661 #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)