forked from Mirrors/freeswitch
440 lines
10 KiB
C
440 lines
10 KiB
C
/* ldns/config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
/* Define if building universal (internal helper macro) */
|
|
#undef AC_APPLE_UNIVERSAL_BUILD
|
|
|
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
|
#undef HAVE_ARPA_INET_H
|
|
|
|
/* Whether the C compiler accepts the "format" attribute */
|
|
#undef HAVE_ATTR_FORMAT
|
|
|
|
/* Whether the C compiler accepts the "unused" attribute */
|
|
#undef HAVE_ATTR_UNUSED
|
|
|
|
/* Define to 1 if you have the `b32_ntop' function. */
|
|
#undef HAVE_B32_NTOP
|
|
|
|
/* Define to 1 if you have the `b32_pton' function. */
|
|
#undef HAVE_B32_PTON
|
|
|
|
/* Define to 1 if you have the `b64_ntop' function. */
|
|
#undef HAVE_B64_NTOP
|
|
|
|
/* Define to 1 if you have the `b64_pton' function. */
|
|
#undef HAVE_B64_PTON
|
|
|
|
/* Define to 1 if you have the `ctime_r' function. */
|
|
#undef HAVE_CTIME_R
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#undef HAVE_DLFCN_H
|
|
|
|
/* Define to 1 if you have the `endprotoent' function. */
|
|
#undef HAVE_ENDPROTOENT
|
|
|
|
/* Define to 1 if you have the `endservent' function. */
|
|
#undef HAVE_ENDSERVENT
|
|
|
|
/* Define to 1 if you have the `EVP_sha256' function. */
|
|
#undef HAVE_EVP_SHA256
|
|
|
|
/* Whether getaddrinfo is available */
|
|
#undef HAVE_GETADDRINFO
|
|
|
|
/* Define to 1 if you have the <getopt.h> header file. */
|
|
#undef HAVE_GETOPT_H
|
|
|
|
/* Define to 1 if you have the `gmtime_r' function. */
|
|
#undef HAVE_GMTIME_R
|
|
|
|
/* If you have HMAC_CTX_init */
|
|
#undef HAVE_HMAC_CTX_INIT
|
|
|
|
/* Define to 1 if you have the `inet_aton' function. */
|
|
#undef HAVE_INET_ATON
|
|
|
|
/* Define to 1 if you have the `inet_ntop' function. */
|
|
#undef HAVE_INET_NTOP
|
|
|
|
/* Define to 1 if you have the `inet_pton' function. */
|
|
#undef HAVE_INET_PTON
|
|
|
|
/* define if you have inttypes.h */
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
/* Define to 1 if you have the `isblank' function. */
|
|
#undef HAVE_ISBLANK
|
|
|
|
/* Define to 1 if you have the `crypto' library (-lcrypto). */
|
|
#undef HAVE_LIBCRYPTO
|
|
|
|
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
|
#undef HAVE_LIBNSL
|
|
|
|
/* Define to 1 if you have the `socket' library (-lsocket). */
|
|
#undef HAVE_LIBSOCKET
|
|
|
|
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
|
|
to 0 otherwise. */
|
|
#define HAVE_MALLOC 1
|
|
|
|
/* Define to 1 if you have the `memmove' function. */
|
|
#define HAVE_MEMMOVE 1
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#undef HAVE_MEMORY_H
|
|
|
|
/* Define to 1 if you have the <netdb.h> header file. */
|
|
#undef HAVE_NETDB_H
|
|
|
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
|
#undef HAVE_NETINET_IN_H
|
|
|
|
/* Define to 1 if you have the <openssl/err.h> header file. */
|
|
#undef HAVE_OPENSSL_ERR_H
|
|
|
|
/* Define to 1 if you have the <openssl/rand.h> header file. */
|
|
#undef HAVE_OPENSSL_RAND_H
|
|
|
|
/* Define to 1 if you have the <openssl/ssl.h> header file. */
|
|
#undef HAVE_OPENSSL_SSL_H
|
|
|
|
/* Define to 1 if you have the `random' function. */
|
|
#define HAVE_RANDOM 1
|
|
|
|
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
|
|
and to 0 otherwise. */
|
|
#define HAVE_REALLOC 1
|
|
|
|
/* Define to 1 if you have the `sleep' function. */
|
|
#undef HAVE_SLEEP
|
|
|
|
/* Define to 1 if you have the `snprintf' function. */
|
|
#define HAVE_SNPRINTF 1
|
|
|
|
/* Define if you have the SSL libraries installed. */
|
|
#undef HAVE_SSL
|
|
|
|
/* Define to 1 if you have the <stdarg.h> header file. */
|
|
#undef HAVE_STDARG_H
|
|
|
|
/* Define to 1 if you have the <stdbool.h> header file. */
|
|
#undef HAVE_STDBOOL_H
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#undef HAVE_STDINT_H
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#undef HAVE_STDLIB_H
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#undef HAVE_STRINGS_H
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#undef HAVE_STRING_H
|
|
|
|
/* Define to 1 if you have the `strlcpy' function. */
|
|
#undef HAVE_STRLCPY
|
|
|
|
/* Define to 1 if you have the <sys/mount.h> header file. */
|
|
#undef HAVE_SYS_MOUNT_H
|
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
#undef HAVE_SYS_PARAM_H
|
|
|
|
/* define if you have sys/socket.h */
|
|
#undef HAVE_SYS_SOCKET_H
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
/* Define to 1 if you have the `timegm' function. */
|
|
#undef HAVE_TIMEGM
|
|
|
|
/* Define to 1 if you have the <time.h> header file. */
|
|
#undef HAVE_TIME_H
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#undef HAVE_UNISTD_H
|
|
|
|
/* Define to 1 if you have the <winsock2.h> header file. */
|
|
#define HAVE_WINSOCK2_H 1
|
|
|
|
/* Define to 1 if you have the <ws2tcpip.h> header file. */
|
|
#undef HAVE_WS2TCPIP_H
|
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
*/
|
|
#undef LT_OBJDIR
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
/* Define to the full name of this package. */
|
|
#undef PACKAGE_NAME
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#undef PACKAGE_STRING
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#undef PACKAGE_TARNAME
|
|
|
|
/* Define to the version of this package. */
|
|
#undef PACKAGE_VERSION
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#undef STDC_HEADERS
|
|
|
|
/* System configuration dir */
|
|
#undef SYSCONFDIR
|
|
|
|
/* Define this to enable GOST support. */
|
|
#undef USE_GOST
|
|
|
|
/* Define this to enable SHA256 and SHA512 support. */
|
|
#undef USE_SHA2
|
|
|
|
/* Enable extensions on AIX 3, Interix. */
|
|
#ifndef _ALL_SOURCE
|
|
# undef _ALL_SOURCE
|
|
#endif
|
|
/* Enable GNU extensions on systems that have them. */
|
|
#ifndef _GNU_SOURCE
|
|
# undef _GNU_SOURCE
|
|
#endif
|
|
/* Enable threading extensions on Solaris. */
|
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
|
# undef _POSIX_PTHREAD_SEMANTICS
|
|
#endif
|
|
/* Enable extensions on HP NonStop. */
|
|
#ifndef _TANDEM_SOURCE
|
|
# undef _TANDEM_SOURCE
|
|
#endif
|
|
/* Enable general extensions on Solaris. */
|
|
#ifndef __EXTENSIONS__
|
|
# undef __EXTENSIONS__
|
|
#endif
|
|
|
|
|
|
/* Whether the windows socket API is used */
|
|
#define USE_WINSOCK
|
|
|
|
/* the version of the windows API enabled */
|
|
//#undef WINVER
|
|
|
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
|
# if defined __BIG_ENDIAN__
|
|
# define WORDS_BIGENDIAN 1
|
|
# endif
|
|
#else
|
|
# ifndef WORDS_BIGENDIAN
|
|
# undef WORDS_BIGENDIAN
|
|
# endif
|
|
#endif
|
|
|
|
/* Define to 1 if on MINIX. */
|
|
#undef _MINIX
|
|
|
|
/* Define to 2 if the system does not provide POSIX.1 features except with
|
|
this defined. */
|
|
#undef _POSIX_1_SOURCE
|
|
|
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
|
#undef _POSIX_SOURCE
|
|
|
|
/* Define to empty if `const' does not conform to ANSI C. */
|
|
#undef const
|
|
|
|
/* in_addr_t */
|
|
#undef in_addr_t
|
|
|
|
/* in_port_t */
|
|
#undef in_port_t
|
|
|
|
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
|
calls it, or to nothing if 'inline' is not supported under any name. */
|
|
#ifndef __cplusplus
|
|
#define inline
|
|
#endif
|
|
|
|
/* Define to `short' if <sys/types.h> does not define. */
|
|
#undef int16_t
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
#undef int32_t
|
|
|
|
/* Define to `long long' if <sys/types.h> does not define. */
|
|
#undef int64_t
|
|
|
|
/* Define to `char' if <sys/types.h> does not define. */
|
|
#undef int8_t
|
|
|
|
/* Define to rpl_malloc if the replacement function should be used. */
|
|
#undef malloc
|
|
|
|
/* Define to rpl_realloc if the replacement function should be used. */
|
|
#undef realloc
|
|
|
|
/* Define to 'int' if not defined */
|
|
#undef socklen_t
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
#define ssize_t int
|
|
|
|
/* Define to `unsigned short' if <sys/types.h> does not define. */
|
|
#define uint16_t unsigned short
|
|
|
|
#define int16_t short
|
|
|
|
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
|
#define uint32_t unsigned int
|
|
|
|
/* Define to `unsigned long long' if <sys/types.h> does not define. */
|
|
#define uint64_t unsigned long long
|
|
|
|
/* Define to `unsigned char' if <sys/types.h> does not define. */
|
|
#define uint8_t unsigned char
|
|
|
|
#define int8_t char
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
//#include <unistd.h>
|
|
#include <assert.h>
|
|
|
|
#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 <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_STDINT_H
|
|
#include <stdint.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
#include <sys/socket.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_NETINET_IN_H
|
|
#include <netinet/in.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_ARPA_INET_H
|
|
#include <arpa/inet.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_WINSOCK2_H
|
|
#include <winsock2.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_WS2TCPIP_H
|
|
#include <ws2tcpip.h>
|
|
#endif
|
|
|
|
#ifdef _MSC_VER
|
|
#define snprintf _snprintf
|
|
#define vsnprintf _vsnprintf
|
|
#define strcasecmp _stricmp
|
|
#define strncasecmp _strnicmp
|
|
#define strdup _strdup
|
|
/*
|
|
#define gmtime gmtime_s
|
|
#define ctime ctime_s
|
|
#define strcpy strcpu_s
|
|
*/
|
|
#define putenv _putenv
|
|
#define srandom srand
|
|
#define random rand
|
|
#endif
|
|
|
|
#ifndef B64_PTON
|
|
int ldns_b64_ntop(uint8_t const *src, size_t srclength,
|
|
char *target, size_t targsize);
|
|
/**
|
|
* calculates the size needed to store the result of b64_ntop
|
|
*/
|
|
/*@unused@*/
|
|
inline static size_t ldns_b64_ntop_calculate_size(size_t srcsize)
|
|
{
|
|
return ((((srcsize + 2) / 3) * 4) + 1);
|
|
}
|
|
#endif /* !B64_PTON */
|
|
#ifndef B64_NTOP
|
|
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
|
|
/**
|
|
* calculates the size needed to store the result of ldns_b64_pton
|
|
*/
|
|
/*@unused@*/
|
|
inline static size_t ldns_b64_pton_calculate_size(size_t srcsize)
|
|
{
|
|
return ((((srcsize / 4) * 3) - 2) + 2);
|
|
}
|
|
#endif /* !B64_NTOP */
|
|
|
|
#ifndef HAVE_SLEEP
|
|
/* use windows sleep, in millisecs, instead */
|
|
#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.h>
|
|
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_ISBLANK
|
|
int isblank(int c);
|
|
#endif /* !HAVE_ISBLANK */
|
|
#ifndef HAVE_SNPRINTF
|
|
#include <stdarg.h>
|
|
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
|
|
#ifndef HAVE_GETADDRINFO
|
|
#include "compat/fake-rfc2553.h"
|
|
#endif
|
|
|