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