1 /* dtls_config.h. Generated from dtls_config.h.in by configure. */
2 /* tinydtls -- a very basic DTLS implementation
4 * Copyright (C) 2011--2014 Olaf Bergmann <bergmann@tzi.org>
5 * Copyright (C) 2013 Hauke Mehrtens <hauke@hauke-m.de>
7 * Permission is hereby granted, free of charge, to any person
8 * obtaining a copy of this software and associated documentation
9 * files (the "Software"), to deal in the Software without
10 * restriction, including without limitation the rights to use, copy,
11 * modify, merge, publish, distribute, sublicense, and/or sell copies
12 * of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
15 * The above copyright notice and this permission notice shall be
16 * included in all copies or substantial portions of the Software.
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * @brief internal configuration for tinydtls library
32 * This file has been generated by configure from dtls_config.h.in.
35 /* dummy definitions for PACKAGE_NAME and PACKAGE_VERSION */
36 #define PACKAGE_NAME "tinydtls"
37 #define PACKAGE_STRING "tinydtls 0.8.1"
38 #define PACKAGE_VERSION "0.8.1"
42 #include "contiki-lib.h"
43 #include "contiki-net.h"
45 #include "contiki-conf.h"
47 /* global constants for constrained devices running Contiki */
49 /** The maximum number DTLS peers (i.e. sessions). */
50 # define DTLS_PEER_MAX 1
53 #ifndef DTLS_HANDSHAKE_MAX
54 /** The maximum number of concurrent DTLS handshakes. */
55 # define DTLS_HANDSHAKE_MAX 1
58 #ifndef DTLS_SECURITY_MAX
59 /** The maximum number of concurrently used cipher keys */
60 # define DTLS_SECURITY_MAX (DTLS_PEER_MAX + DTLS_HANDSHAKE_MAX)
64 /** The maximum number of hash functions that can be used in parallel. */
65 # define DTLS_HASH_MAX (3 * DTLS_PEER_MAX)
69 /* Define if building universal (internal helper macro) */
70 /* #undef AC_APPLE_UNIVERSAL_BUILD */
72 /* Define to 1 if building with X.509 support */
75 /* Define to 1 if you have the <arpa/inet.h> header file. */
76 #define HAVE_ARPA_INET_H 1
78 /* Define to 1 if you have the <assert.h> header file. */
79 #define HAVE_ASSERT_H 1
81 /* Define to 1 if you have the <fcntl.h> header file. */
82 #define HAVE_FCNTL_H 1
84 /* Define to 1 if you have the `fls' function. */
87 /* Define to 1 if you have the <inttypes.h> header file. */
88 #define HAVE_INTTYPES_H 1
90 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
94 /* Define to 1 if you have the <memory.h> header file. */
95 #define HAVE_MEMORY_H 1
97 /* Define to 1 if you have the `memset' function. */
100 /* Define to 1 if you have the <netdb.h> header file. */
101 #define HAVE_NETDB_H 1
103 /* Define to 1 if you have the <netinet/in.h> header file. */
104 #define HAVE_NETINET_IN_H 1
106 /* Define to 1 if you have the `select' function. */
107 #define HAVE_SELECT 1
109 /* Define to 1 if struct sockaddr_in6 has a member sin6_len. */
110 /* #undef HAVE_SOCKADDR_IN6_SIN6_LEN */
112 /* Define to 1 if you have the `socket' function. */
113 #define HAVE_SOCKET 1
115 /* Define to 1 if you have the <stddef.h> header file. */
116 #define HAVE_STDDEF_H 1
118 /* Define to 1 if you have the <stdint.h> header file. */
119 #define HAVE_STDINT_H 1
121 /* Define to 1 if you have the <stdlib.h> header file. */
122 #define HAVE_STDLIB_H 1
124 /* Define to 1 if you have the `strdup' function. */
125 #define HAVE_STRDUP 1
127 /* Define to 1 if you have the `strerror' function. */
128 #define HAVE_STRERROR 1
130 /* Define to 1 if you have the <strings.h> header file. */
131 #define HAVE_STRINGS_H 1
133 /* Define to 1 if you have the <string.h> header file. */
134 #define HAVE_STRING_H 1
136 /* Define to 1 if you have the `strnlen' function. */
137 #define HAVE_STRNLEN 1
139 /* Define to 1 if you have the <sys/param.h> header file. */
140 #define HAVE_SYS_PARAM_H 1
142 /* Define to 1 if you have the <sys/socket.h> header file. */
143 #define HAVE_SYS_SOCKET_H 1
145 /* Define to 1 if you have the <sys/stat.h> header file. */
146 #define HAVE_SYS_STAT_H 1
148 /* Define to 1 if you have the <sys/time.h> header file. */
149 #define HAVE_SYS_TIME_H 1
151 /* Define to 1 if you have the <sys/types.h> header file. */
152 #define HAVE_SYS_TYPES_H 1
154 /* Define to 1 if you have the <time.h> header file. */
155 #define HAVE_TIME_H 1
157 /* Define to 1 if you have the <unistd.h> header file. */
158 #define HAVE_UNISTD_H 1
160 /* Define to 1 if you have the `vprintf' function. */
161 #define HAVE_VPRINTF 1
163 /* Define to the address where bug reports for this package should be sent. */
164 #define PACKAGE_BUGREPORT ""
166 /* Define to the full name of this package. */
167 #define PACKAGE_NAME "tinydtls"
169 /* Define to the full name and version of this package. */
170 #define PACKAGE_STRING "tinydtls 0.8.1"
172 /* Define to the one symbol short name of this package. */
173 #define PACKAGE_TARNAME "tinydtls"
175 /* Define to the home page for this package. */
176 #define PACKAGE_URL ""
178 /* Define to the version of this package. */
179 #define PACKAGE_VERSION "0.8.1"
181 /* Define to 1 if you have the ANSI C header files. */
182 #define STDC_HEADERS 1
184 /* Define to `__inline__' or `__inline' if that's what the C compiler
185 calls it, or to nothing if 'inline' is not supported under any name. */
190 /* Define to rpl_malloc if the replacement function should be used. */
192 /* Define to `unsigned int' if <sys/types.h> does not define. */
196 /************************************************************************/
197 /* Specific Contiki platforms */
198 /************************************************************************/
202 #if CONTIKI_TARGET_ECONOTAG
203 # include "platform-specific/config-econotag.h"
204 #endif /* CONTIKI_TARGET_ECONOTAG */
206 #ifdef CONTIKI_TARGET_CC2538DK
207 # include "platform-specific/config-cc2538dk.h"
208 #endif /* CONTIKI_TARGET_CC2538DK */
210 #ifdef CONTIKI_TARGET_WISMOTE
211 # include "platform-specific/config-wismote.h"
212 #endif /* CONTIKI_TARGET_WISMOTE */
214 #ifdef CONTIKI_TARGET_SKY
215 # include "platform-specific/config-sky.h"
216 #endif /* CONTIKI_TARGET_SKY */
218 #ifdef CONTIKI_TARGET_MINIMAL_NET
219 # include "platform-specific/config-minimal-net.h"
220 #endif /* CONTIKI_TARGET_MINIMAL_NET */