/* tinydtls -- a very basic DTLS implementation * * Copyright (C) 2011--2014 Olaf Bergmann * Copyright (C) 2013 Hauke Mehrtens * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /** * @file dtls_config.h * @brief internal configuration for tinydtls library * * This file has been generated by configure from dtls_config.h.in. */ /* dummy definitions for PACKAGE_NAME and PACKAGE_VERSION */ #define PACKAGE_NAME "tinydtls" #define PACKAGE_STRING PACKAGE_NAME #define PACKAGE_VERSION PACKAGE_VERSION #ifdef CONTIKI #include "contiki.h" #include "contiki-lib.h" #include "contiki-net.h" #include "contiki-conf.h" /* global constants for constrained devices running Contiki */ #ifndef DTLS_PEER_MAX /** The maximum number DTLS peers (i.e. sessions). */ # define DTLS_PEER_MAX 1 #endif #ifndef DTLS_HANDSHAKE_MAX /** The maximum number of concurrent DTLS handshakes. */ # define DTLS_HANDSHAKE_MAX 1 #endif #ifndef DTLS_SECURITY_MAX /** The maximum number of concurrently used cipher keys */ # define DTLS_SECURITY_MAX (DTLS_PEER_MAX + DTLS_HANDSHAKE_MAX) #endif #ifndef DTLS_HASH_MAX /** The maximum number of hash functions that can be used in parallel. */ # define DTLS_HASH_MAX (3 * DTLS_PEER_MAX) #endif #endif /* CONTIKI */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define to 1 if building with X.509 support */ #undef DTLS_X509 /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the header file. */ #undef HAVE_ASSERT_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fls' function. */ #undef HAVE_FLS /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if struct sockaddr_in6 has a member sin6_len. */ #undef HAVE_SOCKADDR_IN6_SIN6_LEN /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strnlen' function. */ #undef HAVE_STRNLEN /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vprintf' function. */ #undef HAVE_VPRINTF /* 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 home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* 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 #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `unsigned int' if does not define. */ #undef size_t /************************************************************************/ /* Specific Contiki platforms */ /************************************************************************/ #ifdef CONTIKI #if CONTIKI_TARGET_ECONOTAG # include "platform-specific/config-econotag.h" #endif /* CONTIKI_TARGET_ECONOTAG */ #ifdef CONTIKI_TARGET_CC2538DK # include "platform-specific/config-cc2538dk.h" #endif /* CONTIKI_TARGET_CC2538DK */ #ifdef CONTIKI_TARGET_WISMOTE # include "platform-specific/config-wismote.h" #endif /* CONTIKI_TARGET_WISMOTE */ #ifdef CONTIKI_TARGET_SKY # include "platform-specific/config-sky.h" #endif /* CONTIKI_TARGET_SKY */ #ifdef CONTIKI_TARGET_MINIMAL_NET # include "platform-specific/config-minimal-net.h" #endif /* CONTIKI_TARGET_MINIMAL_NET */ #endif /* CONTIKI */