Imported Upstream version 1.0.0
[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 if building universal (internal helper macro) */
70 /* #undef AC_APPLE_UNIVERSAL_BUILD */
71
72 /* Define to 1 if building with X.509 support */
73 #define DTLS_X509 1
74
75 /* Define to 1 if you have the <arpa/inet.h> header file. */
76 #define HAVE_ARPA_INET_H 1
77
78 /* Define to 1 if you have the <assert.h> header file. */
79 #define HAVE_ASSERT_H 1
80
81 /* Define to 1 if you have the <fcntl.h> header file. */
82 #define HAVE_FCNTL_H 1
83
84 /* Define to 1 if you have the `fls' function. */
85 /* #undef HAVE_FLS */
86
87 /* Define to 1 if you have the <inttypes.h> header file. */
88 #define HAVE_INTTYPES_H 1
89
90 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
91    to 0 otherwise. */
92 #define HAVE_MALLOC 1
93
94 /* Define to 1 if you have the <memory.h> header file. */
95 #define HAVE_MEMORY_H 1
96
97 /* Define to 1 if you have the `memset' function. */
98 #define HAVE_MEMSET 1
99
100 /* Define to 1 if you have the <netdb.h> header file. */
101 #define HAVE_NETDB_H 1
102
103 /* Define to 1 if you have the <netinet/in.h> header file. */
104 #define HAVE_NETINET_IN_H 1
105
106 /* Define to 1 if you have the `select' function. */
107 #define HAVE_SELECT 1
108
109 /* Define to 1 if struct sockaddr_in6 has a member sin6_len. */
110 /* #undef HAVE_SOCKADDR_IN6_SIN6_LEN */
111
112 /* Define to 1 if you have the `socket' function. */
113 #define HAVE_SOCKET 1
114
115 /* Define to 1 if you have the <stddef.h> header file. */
116 #define HAVE_STDDEF_H 1
117
118 /* Define to 1 if you have the <stdint.h> header file. */
119 #define HAVE_STDINT_H 1
120
121 /* Define to 1 if you have the <stdlib.h> header file. */
122 #define HAVE_STDLIB_H 1
123
124 /* Define to 1 if you have the `strdup' function. */
125 #define HAVE_STRDUP 1
126
127 /* Define to 1 if you have the `strerror' function. */
128 #define HAVE_STRERROR 1
129
130 /* Define to 1 if you have the <strings.h> header file. */
131 #define HAVE_STRINGS_H 1
132
133 /* Define to 1 if you have the <string.h> header file. */
134 #define HAVE_STRING_H 1
135
136 /* Define to 1 if you have the `strnlen' function. */
137 #define HAVE_STRNLEN 1
138
139 /* Define to 1 if you have the <sys/param.h> header file. */
140 #define HAVE_SYS_PARAM_H 1
141
142 /* Define to 1 if you have the <sys/socket.h> header file. */
143 #define HAVE_SYS_SOCKET_H 1
144
145 /* Define to 1 if you have the <sys/stat.h> header file. */
146 #define HAVE_SYS_STAT_H 1
147
148 /* Define to 1 if you have the <sys/time.h> header file. */
149 #define HAVE_SYS_TIME_H 1
150
151 /* Define to 1 if you have the <sys/types.h> header file. */
152 #define HAVE_SYS_TYPES_H 1
153
154 /* Define to 1 if you have the <time.h> header file. */
155 #define HAVE_TIME_H 1
156
157 /* Define to 1 if you have the <unistd.h> header file. */
158 #define HAVE_UNISTD_H 1
159
160 /* Define to 1 if you have the `vprintf' function. */
161 #define HAVE_VPRINTF 1
162
163 /* Define to the address where bug reports for this package should be sent. */
164 #define PACKAGE_BUGREPORT ""
165
166 /* Define to the full name of this package. */
167 #define PACKAGE_NAME "tinydtls"
168
169 /* Define to the full name and version of this package. */
170 #define PACKAGE_STRING "tinydtls 0.8.1"
171
172 /* Define to the one symbol short name of this package. */
173 #define PACKAGE_TARNAME "tinydtls"
174
175 /* Define to the home page for this package. */
176 #define PACKAGE_URL ""
177
178 /* Define to the version of this package. */
179 #define PACKAGE_VERSION "0.8.1"
180
181 /* Define to 1 if you have the ANSI C header files. */
182 #define STDC_HEADERS 1
183
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.  */
186 #ifndef __cplusplus
187 /* #undef inline */
188 #endif
189
190 /* Define to rpl_malloc if the replacement function should be used. */
191 /* #undef malloc */
192 /* Define to `unsigned int' if <sys/types.h> does not define. */
193
194 /* #undef size_t */
195
196 /************************************************************************/
197 /* Specific Contiki platforms                                           */
198 /************************************************************************/
199
200 #ifdef CONTIKI
201
202 #if CONTIKI_TARGET_ECONOTAG
203 #  include "platform-specific/config-econotag.h"
204 #endif /* CONTIKI_TARGET_ECONOTAG */
205
206 #ifdef CONTIKI_TARGET_CC2538DK
207 #  include "platform-specific/config-cc2538dk.h"
208 #endif /* CONTIKI_TARGET_CC2538DK */
209
210 #ifdef CONTIKI_TARGET_WISMOTE
211 #  include "platform-specific/config-wismote.h"
212 #endif /* CONTIKI_TARGET_WISMOTE */
213
214 #ifdef CONTIKI_TARGET_SKY
215 #  include "platform-specific/config-sky.h"
216 #endif /* CONTIKI_TARGET_SKY */
217
218 #ifdef CONTIKI_TARGET_MINIMAL_NET
219 #  include "platform-specific/config-minimal-net.h"
220 #endif /* CONTIKI_TARGET_MINIMAL_NET */
221
222 #endif /* CONTIKI */