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 to 1 if you have the <assert.h> header file. */
70 #define HAVE_ASSERT_H 1
72 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
76 /* Define to 1 if you have the <memory.h> header file. */
77 #define HAVE_MEMORY_H 1
79 /* Define to 1 if you have the `memset' function. */
82 /* Define to 1 if you have the <stddef.h> header file. */
83 #define HAVE_STDDEF_H 1
85 /* Define to 1 if you have the <stdint.h> header file. */
86 #define HAVE_STDINT_H 1
88 /* Define to 1 if you have the <stdlib.h> header file. */
89 #define HAVE_STDLIB_H 1
91 /* Define to 1 if you have the `strdup' function. */
94 /* Define to 1 if you have the `strerror' function. */
95 #define HAVE_STRERROR 1
97 /* Define to 1 if you have the <strings.h> header file. */
98 #define HAVE_STRINGS_H 1
100 /* Define to 1 if you have the <string.h> header file. */
101 #define HAVE_STRING_H 1
103 /* Define to 1 if you have the `strnlen' function. */
104 #define HAVE_STRNLEN 1
106 /* Define to 1 if you have the <time.h> header file. */
107 #define HAVE_TIME_H 1
109 /* Define to 1 if you have the `vprintf' function. */
110 #define HAVE_VPRINTF 1
112 /* Define to the address where bug reports for this package should be sent. */
113 #define PACKAGE_BUGREPORT ""
115 /* Define to the full name of this package. */
116 #define PACKAGE_NAME "tinydtls"
118 /* Define to the full name and version of this package. */
119 #define PACKAGE_STRING "tinydtls 0.8.1"
121 /* Define to the one symbol short name of this package. */
122 #define PACKAGE_TARNAME "tinydtls"
124 /* Define to the home page for this package. */
125 #define PACKAGE_URL ""
127 /* Define to the version of this package. */
128 #define PACKAGE_VERSION "0.8.1"
130 /* Define to 1 if you have the ANSI C header files. */
131 #define STDC_HEADERS 1
133 /* Define to `__inline__' or `__inline' if that's what the C compiler
134 calls it, or to nothing if 'inline' is not supported under any name. */
139 /* Define to rpl_malloc if the replacement function should be used. */
141 /* Define to `unsigned int' if <sys/types.h> does not define. */
145 /************************************************************************/
146 /* Specific Contiki platforms */
147 /************************************************************************/
151 #if CONTIKI_TARGET_ECONOTAG
152 # include "platform-specific/config-econotag.h"
153 #endif /* CONTIKI_TARGET_ECONOTAG */
155 #ifdef CONTIKI_TARGET_CC2538DK
156 # include "platform-specific/config-cc2538dk.h"
157 #endif /* CONTIKI_TARGET_CC2538DK */
159 #ifdef CONTIKI_TARGET_WISMOTE
160 # include "platform-specific/config-wismote.h"
161 #endif /* CONTIKI_TARGET_WISMOTE */
163 #ifdef CONTIKI_TARGET_SKY
164 # include "platform-specific/config-sky.h"
165 #endif /* CONTIKI_TARGET_SKY */
167 #ifdef CONTIKI_TARGET_MINIMAL_NET
168 # include "platform-specific/config-minimal-net.h"
169 #endif /* CONTIKI_TARGET_MINIMAL_NET */