/* configure vomit from linux */ #define HAVE_ARPA_INET_H 1 #define HAVE_ATTR_FORMAT 1 #define HAVE_ATTR_UNUSED 1 #define HAVE_BZERO 1 #define HAVE_CALLOC 1 #define HAVE_CTIME_R 1 #define HAVE_DANE_CA_FILE 0 #define HAVE_DANE_CA_PATH 0 #define HAVE_DECL_NID_SECP384R1 1 #define HAVE_DECL_NID_X9_62_PRIME256V1 1 #define HAVE_DLFCN_H 1 #define HAVE_ENGINE_LOAD_CRYPTODEV 1 #define HAVE_EVP_DSS1 1 #define HAVE_EVP_PKEY_BASE_ID 1 #define HAVE_EVP_PKEY_KEYGEN 1 #define HAVE_EVP_SHA256 1 #define HAVE_EVP_SHA384 1 #define HAVE_EVP_SHA512 1 #define HAVE_FCNTL 1 #define HAVE_GETADDRINFO 1 #define HAVE_GETOPT_H 1 #define HAVE_GMTIME_R 1 #define HAVE_HMAC_UPDATE 1 #define HAVE_INET_ATON 1 #define HAVE_INET_NTOP 1 #define HAVE_INET_PTON 1 #define HAVE_INTTYPES_H 1 #define HAVE_ISASCII 1 #define HAVE_ISBLANK 1 #define HAVE_LOCALTIME_R 1 #define HAVE_MALLOC 1 #define HAVE_MEMMOVE 1 #define HAVE_MEMORY_H 1 #define HAVE_MEMSET 1 #define HAVE_NETDB_H 1 #define HAVE_NETINET_IN_H 1 #define HAVE_OPENSSL_ERR_H 1 #define HAVE_OPENSSL_RAND_H 1 #define HAVE_OPENSSL_SSL_H 1 #define HAVE_POLL 1 #define HAVE_RANDOM 1 #define HAVE_REALLOC 1 #define HAVE_SLEEP 1 #define HAVE_SNPRINTF 1 #define HAVE_SSL /**/ #define HAVE_STDARG_H 1 #define HAVE_STDBOOL_H 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 #define HAVE_STRTOUL 1 #define HAVE_SYS_MOUNT_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_SOCKET_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_TIMEGM 1 #define HAVE_TIME_H 1 #define HAVE_UNISTD_H 1 #define HAVE__BOOL 1 #define LT_OBJDIR ".libs/" #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl" #define PACKAGE_NAME "ldns" #define PACKAGE_STRING "ldns" #define PACKAGE_TARNAME "libdns" #define PACKAGE_URL "" #define PACKAGE_VERSION "" #define RRTYPE_OPENPGPKEY /**/ #define SIZEOF_TIME_T 8 #define STDC_HEADERS 1 #define SYSCONFDIR sysconfdir #define USE_DANE 1 #define USE_DANE_VERIFY 1 #define USE_DSA 1 #define USE_ECDSA 1 #define USE_GOST 1 #define USE_SHA2 1 #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifndef _POSIX_PTHREAD_SEMANTICS # define _POSIX_PTHREAD_SEMANTICS 1 #endif #ifndef _TANDEM_SOURCE # define _TANDEM_SOURCE 1 #endif #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif #define WINVER 0x0502 #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # endif #endif #ifndef __cplusplus #endif #include #include #include #include #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif #ifndef BYTE_ORDER #ifdef WORDS_BIGENDIAN #define BYTE_ORDER BIG_ENDIAN #else #define BYTE_ORDER LITTLE_ENDIAN #endif /* WORDS_BIGENDIAN */ #endif /* BYTE_ORDER */ #if STDC_HEADERS #include #include #endif #ifdef HAVE_STDINT_H #include #endif #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_ARPA_INET_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #ifdef HAVE_WINSOCK2_H #define FD_SET_T (u_int) #else #define FD_SET_T #endif #ifdef __cplusplus extern "C" { #endif int ldns_b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize); static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize) { return ((((srcsize + 2) / 3) * 4) + 1); } int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize); static inline size_t ldns_b64_pton_calculate_size(size_t srcsize) { return (((((srcsize + 3) / 4) * 3)) + 1); } int ldns_dname_compare_v(const void *a, const void *b); #ifndef HAVE_SLEEP #define sleep(x) Sleep((x)*1000) #endif #ifndef HAVE_RANDOM #define srandom(x) srand(x) #define random(x) rand(x) #endif #ifndef HAVE_TIMEGM #include time_t timegm (struct tm *tm); #endif /* !TIMEGM */ #ifndef HAVE_GMTIME_R struct tm *gmtime_r(const time_t *timep, struct tm *result); #endif #ifndef HAVE_LOCALTIME_R struct tm *localtime_r(const time_t *timep, struct tm *result); #endif #ifndef HAVE_ISBLANK int isblank(int c); #endif /* !HAVE_ISBLANK */ #ifndef HAVE_ISASCII int isascii(int c); #endif /* !HAVE_ISASCII */ #ifndef HAVE_SNPRINTF #include int snprintf (char *str, size_t count, const char *fmt, ...); int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); #endif /* HAVE_SNPRINTF */ #ifndef HAVE_INET_PTON int inet_pton(int af, const char* src, void* dst); #endif /* HAVE_INET_PTON */ #ifndef HAVE_INET_NTOP const char *inet_ntop(int af, const void *src, char *dst, size_t size); #endif #ifndef HAVE_INET_ATON int inet_aton(const char *cp, struct in_addr *addr); #endif #ifndef HAVE_MEMMOVE void *memmove(void *dest, const void *src, size_t n); #endif #ifndef HAVE_STRLCPY size_t strlcpy(char *dst, const char *src, size_t siz); #endif #ifdef USE_WINSOCK #define SOCK_INVALID INVALID_SOCKET #define close_socket(_s) do { if (_s > SOCK_INVALID) {closesocket(_s); _s = SOCK_INVALID;} } while(0) #else #define SOCK_INVALID -1 #define close_socket(_s) do { if (_s > SOCK_INVALID) {close(_s); _s = SOCK_INVALID;} } while(0) #endif #ifdef __cplusplus } #endif #ifndef HAVE_GETADDRINFO #include "compat/fake-rfc2553.h" #endif #ifndef HAVE_STRTOUL #define strtoul (unsigned long)strtol #endif