1 /* tinydtls -- a very basic DTLS implementation
3 * Copyright (C) 2011--2014 Olaf Bergmann <bergmann@tzi.org>
4 * Copyright (C) 2013 Hauke Mehrtens <hauke@hauke-m.de>
6 * Permission is hereby granted, free of charge, to any person
7 * obtaining a copy of this software and associated documentation
8 * files (the "Software"), to deal in the Software without
9 * restriction, including without limitation the rights to use, copy,
10 * modify, merge, publish, distribute, sublicense, and/or sell copies
11 * of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be
15 * included in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
21 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
22 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 * @brief internal configuration for tinydtls library
31 * This file has been generated by configure from dtls_config.h.in.
34 /* dummy definitions for PACKAGE_NAME and PACKAGE_VERSION */
35 #define PACKAGE_NAME "tinydtls"
36 #define PACKAGE_STRING PACKAGE_NAME
37 #define PACKAGE_VERSION PACKAGE_VERSION
41 #include "contiki-lib.h"
42 #include "contiki-net.h"
44 #include "contiki-conf.h"
46 /* global constants for constrained devices running Contiki */
48 /** The maximum number DTLS peers (i.e. sessions). */
49 # define DTLS_PEER_MAX 1
52 #ifndef DTLS_HANDSHAKE_MAX
53 /** The maximum number of concurrent DTLS handshakes. */
54 # define DTLS_HANDSHAKE_MAX 1
57 #ifndef DTLS_SECURITY_MAX
58 /** The maximum number of concurrently used cipher keys */
59 # define DTLS_SECURITY_MAX (DTLS_PEER_MAX + DTLS_HANDSHAKE_MAX)
63 /** The maximum number of hash functions that can be used in parallel. */
64 # define DTLS_HASH_MAX (3 * DTLS_PEER_MAX)
68 /* Define if building universal (internal helper macro) */
69 #undef AC_APPLE_UNIVERSAL_BUILD
71 /* Define to 1 if you have the <arpa/inet.h> header file. */
72 #undef HAVE_ARPA_INET_H
74 /* Define to 1 if you have the <assert.h> header file. */
77 /* Define to 1 if you have the <fcntl.h> header file. */
80 /* Define to 1 if you have the `fls' function. */
83 /* Define to 1 if you have the <inttypes.h> header file. */
84 #undef HAVE_INTTYPES_H
86 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
90 /* Define to 1 if you have the <memory.h> header file. */
93 /* Define to 1 if you have the `memset' function. */
96 /* Define to 1 if you have the <netdb.h> header file. */
99 /* Define to 1 if you have the <netinet/in.h> header file. */
100 #undef HAVE_NETINET_IN_H
102 /* Define to 1 if you have the `select' function. */
105 /* Define to 1 if struct sockaddr_in6 has a member sin6_len. */
106 #undef HAVE_SOCKADDR_IN6_SIN6_LEN
108 /* Define to 1 if you have the `socket' function. */
111 /* Define to 1 if you have the <stddef.h> header file. */
114 /* Define to 1 if you have the <stdint.h> header file. */
117 /* Define to 1 if you have the <stdlib.h> header file. */
120 /* Define to 1 if you have the `strdup' function. */
123 /* Define to 1 if you have the `strerror' function. */
126 /* Define to 1 if you have the <strings.h> header file. */
127 #undef HAVE_STRINGS_H
129 /* Define to 1 if you have the <string.h> header file. */
132 /* Define to 1 if you have the `strnlen' function. */
135 /* Define to 1 if you have the <sys/param.h> header file. */
136 #undef HAVE_SYS_PARAM_H
138 /* Define to 1 if you have the <sys/socket.h> header file. */
139 #undef HAVE_SYS_SOCKET_H
141 /* Define to 1 if you have the <sys/stat.h> header file. */
142 #undef HAVE_SYS_STAT_H
144 /* Define to 1 if you have the <sys/time.h> header file. */
145 #undef HAVE_SYS_TIME_H
147 /* Define to 1 if you have the <sys/types.h> header file. */
148 #undef HAVE_SYS_TYPES_H
150 /* Define to 1 if you have the <time.h> header file. */
153 /* Define to 1 if you have the <unistd.h> header file. */
156 /* Define to 1 if you have the `vprintf' function. */
159 /* Define to the address where bug reports for this package should be sent. */
160 #undef PACKAGE_BUGREPORT
162 /* Define to the full name of this package. */
165 /* Define to the full name and version of this package. */
166 #undef PACKAGE_STRING
168 /* Define to the one symbol short name of this package. */
169 #undef PACKAGE_TARNAME
171 /* Define to the home page for this package. */
174 /* Define to the version of this package. */
175 #undef PACKAGE_VERSION
177 /* Define to 1 if you have the ANSI C header files. */
180 /* Define to `__inline__' or `__inline' if that's what the C compiler
181 calls it, or to nothing if 'inline' is not supported under any name. */
186 /* Define to rpl_malloc if the replacement function should be used. */
188 /* Define to `unsigned int' if <sys/types.h> does not define. */
192 /************************************************************************/
193 /* Specific Contiki platforms */
194 /************************************************************************/
198 #if CONTIKI_TARGET_ECONOTAG
199 # include "platform-specific/config-econotag.h"
200 #endif /* CONTIKI_TARGET_ECONOTAG */
202 #ifdef CONTIKI_TARGET_CC2538DK
203 # include "platform-specific/config-cc2538dk.h"
204 #endif /* CONTIKI_TARGET_CC2538DK */
206 #ifdef CONTIKI_TARGET_WISMOTE
207 # include "platform-specific/config-wismote.h"
208 #endif /* CONTIKI_TARGET_WISMOTE */
210 #ifdef CONTIKI_TARGET_SKY
211 # include "platform-specific/config-sky.h"
212 #endif /* CONTIKI_TARGET_SKY */
214 #ifdef CONTIKI_TARGET_MINIMAL_NET
215 # include "platform-specific/config-minimal-net.h"
216 #endif /* CONTIKI_TARGET_MINIMAL_NET */