Imported Upstream version 0.9.1
[platform/upstream/iotivity.git] / extlibs / tinydtls / dtls_config.h
1 /* dtls_config.h.  Generated from dtls_config.h.in by configure.  */
2 /* tinydtls -- a very basic DTLS implementation
3  *
4  * Copyright (C) 2011--2014 Olaf Bergmann <bergmann@tzi.org>
5  * Copyright (C) 2013 Hauke Mehrtens <hauke@hauke-m.de>
6  *
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:
14  *
15  * The above copyright notice and this permission notice shall be
16  * included in all copies or substantial portions of the Software.
17  *
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
25  * SOFTWARE.
26  */
27
28 /**
29  * @file dtls_config.h
30  * @brief internal configuration for tinydtls library
31  *
32  * This file has been generated by configure from dtls_config.h.in.
33  */
34
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"
39
40 #ifdef CONTIKI
41 #include "contiki.h"
42 #include "contiki-lib.h"
43 #include "contiki-net.h"
44
45 #include "contiki-conf.h"
46
47 /* global constants for constrained devices running Contiki */
48 #ifndef DTLS_PEER_MAX
49 /** The maximum number DTLS peers (i.e. sessions). */
50 #  define DTLS_PEER_MAX 1
51 #endif
52
53 #ifndef DTLS_HANDSHAKE_MAX
54 /** The maximum number of concurrent DTLS handshakes. */
55 #  define DTLS_HANDSHAKE_MAX 1
56 #endif
57
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)
61 #endif
62
63 #ifndef DTLS_HASH_MAX
64 /** The maximum number of hash functions that can be used in parallel. */
65 #  define DTLS_HASH_MAX (3 * DTLS_PEER_MAX)
66 #endif
67 #endif /* CONTIKI */
68
69 /* Define to 1 if you have the <assert.h> header file. */
70 #define HAVE_ASSERT_H 1
71
72 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
73    to 0 otherwise. */
74 #define HAVE_MALLOC 1
75
76 /* Define to 1 if you have the <memory.h> header file. */
77 #define HAVE_MEMORY_H 1
78
79 /* Define to 1 if you have the `memset' function. */
80 #define HAVE_MEMSET 1
81
82 /* Define to 1 if you have the <stddef.h> header file. */
83 #define HAVE_STDDEF_H 1
84
85 /* Define to 1 if you have the <stdint.h> header file. */
86 #define HAVE_STDINT_H 1
87
88 /* Define to 1 if you have the <stdlib.h> header file. */
89 #define HAVE_STDLIB_H 1
90
91 /* Define to 1 if you have the `strdup' function. */
92 #define HAVE_STRDUP 1
93
94 /* Define to 1 if you have the `strerror' function. */
95 #define HAVE_STRERROR 1
96
97 /* Define to 1 if you have the <strings.h> header file. */
98 #define HAVE_STRINGS_H 1
99
100 /* Define to 1 if you have the <string.h> header file. */
101 #define HAVE_STRING_H 1
102
103 /* Define to 1 if you have the `strnlen' function. */
104 #define HAVE_STRNLEN 1
105
106 /* Define to 1 if you have the <time.h> header file. */
107 #define HAVE_TIME_H 1
108
109 /* Define to 1 if you have the `vprintf' function. */
110 #define HAVE_VPRINTF 1
111
112 /* Define to the address where bug reports for this package should be sent. */
113 #define PACKAGE_BUGREPORT ""
114
115 /* Define to the full name of this package. */
116 #define PACKAGE_NAME "tinydtls"
117
118 /* Define to the full name and version of this package. */
119 #define PACKAGE_STRING "tinydtls 0.8.1"
120
121 /* Define to the one symbol short name of this package. */
122 #define PACKAGE_TARNAME "tinydtls"
123
124 /* Define to the home page for this package. */
125 #define PACKAGE_URL ""
126
127 /* Define to the version of this package. */
128 #define PACKAGE_VERSION "0.8.1"
129
130 /* Define to 1 if you have the ANSI C header files. */
131 #define STDC_HEADERS 1
132
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.  */
135 #ifndef __cplusplus
136 /* #undef inline */
137 #endif
138
139 /* Define to rpl_malloc if the replacement function should be used. */
140 /* #undef malloc */
141 /* Define to `unsigned int' if <sys/types.h> does not define. */
142
143 /* #undef size_t */
144
145 /************************************************************************/
146 /* Specific Contiki platforms                                           */
147 /************************************************************************/
148
149 #ifdef CONTIKI
150
151 #if CONTIKI_TARGET_ECONOTAG
152 #  include "platform-specific/config-econotag.h"
153 #endif /* CONTIKI_TARGET_ECONOTAG */
154
155 #ifdef CONTIKI_TARGET_CC2538DK
156 #  include "platform-specific/config-cc2538dk.h"
157 #endif /* CONTIKI_TARGET_CC2538DK */
158
159 #ifdef CONTIKI_TARGET_WISMOTE
160 #  include "platform-specific/config-wismote.h"
161 #endif /* CONTIKI_TARGET_WISMOTE */
162
163 #ifdef CONTIKI_TARGET_SKY
164 #  include "platform-specific/config-sky.h"
165 #endif /* CONTIKI_TARGET_SKY */
166
167 #ifdef CONTIKI_TARGET_MINIMAL_NET
168 #  include "platform-specific/config-minimal-net.h"
169 #endif /* CONTIKI_TARGET_MINIMAL_NET */
170
171 #endif /* CONTIKI */