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 building with X.509 support */
74 /* Define to 1 if you have the <arpa/inet.h> header file. */
75 #undef HAVE_ARPA_INET_H
77 /* Define to 1 if you have the <assert.h> header file. */
80 /* Define to 1 if you have the <fcntl.h> header file. */
83 /* Define to 1 if you have the `fls' function. */
86 /* Define to 1 if you have the <inttypes.h> header file. */
87 #undef HAVE_INTTYPES_H
89 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
93 /* Define to 1 if you have the <memory.h> header file. */
96 /* Define to 1 if you have the `memset' function. */
99 /* Define to 1 if you have the <netdb.h> header file. */
102 /* Define to 1 if you have the <netinet/in.h> header file. */
103 #undef HAVE_NETINET_IN_H
105 /* Define to 1 if you have the `select' function. */
108 /* Define to 1 if struct sockaddr_in6 has a member sin6_len. */
109 #undef HAVE_SOCKADDR_IN6_SIN6_LEN
111 /* Define to 1 if you have the `socket' function. */
114 /* Define to 1 if you have the <stddef.h> header file. */
117 /* Define to 1 if you have the <stdint.h> header file. */
120 /* Define to 1 if you have the <stdlib.h> header file. */
123 /* Define to 1 if you have the `strdup' function. */
126 /* Define to 1 if you have the `strerror' function. */
129 /* Define to 1 if you have the <strings.h> header file. */
130 #undef HAVE_STRINGS_H
132 /* Define to 1 if you have the <string.h> header file. */
135 /* Define to 1 if you have the `strnlen' function. */
138 /* Define to 1 if you have the <sys/param.h> header file. */
139 #undef HAVE_SYS_PARAM_H
141 /* Define to 1 if you have the <sys/socket.h> header file. */
142 #undef HAVE_SYS_SOCKET_H
144 /* Define to 1 if you have the <sys/stat.h> header file. */
145 #undef HAVE_SYS_STAT_H
147 /* Define to 1 if you have the <sys/time.h> header file. */
148 #undef HAVE_SYS_TIME_H
150 /* Define to 1 if you have the <sys/types.h> header file. */
151 #undef HAVE_SYS_TYPES_H
153 /* Define to 1 if you have the <time.h> header file. */
156 /* Define to 1 if you have the <unistd.h> header file. */
159 /* Define to 1 if you have the `vprintf' function. */
162 /* Define to the address where bug reports for this package should be sent. */
163 #undef PACKAGE_BUGREPORT
165 /* Define to the full name of this package. */
168 /* Define to the full name and version of this package. */
169 #undef PACKAGE_STRING
171 /* Define to the one symbol short name of this package. */
172 #undef PACKAGE_TARNAME
174 /* Define to the home page for this package. */
177 /* Define to the version of this package. */
178 #undef PACKAGE_VERSION
180 /* Define to 1 if you have the ANSI C header files. */
183 /* Define to `__inline__' or `__inline' if that's what the C compiler
184 calls it, or to nothing if 'inline' is not supported under any name. */
189 /* Define to rpl_malloc if the replacement function should be used. */
191 /* Define to `unsigned int' if <sys/types.h> does not define. */
195 /************************************************************************/
196 /* Specific Contiki platforms */
197 /************************************************************************/
201 #if CONTIKI_TARGET_ECONOTAG
202 # include "platform-specific/config-econotag.h"
203 #endif /* CONTIKI_TARGET_ECONOTAG */
205 #ifdef CONTIKI_TARGET_CC2538DK
206 # include "platform-specific/config-cc2538dk.h"
207 #endif /* CONTIKI_TARGET_CC2538DK */
209 #ifdef CONTIKI_TARGET_WISMOTE
210 # include "platform-specific/config-wismote.h"
211 #endif /* CONTIKI_TARGET_WISMOTE */
213 #ifdef CONTIKI_TARGET_SKY
214 # include "platform-specific/config-sky.h"
215 #endif /* CONTIKI_TARGET_SKY */
217 #ifdef CONTIKI_TARGET_MINIMAL_NET
218 # include "platform-specific/config-minimal-net.h"
219 #endif /* CONTIKI_TARGET_MINIMAL_NET */