blob: d08937591e88661864e5554a56fa9eeae5f942f1 [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
2 * \file config.h
3 *
Paul Bakker37ca75d2011-01-06 12:28:03 +00004 * \brief Configuration options (set of defines)
5 *
Manuel Pégourié-Gonnarda658a402015-01-23 09:45:19 +00006 * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
Manuel Pégourié-Gonnard860b5162015-01-28 17:12:07 +00008 * This file is part of mbed TLS (https://polarssl.org)
Paul Bakkerb96f1542010-07-18 20:36:00 +00009 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 *
Paul Bakker5121ce52009-01-03 21:22:43 +000024 * This set of compile-time options may be used to enable
25 * or disable features selectively, and reduce the global
26 * memory footprint.
27 */
Paul Bakker40e46942009-01-03 21:51:57 +000028#ifndef POLARSSL_CONFIG_H
29#define POLARSSL_CONFIG_H
Paul Bakker5121ce52009-01-03 21:22:43 +000030
Paul Bakkercce9d772011-11-18 14:26:47 +000031#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
Paul Bakker5121ce52009-01-03 21:22:43 +000032#define _CRT_SECURE_NO_DEPRECATE 1
33#endif
34
Paul Bakkerf3b86c12011-01-27 15:24:17 +000035/**
Paul Bakker0a62cd12011-01-21 11:00:08 +000036 * \name SECTION: System support
37 *
38 * This section sets system specific settings.
39 * \{
40 */
41
Paul Bakkerf3b86c12011-01-27 15:24:17 +000042/**
43 * \def POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000044 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000045 * The system uses 8-bit wide native integers.
46 *
47 * Uncomment if native integers are 8-bit wide.
Paul Bakker5121ce52009-01-03 21:22:43 +000048 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +020049//#define POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000050
Paul Bakkerf3b86c12011-01-27 15:24:17 +000051/**
52 * \def POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000053 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000054 * The system uses 16-bit wide native integers.
55 *
56 * Uncomment if native integers are 16-bit wide.
Paul Bakker5121ce52009-01-03 21:22:43 +000057 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +020058//#define POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000059
Paul Bakkerf3b86c12011-01-27 15:24:17 +000060/**
Paul Bakker62261d62012-10-02 12:19:31 +000061 * \def POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000062 *
Paul Bakker62261d62012-10-02 12:19:31 +000063 * The compiler supports the 'long long' type.
64 * (Only used on 32-bit platforms)
Paul Bakker5121ce52009-01-03 21:22:43 +000065 */
Paul Bakker62261d62012-10-02 12:19:31 +000066#define POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000067
Paul Bakkerf3b86c12011-01-27 15:24:17 +000068/**
69 * \def POLARSSL_HAVE_ASM
70 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +020071 * The compiler has support for asm().
Paul Bakker68041ec2009-04-19 21:17:55 +000072 *
73 * Requires support for asm() in compiler.
74 *
75 * Used in:
76 * library/timing.c
77 * library/padlock.c
78 * include/polarssl/bn_mul.h
79 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +020080 * Comment to disable the use of assembly code.
Paul Bakker5121ce52009-01-03 21:22:43 +000081 */
Paul Bakker40e46942009-01-03 21:51:57 +000082#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000083
Paul Bakkerf3b86c12011-01-27 15:24:17 +000084/**
85 * \def POLARSSL_HAVE_SSE2
86 *
Paul Bakkere23c3152012-10-01 14:42:47 +000087 * CPU supports SSE2 instruction set.
Paul Bakkerf3b86c12011-01-27 15:24:17 +000088 *
Paul Bakker5121ce52009-01-03 21:22:43 +000089 * Uncomment if the CPU supports SSE2 (IA-32 specific).
Paul Bakker5121ce52009-01-03 21:22:43 +000090 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +020091//#define POLARSSL_HAVE_SSE2
Paul Bakkerfa9b1002013-07-03 15:31:03 +020092
93/**
94 * \def POLARSSL_HAVE_TIME
95 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +020096 * System has time.h and time() / localtime() / gettimeofday().
Paul Bakkerfa9b1002013-07-03 15:31:03 +020097 *
98 * Comment if your system does not support time functions
99 */
100#define POLARSSL_HAVE_TIME
Manuel Pégourié-Gonnard10934de2013-12-13 12:54:09 +0100101
102/**
103 * \def POLARSSL_HAVE_IPV6
104 *
105 * System supports the basic socket interface for IPv6 (RFC 3493),
Manuel Pégourié-Gonnard767f02c2013-12-13 16:23:39 +0100106 * specifically getaddrinfo(), freeaddrinfo() and struct sockaddr_storage.
Manuel Pégourié-Gonnard10934de2013-12-13 12:54:09 +0100107 *
Manuel Pégourié-Gonnard13211352013-12-17 17:38:55 +0100108 * Note: on Windows/MingW, XP or higher is required.
109 *
Manuel Pégourié-Gonnard10934de2013-12-13 12:54:09 +0100110 * Comment if your system does not support the IPv6 socket interface
111 */
112#define POLARSSL_HAVE_IPV6
Paul Bakker747a83a2014-02-01 22:50:07 +0100113
114/**
Paul Bakkerdefc0ca2014-02-04 17:30:24 +0100115 * \def POLARSSL_PLATFORM_MEMORY
116 *
117 * Enable the memory allocation layer.
118 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000119 * By default mbed TLS uses the system-provided malloc() and free().
Paul Bakkerdefc0ca2014-02-04 17:30:24 +0100120 * This allows different allocators (self-implemented or provided) to be
121 * provided to the platform abstraction layer.
122 *
123 * Enabling POLARSSL_PLATFORM_MEMORY will provide "platform_set_malloc_free()"
124 * to allow you to set an alternative malloc() and free() function pointer.
125 *
126 * Requires: POLARSSL_PLATFORM_C
127 *
128 * Enable this layer to allow use of alternative memory allocators.
129 */
130//#define POLARSSL_PLATFORM_MEMORY
131
132/**
Paul Bakker088c5c52014-04-25 11:11:10 +0200133 * \def POLARSSL_PLATFORM_NO_STD_FUNCTIONS
134 *
135 * Do not assign standard functions in the platform layer (e.g. malloc() to
136 * POLARSSL_PLATFORM_STD_MALLOC and printf() to POLARSSL_PLATFORM_STD_PRINTF)
137 *
138 * This makes sure there are no linking errors on platforms that do not support
139 * these functions. You will HAVE to provide alternatives, either at runtime
140 * via the platform_set_xxx() functions or at compile time by setting
141 * the POLARSSL_PLATFORM_STD_XXX defines.
142 *
143 * Requires: POLARSSL_PLATFORM_C
144 *
145 * Uncomment to prevent default assignment of standard functions in the
146 * platform layer.
147 */
148//#define POLARSSL_PLATFORM_NO_STD_FUNCTIONS
149
150/**
Paul Bakker747a83a2014-02-01 22:50:07 +0100151 * \def POLARSSL_PLATFORM_XXX_ALT
152 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000153 * Uncomment a macro to let mbed TLS support the function in the platform
Paul Bakker747a83a2014-02-01 22:50:07 +0100154 * abstraction layer.
155 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000156 * Example: In case you uncomment POLARSSL_PLATFORM_PRINTF_ALT, mbed TLS will
Paul Bakker747a83a2014-02-01 22:50:07 +0100157 * provide a function "platform_set_printf()" that allows you to set an
158 * alternative printf function pointer.
159 *
160 * All these define require POLARSSL_PLATFORM_C to be defined!
161 *
Rich Evans46b0a8d2015-01-30 10:47:32 +0000162 * WARNING: POLARSSL_PLATFORM_SNPRINTF_ALT is not available on Windows
163 * for compatibility reasons.
164 *
Paul Bakker747a83a2014-02-01 22:50:07 +0100165 * Uncomment a macro to enable alternate implementation of specific base
166 * platform function
167 */
Rich Evans46b0a8d2015-01-30 10:47:32 +0000168//#define POLARSSL_PLATFORM_SNPRINTF_ALT
Paul Bakker747a83a2014-02-01 22:50:07 +0100169//#define POLARSSL_PLATFORM_PRINTF_ALT
170//#define POLARSSL_PLATFORM_FPRINTF_ALT
Rich Evansc39cb492015-01-30 12:01:34 +0000171//#define POLARSSL_PLATFORM_EXIT_ALT
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200172/* \} name SECTION: System support */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000173
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000174/**
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000175 * \name SECTION: mbed TLS feature support
Paul Bakker0a62cd12011-01-21 11:00:08 +0000176 *
177 * This section sets support for features that are or are not needed
178 * within the modules that are enabled.
179 * \{
180 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000181
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000182/**
Paul Bakkerf2561b32014-02-06 15:11:55 +0100183 * \def POLARSSL_TIMING_ALT
184 *
185 * Uncomment to provide your own alternate implementation for hardclock(),
186 * get_timer(), set_alarm() and m_sleep().
187 *
188 * Only works if you have POLARSSL_TIMING_C enabled.
189 *
190 * You will need to provide a header "timing_alt.h" and an implementation at
191 * compile time.
192 */
193//#define POLARSSL_TIMING_ALT
194
195/**
Paul Bakker90995b52013-06-24 19:20:35 +0200196 * \def POLARSSL_XXX_ALT
197 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000198 * Uncomment a macro to let mbed TLS use your alternate core implementation of
Paul Bakker90995b52013-06-24 19:20:35 +0200199 * a symmetric or hash algorithm (e.g. platform specific assembly optimized
200 * implementations). Keep in mind that the function prototypes should remain
201 * the same.
202 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000203 * Example: In case you uncomment POLARSSL_AES_ALT, mbed TLS will no longer
Paul Bakker90995b52013-06-24 19:20:35 +0200204 * provide the "struct aes_context" definition and omit the base function
205 * declarations and implementations. "aes_alt.h" will be included from
206 * "aes.h" to include the new function definitions.
207 *
208 * Uncomment a macro to enable alternate implementation for core algorithm
209 * functions
Paul Bakker90995b52013-06-24 19:20:35 +0200210 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200211//#define POLARSSL_AES_ALT
212//#define POLARSSL_ARC4_ALT
213//#define POLARSSL_BLOWFISH_ALT
214//#define POLARSSL_CAMELLIA_ALT
215//#define POLARSSL_DES_ALT
216//#define POLARSSL_XTEA_ALT
217//#define POLARSSL_MD2_ALT
218//#define POLARSSL_MD4_ALT
219//#define POLARSSL_MD5_ALT
Paul Bakker9f4c1622014-01-22 14:14:26 +0100220//#define POLARSSL_RIPEMD160_ALT
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200221//#define POLARSSL_SHA1_ALT
222//#define POLARSSL_SHA256_ALT
223//#define POLARSSL_SHA512_ALT
Paul Bakker90995b52013-06-24 19:20:35 +0200224
225/**
Paul Bakker15566e42011-04-24 21:19:15 +0000226 * \def POLARSSL_AES_ROM_TABLES
227 *
228 * Store the AES tables in ROM.
229 *
230 * Uncomment this macro to store the AES tables in ROM.
231 *
Paul Bakker15566e42011-04-24 21:19:15 +0000232 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200233//#define POLARSSL_AES_ROM_TABLES
Paul Bakker15566e42011-04-24 21:19:15 +0000234
235/**
Manuel Pégourié-Gonnardf7dc3782013-09-13 14:10:44 +0200236 * \def POLARSSL_CIPHER_MODE_CBC
237 *
238 * Enable Cipher Block Chaining mode (CBC) for symmetric ciphers.
239 */
240#define POLARSSL_CIPHER_MODE_CBC
241
242/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000243 * \def POLARSSL_CIPHER_MODE_CFB
244 *
245 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
246 */
247#define POLARSSL_CIPHER_MODE_CFB
248
249/**
250 * \def POLARSSL_CIPHER_MODE_CTR
251 *
252 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
253 */
254#define POLARSSL_CIPHER_MODE_CTR
255
256/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000257 * \def POLARSSL_CIPHER_NULL_CIPHER
258 *
259 * Enable NULL cipher.
260 * Warning: Only do so when you know what you are doing. This allows for
261 * encryption or channels without any security!
262 *
263 * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable
264 * the following ciphersuites:
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +0100265 * TLS_ECDH_ECDSA_WITH_NULL_SHA
266 * TLS_ECDH_RSA_WITH_NULL_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200267 * TLS_ECDHE_ECDSA_WITH_NULL_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +0100268 * TLS_ECDHE_RSA_WITH_NULL_SHA
Manuel Pégourié-Gonnard225d6aa2013-10-11 19:07:56 +0200269 * TLS_ECDHE_PSK_WITH_NULL_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200270 * TLS_ECDHE_PSK_WITH_NULL_SHA256
271 * TLS_ECDHE_PSK_WITH_NULL_SHA
272 * TLS_DHE_PSK_WITH_NULL_SHA384
273 * TLS_DHE_PSK_WITH_NULL_SHA256
274 * TLS_DHE_PSK_WITH_NULL_SHA
275 * TLS_RSA_WITH_NULL_SHA256
276 * TLS_RSA_WITH_NULL_SHA
277 * TLS_RSA_WITH_NULL_MD5
278 * TLS_RSA_PSK_WITH_NULL_SHA384
279 * TLS_RSA_PSK_WITH_NULL_SHA256
280 * TLS_RSA_PSK_WITH_NULL_SHA
281 * TLS_PSK_WITH_NULL_SHA384
282 * TLS_PSK_WITH_NULL_SHA256
283 * TLS_PSK_WITH_NULL_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000284 *
285 * Uncomment this macro to enable the NULL cipher and ciphersuites
Paul Bakkerfab5c822012-02-06 16:45:10 +0000286 */
Paul Bakker03b6a462014-04-17 16:22:31 +0200287//#define POLARSSL_CIPHER_NULL_CIPHER
Paul Bakkerfab5c822012-02-06 16:45:10 +0000288
289/**
Paul Bakker48e93c82013-08-14 12:21:18 +0200290 * \def POLARSSL_CIPHER_PADDING_XXX
291 *
292 * Uncomment or comment macros to add support for specific padding modes
293 * in the cipher layer with cipher modes that support padding (e.g. CBC)
294 *
295 * If you disable all padding modes, only full blocks can be used with CBC.
296 *
297 * Enable padding modes in the cipher layer.
298 */
299#define POLARSSL_CIPHER_PADDING_PKCS7
300#define POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
301#define POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
302#define POLARSSL_CIPHER_PADDING_ZEROS
303
304/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000305 * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
306 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200307 * Enable weak ciphersuites in SSL / TLS.
Paul Bakkerfab5c822012-02-06 16:45:10 +0000308 * Warning: Only do so when you know what you are doing. This allows for
Paul Bakker9a736322012-11-14 12:39:52 +0000309 * channels with virtually no security at all!
Paul Bakkerfab5c822012-02-06 16:45:10 +0000310 *
311 * This enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000312 * TLS_RSA_WITH_DES_CBC_SHA
313 * TLS_DHE_RSA_WITH_DES_CBC_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000314 *
315 * Uncomment this macro to enable weak ciphersuites
Paul Bakkerfab5c822012-02-06 16:45:10 +0000316 */
Paul Bakker03b6a462014-04-17 16:22:31 +0200317//#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
Paul Bakkerfab5c822012-02-06 16:45:10 +0000318
319/**
Manuel Pégourié-Gonnard01edb102014-06-24 22:42:34 +0200320 * \def POLARSSL_REMOVE_ARC4_CIPHERSUITES
321 *
322 * Remove RC4 ciphersuites by default in SSL / TLS.
323 * This flag removes the ciphersuites based on RC4 from the default list as
324 * returned by ssl_list_ciphersuites(). However, it is still possible to
325 * enable (some of) them with ssl_set_ciphersuites() by including them
326 * explicitly.
327 *
328 * Uncomment this macro to remove RC4 ciphersuites by default.
329 */
330//#define POLARSSL_REMOVE_ARC4_CIPHERSUITES
331
332/**
Paul Bakker5dc6b5f2013-06-29 23:26:34 +0200333 * \def POLARSSL_ECP_XXXX_ENABLED
334 *
335 * Enables specific curves within the Elliptic Curve module.
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200336 * By default all supported curves are enabled.
Paul Bakker5dc6b5f2013-06-29 23:26:34 +0200337 *
338 * Comment macros to disable the curve and functions for it
339 */
340#define POLARSSL_ECP_DP_SECP192R1_ENABLED
341#define POLARSSL_ECP_DP_SECP224R1_ENABLED
342#define POLARSSL_ECP_DP_SECP256R1_ENABLED
343#define POLARSSL_ECP_DP_SECP384R1_ENABLED
344#define POLARSSL_ECP_DP_SECP521R1_ENABLED
Manuel Pégourié-Gonnardea499a72014-01-11 15:58:47 +0100345#define POLARSSL_ECP_DP_SECP192K1_ENABLED
Manuel Pégourié-Gonnard18e3ec92014-01-11 15:22:07 +0100346#define POLARSSL_ECP_DP_SECP224K1_ENABLED
Manuel Pégourié-Gonnardf51c8fc2014-01-10 18:17:18 +0100347#define POLARSSL_ECP_DP_SECP256K1_ENABLED
Manuel Pégourié-Gonnard8195c1a2013-10-07 19:40:41 +0200348#define POLARSSL_ECP_DP_BP256R1_ENABLED
349#define POLARSSL_ECP_DP_BP384R1_ENABLED
350#define POLARSSL_ECP_DP_BP512R1_ENABLED
Manuel Pégourié-Gonnard66153662013-12-03 14:12:26 +0100351//#define POLARSSL_ECP_DP_M221_ENABLED // Not implemented yet!
352#define POLARSSL_ECP_DP_M255_ENABLED
353//#define POLARSSL_ECP_DP_M383_ENABLED // Not implemented yet!
354//#define POLARSSL_ECP_DP_M511_ENABLED // Not implemented yet!
Paul Bakker5dc6b5f2013-06-29 23:26:34 +0200355
356/**
Manuel Pégourié-Gonnardc04c5302013-10-23 16:11:52 +0200357 * \def POLARSSL_ECP_NIST_OPTIM
358 *
359 * Enable specific 'modulo p' routines for each NIST prime.
360 * Depending on the prime and architecture, makes operations 4 to 8 times
361 * faster on the corresponding curve.
362 *
363 * Comment this macro to disable NIST curves optimisation.
364 */
365#define POLARSSL_ECP_NIST_OPTIM
366
367/**
Manuel Pégourié-Gonnard461d4162014-01-06 10:16:28 +0100368 * \def POLARSSL_ECDSA_DETERMINISTIC
369 *
370 * Enable deterministic ECDSA (RFC 6979).
371 * Standard ECDSA is "fragile" in the sense that lack of entropy when signing
372 * may result in a compromise of the long-term signing key. This is avoided by
373 * the deterministic variant.
374 *
Manuel Pégourié-Gonnard7845fc02014-01-27 14:24:03 +0100375 * Requires: POLARSSL_HMAC_DRBG_C
Manuel Pégourié-Gonnard5b1a5732014-01-07 16:46:17 +0100376 *
Manuel Pégourié-Gonnard461d4162014-01-06 10:16:28 +0100377 * Comment this macro to disable deterministic ECDSA.
378 */
379#define POLARSSL_ECDSA_DETERMINISTIC
380
381/**
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200382 * \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED
383 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200384 * Enable the PSK based ciphersuite modes in SSL / TLS.
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200385 *
Paul Bakkere07f41d2013-04-19 09:08:57 +0200386 * This enables the following ciphersuites (if other requisites are
387 * enabled as well):
Paul Bakker45bda902013-04-19 22:28:21 +0200388 * TLS_PSK_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200389 * TLS_PSK_WITH_AES_256_CBC_SHA384
390 * TLS_PSK_WITH_AES_256_CBC_SHA
391 * TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
392 * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
393 * TLS_PSK_WITH_AES_128_GCM_SHA256
394 * TLS_PSK_WITH_AES_128_CBC_SHA256
395 * TLS_PSK_WITH_AES_128_CBC_SHA
396 * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
397 * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
398 * TLS_PSK_WITH_3DES_EDE_CBC_SHA
399 * TLS_PSK_WITH_RC4_128_SHA
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200400 */
401#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
402
403/**
Paul Bakkere07f41d2013-04-19 09:08:57 +0200404 * \def POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
405 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200406 * Enable the DHE-PSK based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200407 *
408 * Requires: POLARSSL_DHM_C
409 *
410 * This enables the following ciphersuites (if other requisites are
411 * enabled as well):
Paul Bakker45bda902013-04-19 22:28:21 +0200412 * TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200413 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
414 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA
415 * TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
416 * TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
417 * TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
418 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
419 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA
420 * TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
421 * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
422 * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
423 * TLS_DHE_PSK_WITH_RC4_128_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200424 */
Paul Bakker48f7a5d2013-04-19 14:30:58 +0200425#define POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
Paul Bakkere07f41d2013-04-19 09:08:57 +0200426
427/**
Manuel Pégourié-Gonnard3ce3bbd2013-10-11 16:53:50 +0200428 * \def POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
429 *
430 * Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS.
431 *
432 * Requires: POLARSSL_ECDH_C
433 *
434 * This enables the following ciphersuites (if other requisites are
435 * enabled as well):
Manuel Pégourié-Gonnard225d6aa2013-10-11 19:07:56 +0200436 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200437 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
Manuel Pégourié-Gonnard225d6aa2013-10-11 19:07:56 +0200438 * TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200439 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
440 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
441 * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
442 * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
443 * TLS_ECDHE_PSK_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard3ce3bbd2013-10-11 16:53:50 +0200444 */
445#define POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
446
447/**
Paul Bakkere07f41d2013-04-19 09:08:57 +0200448 * \def POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
449 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200450 * Enable the RSA-PSK based ciphersuite modes in SSL / TLS.
Manuel Pégourié-Gonnard0fae60b2013-10-14 17:39:48 +0200451 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200452 * Requires: POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200453 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200454 *
455 * This enables the following ciphersuites (if other requisites are
456 * enabled as well):
Paul Bakker45bda902013-04-19 22:28:21 +0200457 * TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200458 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
459 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA
460 * TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
461 * TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
462 * TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
463 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
464 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA
465 * TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
466 * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
467 * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
468 * TLS_RSA_PSK_WITH_RC4_128_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200469 */
Manuel Pégourié-Gonnard0fae60b2013-10-14 17:39:48 +0200470#define POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
Paul Bakkere07f41d2013-04-19 09:08:57 +0200471
472/**
473 * \def POLARSSL_KEY_EXCHANGE_RSA_ENABLED
474 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200475 * Enable the RSA-only based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200476 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200477 * Requires: POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200478 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200479 *
480 * This enables the following ciphersuites (if other requisites are
481 * enabled as well):
Paul Bakkere07f41d2013-04-19 09:08:57 +0200482 * TLS_RSA_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200483 * TLS_RSA_WITH_AES_256_CBC_SHA256
484 * TLS_RSA_WITH_AES_256_CBC_SHA
485 * TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200486 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200487 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
488 * TLS_RSA_WITH_AES_128_GCM_SHA256
489 * TLS_RSA_WITH_AES_128_CBC_SHA256
490 * TLS_RSA_WITH_AES_128_CBC_SHA
491 * TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
492 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
493 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200494 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200495 * TLS_RSA_WITH_RC4_128_SHA
496 * TLS_RSA_WITH_RC4_128_MD5
Paul Bakkere07f41d2013-04-19 09:08:57 +0200497 */
498#define POLARSSL_KEY_EXCHANGE_RSA_ENABLED
499
500/**
501 * \def POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED
502 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200503 * Enable the DHE-RSA based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200504 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200505 * Requires: POLARSSL_DHM_C, POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200506 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200507 *
508 * This enables the following ciphersuites (if other requisites are
509 * enabled as well):
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200510 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200511 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200512 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
513 * TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200514 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200515 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
516 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
517 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
518 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
519 * TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
520 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
521 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200522 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
523 */
524#define POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED
525
526/**
527 * \def POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
528 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200529 * Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200530 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200531 * Requires: POLARSSL_ECDH_C, POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200532 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200533 *
534 * This enables the following ciphersuites (if other requisites are
535 * enabled as well):
Paul Bakkere07f41d2013-04-19 09:08:57 +0200536 * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200537 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
538 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
539 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200540 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200541 * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
542 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
543 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
544 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
545 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
546 * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
547 * TLS_ECDHE_RSA_WITH_RC4_128_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200548 */
549#define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
550
551/**
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200552 * \def POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
553 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200554 * Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS.
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200555 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200556 * Requires: POLARSSL_ECDH_C, POLARSSL_ECDSA_C, POLARSSL_X509_CRT_PARSE_C,
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200557 *
558 * This enables the following ciphersuites (if other requisites are
559 * enabled as well):
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200560 * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
561 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
562 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
563 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
564 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
565 * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
566 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
567 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
568 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
569 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
570 * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
571 * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200572 */
573#define POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
574
575/**
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +0100576 * \def POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
577 *
578 * Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS.
579 *
580 * Requires: POLARSSL_ECDH_C, POLARSSL_X509_CRT_PARSE_C
581 *
582 * This enables the following ciphersuites (if other requisites are
583 * enabled as well):
584 * TLS_ECDH_ECDSA_WITH_RC4_128_SHA
585 * TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
586 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
587 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
588 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
589 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
590 * TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
591 * TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
592 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
593 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
594 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
595 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
596 */
597#define POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
598
599/**
600 * \def POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
601 *
602 * Enable the ECDH-RSA based ciphersuite modes in SSL / TLS.
603 *
604 * Requires: POLARSSL_ECDH_C, POLARSSL_X509_CRT_PARSE_C
605 *
606 * This enables the following ciphersuites (if other requisites are
607 * enabled as well):
608 * TLS_ECDH_RSA_WITH_RC4_128_SHA
609 * TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
610 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
611 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
612 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
613 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
614 * TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
615 * TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
616 * TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
617 * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
618 * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
619 * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
620 */
621#define POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
622
623/**
Manuel Pégourié-Gonnard6fac3512014-03-19 16:39:52 +0100624 * \def POLARSSL_PK_PARSE_EC_EXTENDED
625 *
626 * Enhance support for reading EC keys using variants of SEC1 not allowed by
627 * RFC 5915 and RFC 5480.
628 *
629 * Currently this means parsing the SpecifiedECDomain choice of EC
630 * parameters (only known groups are supported, not arbitrary domains, to
631 * avoid validation issues).
632 *
633 * Disable if you only need to support RFC 5915 + 5480 key formats.
634 */
635#define POLARSSL_PK_PARSE_EC_EXTENDED
636
637/**
Paul Bakkere2ab84f2013-06-29 18:24:32 +0200638 * \def POLARSSL_ERROR_STRERROR_BC
639 *
640 * Make available the backward compatible error_strerror() next to the
641 * current polarssl_strerror().
642 *
Manuel Pégourié-Gonnarddc16aa72014-06-25 12:55:12 +0200643 * For new code, it is recommended to use polarssl_strerror() instead and
Paul Bakker237a8472014-06-25 14:45:24 +0200644 * disable this.
Manuel Pégourié-Gonnarddc16aa72014-06-25 12:55:12 +0200645 *
Paul Bakkere2ab84f2013-06-29 18:24:32 +0200646 * Disable if you run into name conflicts and want to really remove the
647 * error_strerror()
648 */
649#define POLARSSL_ERROR_STRERROR_BC
650
651/**
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100652 * \def POLARSSL_ERROR_STRERROR_DUMMY
653 *
Paul Bakkereba3ccf2013-09-09 15:55:12 +0200654 * Enable a dummy error function to make use of polarssl_strerror() in
Manuel Pégourié-Gonnarddc16aa72014-06-25 12:55:12 +0200655 * third party libraries easier when POLARSSL_ERROR_C is disabled
656 * (no effect when POLARSSL_ERROR_C is enabled).
657 *
658 * You can safely disable this if POLARSSL_ERROR_C is enabled, or if you're
659 * not using polarssl_strerror() or error_strerror() in your application.
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100660 *
661 * Disable if you run into name conflicts and want to really remove the
Paul Bakkereba3ccf2013-09-09 15:55:12 +0200662 * polarssl_strerror()
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100663 */
664#define POLARSSL_ERROR_STRERROR_DUMMY
665
666/**
Paul Bakker15566e42011-04-24 21:19:15 +0000667 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000668 *
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +0200669 * Enable the prime-number generation code.
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200670 *
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +0200671 * Requires: POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000672 */
Paul Bakker15566e42011-04-24 21:19:15 +0000673#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000674
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000675/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000676 * \def POLARSSL_FS_IO
677 *
678 * Enable functions that use the filesystem.
679 */
680#define POLARSSL_FS_IO
681
682/**
Paul Bakker43655f42011-12-15 20:11:16 +0000683 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
684 *
685 * Do not add default entropy sources. These are the platform specific,
686 * hardclock and HAVEGE based poll functions.
687 *
Shuo Chen95a0d112014-04-04 21:04:40 -0700688 * This is useful to have more control over the added entropy sources in an
Paul Bakker43655f42011-12-15 20:11:16 +0000689 * application.
690 *
691 * Uncomment this macro to prevent loading of default entropy functions.
Paul Bakker43655f42011-12-15 20:11:16 +0000692 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200693//#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
Paul Bakker43655f42011-12-15 20:11:16 +0000694
695/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000696 * \def POLARSSL_NO_PLATFORM_ENTROPY
697 *
698 * Do not use built-in platform entropy functions.
699 * This is useful if your platform does not support
700 * standards like the /dev/urandom or Windows CryptoAPI.
701 *
702 * Uncomment this macro to disable the built-in platform entropy functions.
Paul Bakker6083fd22011-12-03 21:45:14 +0000703 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200704//#define POLARSSL_NO_PLATFORM_ENTROPY
Paul Bakker6083fd22011-12-03 21:45:14 +0000705
706/**
Paul Bakker2ceda572014-02-06 15:55:25 +0100707 * \def POLARSSL_ENTROPY_FORCE_SHA256
708 *
709 * Force the entropy accumulator to use a SHA-256 accumulator instead of the
710 * default SHA-512 based one (if both are available).
711 *
712 * Requires: POLARSSL_SHA256_C
713 *
714 * On 32-bit systems SHA-256 can be much faster than SHA-512. Use this option
715 * if you have performance concerns.
716 *
717 * This option is only useful if both POLARSSL_SHA256_C and
718 * POLARSSL_SHA512_C are defined. Otherwise the available hash module is used.
719 */
720//#define POLARSSL_ENTROPY_FORCE_SHA256
721
722/**
Paul Bakker6e339b52013-07-03 13:37:05 +0200723 * \def POLARSSL_MEMORY_DEBUG
724 *
725 * Enable debugging of buffer allocator memory issues. Automatically prints
726 * (to stderr) all (fatal) messages on memory allocation issues. Enables
727 * function for 'debug output' of allocated memory.
728 *
729 * Requires: POLARSSL_MEMORY_BUFFER_ALLOC_C
Paul Bakker6e339b52013-07-03 13:37:05 +0200730 *
731 * Uncomment this macro to let the buffer allocator print out error messages.
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200732 */
733//#define POLARSSL_MEMORY_DEBUG
Paul Bakker6e339b52013-07-03 13:37:05 +0200734
735/**
736 * \def POLARSSL_MEMORY_BACKTRACE
737 *
738 * Include backtrace information with each allocated block.
739 *
740 * Requires: POLARSSL_MEMORY_BUFFER_ALLOC_C
741 * GLIBC-compatible backtrace() an backtrace_symbols() support
742 *
743 * Uncomment this macro to include backtrace information
Paul Bakker6e339b52013-07-03 13:37:05 +0200744 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200745//#define POLARSSL_MEMORY_BACKTRACE
Paul Bakker6e339b52013-07-03 13:37:05 +0200746
747/**
Paul Bakker48377d92013-08-30 12:06:24 +0200748 * \def POLARSSL_PKCS1_V15
749 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200750 * Enable support for PKCS#1 v1.5 encoding.
751 *
Paul Bakker48377d92013-08-30 12:06:24 +0200752 * Requires: POLARSSL_RSA_C
753 *
Paul Bakker48377d92013-08-30 12:06:24 +0200754 * This enables support for PKCS#1 v1.5 operations.
755 */
756#define POLARSSL_PKCS1_V15
757
758/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000759 * \def POLARSSL_PKCS1_V21
760 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200761 * Enable support for PKCS#1 v2.1 encoding.
762 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000763 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
764 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000765 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
766 */
767#define POLARSSL_PKCS1_V21
768
769/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000770 * \def POLARSSL_RSA_NO_CRT
771 *
772 * Do not use the Chinese Remainder Theorem for the RSA private operation.
773 *
774 * Uncomment this macro to disable the use of CRT in RSA.
775 *
Paul Bakker0216cc12011-03-26 13:40:23 +0000776 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200777//#define POLARSSL_RSA_NO_CRT
Paul Bakker15566e42011-04-24 21:19:15 +0000778
779/**
780 * \def POLARSSL_SELF_TEST
781 *
782 * Enable the checkup functions (*_self_test).
783 */
784#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000785
786/**
Manuel Pégourié-Gonnardd056ce02014-10-29 22:29:20 +0100787 * \def POLARSSL_SSL_AEAD_RANDOM_IV
788 *
789 * Generate a random IV rather than using the record sequence number as a
790 * nonce for ciphersuites using and AEAD algorithm (GCM or CCM).
791 *
792 * Using the sequence number is generally recommended.
793 *
794 * Uncomment this macro to always use random IVs with AEAD ciphersuites.
795 */
796//#define POLARSSL_SSL_AEAD_RANDOM_IV
797
798/**
Paul Bakker40865c82013-01-31 17:13:13 +0100799 * \def POLARSSL_SSL_ALL_ALERT_MESSAGES
800 *
801 * Enable sending of alert messages in case of encountered errors as per RFC.
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +0000802 * If you choose not to send the alert messages, mbed TLS can still communicate
Paul Bakker40865c82013-01-31 17:13:13 +0100803 * with other servers, only debugging of failures is harder.
804 *
805 * The advantage of not sending alert messages, is that no information is given
806 * about reasons for failures thus preventing adversaries of gaining intel.
807 *
808 * Enable sending of all alert messages
809 */
810#define POLARSSL_SSL_ALERT_MESSAGES
811
812/**
Paul Bakkerd66f0702013-01-31 16:57:45 +0100813 * \def POLARSSL_SSL_DEBUG_ALL
814 *
815 * Enable the debug messages in SSL module for all issues.
816 * Debug messages have been disabled in some places to prevent timing
817 * attacks due to (unbalanced) debugging function calls.
818 *
819 * If you need all error reporting you should enable this during debugging,
820 * but remove this for production servers that should log as well.
821 *
822 * Uncomment this macro to report all debug messages on errors introducing
823 * a timing side-channel.
824 *
Paul Bakkerd66f0702013-01-31 16:57:45 +0100825 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200826//#define POLARSSL_SSL_DEBUG_ALL
Paul Bakkerd66f0702013-01-31 16:57:45 +0100827
Manuel Pégourié-Gonnard699cafa2014-10-27 13:57:03 +0100828/** \def POLARSSL_SSL_ENCRYPT_THEN_MAC
829 *
830 * Enable support for Encrypt-then-MAC, RFC 7366.
831 *
832 * This allows peers that both support it to use a more robust protection for
833 * ciphersuites using CBC, providing deep resistance against timing attacks
834 * on the padding or underlying cipher.
835 *
836 * This only affects CBC ciphersuites, and is useless if none is defined.
837 *
838 * Requires: POLARSSL_SSL_PROTO_TLS1 or
839 * POLARSSL_SSL_PROTO_TLS1_1 or
840 * POLARSSL_SSL_PROTO_TLS1_2
841 *
842 * Comment this macro to disable support for Encrypt-then-MAC
843 */
844#define POLARSSL_SSL_ENCRYPT_THEN_MAC
845
Manuel Pégourié-Gonnard367381f2014-10-20 18:40:56 +0200846/** \def POLARSSL_SSL_EXTENDED_MASTER_SECRET
847 *
848 * Enable support for Extended Master Secret, aka Session Hash
849 * (draft-ietf-tls-session-hash-02).
850 *
851 * This was introduced as "the proper fix" to the Triple Handshake familiy of
852 * attacks, but it is recommended to always use it (even if you disable
853 * renegotiation), since it actually fixes a more fundamental issue in the
854 * original SSL/TLS design, and has implications beyond Triple Handshake.
855 *
Manuel Pégourié-Gonnard769c6b62014-10-28 14:13:55 +0100856 * Requires: POLARSSL_SSL_PROTO_TLS1 or
857 * POLARSSL_SSL_PROTO_TLS1_1 or
858 * POLARSSL_SSL_PROTO_TLS1_2
859 *
Manuel Pégourié-Gonnard367381f2014-10-20 18:40:56 +0200860 * Comment this macro to disable support for Extended Master Secret.
861 */
862#define POLARSSL_SSL_EXTENDED_MASTER_SECRET
863
Paul Bakkerd66f0702013-01-31 16:57:45 +0100864/**
Manuel Pégourié-Gonnard1cbd39d2014-10-20 13:34:59 +0200865 * \def POLARSSL_SSL_FALLBACK_SCSV
866 *
867 * Enable support for FALLBACK_SCSV (draft-ietf-tls-downgrade-scsv-00).
868 *
869 * For servers, it is recommended to always enable this, unless you support
870 * only one version of TLS, or know for sure that none of your clients
871 * implements a fallback strategy.
872 *
873 * For clients, you only need this if you're using a fallback strategy, which
874 * is not recommended in the first place, unless you absolutely need it to
875 * interoperate with buggy (version-intolerant) servers.
876 *
877 * Comment this macro to disable support for FALLBACK_SCSV
878 */
879#define POLARSSL_SSL_FALLBACK_SCSV
880
881/**
Paul Bakker05ef8352012-05-08 09:17:57 +0000882 * \def POLARSSL_SSL_HW_RECORD_ACCEL
883 *
884 * Enable hooking functions in SSL module for hardware acceleration of
885 * individual records.
886 *
887 * Uncomment this macro to enable hooking functions.
Paul Bakker05ef8352012-05-08 09:17:57 +0000888 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200889//#define POLARSSL_SSL_HW_RECORD_ACCEL
Paul Bakker05ef8352012-05-08 09:17:57 +0000890
891/**
Manuel Pégourié-Gonnardd76314c2015-01-07 12:39:44 +0100892 * \def POLARSSL_SSL_CBC_RECORD_SPLITTING
893 *
894 * Enable 1/n-1 record splitting for CBC mode in SSLv3 and TLS 1.0.
895 *
896 * This is a countermeasure to the BEAST attack, which also minimizes the risk
897 * of interoperability issues compared to sending 0-length records.
898 *
899 * Comment this macro to disable 1/n-1 record splitting.
900 */
901#define POLARSSL_SSL_CBC_RECORD_SPLITTING
902
903/**
Manuel Pégourié-Gonnard03717042014-11-04 19:52:10 +0100904 * \def POLARSSL_SSL_DISABLE_RENEGOTIATION
Manuel Pégourié-Gonnard615e6772014-11-03 08:23:14 +0100905 *
Manuel Pégourié-Gonnard03717042014-11-04 19:52:10 +0100906 * Disable support for TLS renegotiation.
Manuel Pégourié-Gonnard615e6772014-11-03 08:23:14 +0100907 *
908 * The two main uses of renegotiation are (1) refresh keys on long-lived
909 * connections and (2) client authentication after the initial handshake.
910 * If you don't need renegotiation, it's probably better to disable it, since
911 * it has been associated with security issues in the past and is easy to
912 * misuse/misunderstand.
Manuel Pégourié-Gonnard03717042014-11-04 19:52:10 +0100913 *
914 * Warning: in the next stable branch, this switch will be replaced by
915 * POLARSSL_SSL_RENEGOTIATION to enable support for renegotiation.
916 *
917 * Uncomment this to disable support for renegotiation.
Manuel Pégourié-Gonnard615e6772014-11-03 08:23:14 +0100918 */
Manuel Pégourié-Gonnard03717042014-11-04 19:52:10 +0100919//#define POLARSSL_SSL_DISABLE_RENEGOTIATION
Manuel Pégourié-Gonnard615e6772014-11-03 08:23:14 +0100920
921/**
Paul Bakker78a8c712013-03-06 17:01:52 +0100922 * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
923 *
924 * Enable support for receiving and parsing SSLv2 Client Hello messages for the
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200925 * SSL Server module (POLARSSL_SSL_SRV_C).
Paul Bakker78a8c712013-03-06 17:01:52 +0100926 *
927 * Comment this macro to disable support for SSLv2 Client Hello messages.
928 */
929#define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
930
931/**
Manuel Pégourié-Gonnard1a9f2c72013-11-30 18:30:06 +0100932 * \def POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE
933 *
934 * Pick the ciphersuite according to the client's preferences rather than ours
935 * in the SSL Server module (POLARSSL_SSL_SRV_C).
936 *
937 * Uncomment this macro to respect client's ciphersuite order
938 */
939//#define POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE
940
941/**
Paul Bakker05decb22013-08-15 13:33:48 +0200942 * \def POLARSSL_SSL_MAX_FRAGMENT_LENGTH
943 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200944 * Enable support for RFC 6066 max_fragment_length extension in SSL.
Paul Bakker05decb22013-08-15 13:33:48 +0200945 *
946 * Comment this macro to disable support for the max_fragment_length extension
947 */
948#define POLARSSL_SSL_MAX_FRAGMENT_LENGTH
949
950/**
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200951 * \def POLARSSL_SSL_PROTO_SSL3
952 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200953 * Enable support for SSL 3.0.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200954 *
955 * Requires: POLARSSL_MD5_C
956 * POLARSSL_SHA1_C
957 *
958 * Comment this macro to disable support for SSL 3.0
959 */
960#define POLARSSL_SSL_PROTO_SSL3
961
962/**
963 * \def POLARSSL_SSL_PROTO_TLS1
964 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200965 * Enable support for TLS 1.0.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200966 *
967 * Requires: POLARSSL_MD5_C
968 * POLARSSL_SHA1_C
969 *
970 * Comment this macro to disable support for TLS 1.0
971 */
972#define POLARSSL_SSL_PROTO_TLS1
973
974/**
975 * \def POLARSSL_SSL_PROTO_TLS1_1
976 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200977 * Enable support for TLS 1.1.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200978 *
979 * Requires: POLARSSL_MD5_C
980 * POLARSSL_SHA1_C
981 *
982 * Comment this macro to disable support for TLS 1.1
983 */
984#define POLARSSL_SSL_PROTO_TLS1_1
985
986/**
987 * \def POLARSSL_SSL_PROTO_TLS1_2
988 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200989 * Enable support for TLS 1.2.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200990 *
Manuel Pégourié-Gonnard7c3291e2013-10-27 14:29:51 +0100991 * Requires: POLARSSL_SHA1_C or POLARSSL_SHA256_C or POLARSSL_SHA512_C
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200992 * (Depends on ciphersuites)
993 *
994 * Comment this macro to disable support for TLS 1.2
995 */
996#define POLARSSL_SSL_PROTO_TLS1_2
997
998/**
Manuel Pégourié-Gonnard7e250d42014-04-04 16:08:41 +0200999 * \def POLARSSL_SSL_ALPN
1000 *
Manuel Pégourié-Gonnard6b298e62014-11-20 18:28:50 +01001001 * Enable support for RFC 7301 Application Layer Protocol Negotiation.
Manuel Pégourié-Gonnard7e250d42014-04-04 16:08:41 +02001002 *
Paul Bakker27e36d32014-04-08 12:33:37 +02001003 * Comment this macro to disable support for ALPN.
Manuel Pégourié-Gonnard7e250d42014-04-04 16:08:41 +02001004 */
Paul Bakker27e36d32014-04-08 12:33:37 +02001005#define POLARSSL_SSL_ALPN
Manuel Pégourié-Gonnard7e250d42014-04-04 16:08:41 +02001006
1007/**
Paul Bakkera503a632013-08-14 13:48:06 +02001008 * \def POLARSSL_SSL_SESSION_TICKETS
1009 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001010 * Enable support for RFC 5077 session tickets in SSL.
Paul Bakkera503a632013-08-14 13:48:06 +02001011 *
1012 * Requires: POLARSSL_AES_C
1013 * POLARSSL_SHA256_C
Manuel Pégourié-Gonnard92cb1d32013-09-13 16:24:20 +02001014 * POLARSSL_CIPHER_MODE_CBC
Paul Bakkera503a632013-08-14 13:48:06 +02001015 *
1016 * Comment this macro to disable support for SSL session tickets
1017 */
1018#define POLARSSL_SSL_SESSION_TICKETS
1019
1020/**
Paul Bakker0be444a2013-08-27 21:55:01 +02001021 * \def POLARSSL_SSL_SERVER_NAME_INDICATION
1022 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001023 * Enable support for RFC 6066 server name indication (SNI) in SSL.
Paul Bakker0be444a2013-08-27 21:55:01 +02001024 *
Manuel Pégourié-Gonnardbbbb3cf2015-01-28 16:44:37 +00001025 * Requires: POLARSSL_X509_CRT_PARSE_C
1026 *
Paul Bakker0be444a2013-08-27 21:55:01 +02001027 * Comment this macro to disable support for server name indication in SSL
1028 */
1029#define POLARSSL_SSL_SERVER_NAME_INDICATION
1030
1031/**
Paul Bakker1f2bc622013-08-15 13:45:55 +02001032 * \def POLARSSL_SSL_TRUNCATED_HMAC
1033 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001034 * Enable support for RFC 6066 truncated HMAC in SSL.
Paul Bakker1f2bc622013-08-15 13:45:55 +02001035 *
1036 * Comment this macro to disable support for truncated HMAC in SSL
1037 */
1038#define POLARSSL_SSL_TRUNCATED_HMAC
1039
1040/**
Manuel Pégourié-Gonnardde053902014-02-04 13:58:39 +01001041 * \def POLARSSL_SSL_SET_CURVES
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +01001042 *
Manuel Pégourié-Gonnardde053902014-02-04 13:58:39 +01001043 * Enable ssl_set_curves().
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +01001044 *
1045 * This is disabled by default since it breaks binary compatibility with the
1046 * 1.3.x line. If you choose to enable it, you will need to rebuild your
1047 * application against the new header files, relinking will not be enough.
1048 * It will be enabled by default, or no longer an option, in the 1.4 branch.
1049 *
Manuel Pégourié-Gonnardde053902014-02-04 13:58:39 +01001050 * Uncomment to make ssl_set_curves() available.
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +01001051 */
Manuel Pégourié-Gonnard79265702014-02-06 10:23:14 +01001052//#define POLARSSL_SSL_SET_CURVES
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +01001053
1054/**
Paul Bakker2466d932013-09-28 14:40:38 +02001055 * \def POLARSSL_THREADING_ALT
1056 *
1057 * Provide your own alternate threading implementation.
1058 *
1059 * Requires: POLARSSL_THREADING_C
1060 *
1061 * Uncomment this to allow your own alternate threading implementation.
Paul Bakker2466d932013-09-28 14:40:38 +02001062 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001063//#define POLARSSL_THREADING_ALT
Paul Bakker2466d932013-09-28 14:40:38 +02001064
1065/**
Paul Bakker2466d932013-09-28 14:40:38 +02001066 * \def POLARSSL_THREADING_PTHREAD
1067 *
1068 * Enable the pthread wrapper layer for the threading layer.
1069 *
1070 * Requires: POLARSSL_THREADING_C
1071 *
1072 * Uncomment this to enable pthread mutexes.
Paul Bakker2466d932013-09-28 14:40:38 +02001073 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001074//#define POLARSSL_THREADING_PTHREAD
Paul Bakker2466d932013-09-28 14:40:38 +02001075
1076/**
Paul Bakker0f90d7d2014-04-30 11:49:44 +02001077 * \def POLARSSL_VERSION_FEATURES
1078 *
1079 * Allow run-time checking of compile-time enabled features. Thus allowing users
1080 * to check at run-time if the library is for instance compiled with threading
1081 * support via version_check_feature().
1082 *
1083 * Requires: POLARSSL_VERSION_C
1084 *
1085 * Comment this to disable run-time checking and save ROM space
1086 */
1087#define POLARSSL_VERSION_FEATURES
1088
1089/**
Paul Bakkerc27c4e22013-09-23 15:01:36 +02001090 * \def POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3
1091 *
1092 * If set, the X509 parser will not break-off when parsing an X509 certificate
1093 * and encountering an extension in a v1 or v2 certificate.
1094 *
1095 * Uncomment to prevent an error.
Paul Bakkerc27c4e22013-09-23 15:01:36 +02001096 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001097//#define POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3
Paul Bakkerc27c4e22013-09-23 15:01:36 +02001098
1099/**
Paul Bakker5c721f92011-07-27 16:51:09 +00001100 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
1101 *
1102 * If set, the X509 parser will not break-off when parsing an X509 certificate
1103 * and encountering an unknown critical extension.
1104 *
1105 * Uncomment to prevent an error.
Paul Bakker5c721f92011-07-27 16:51:09 +00001106 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001107//#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
Paul Bakker2770fbd2012-07-03 13:30:23 +00001108
1109/**
Manuel Pégourié-Gonnard603116c2014-04-09 09:50:03 +02001110 * \def POLARSSL_X509_CHECK_KEY_USAGE
1111 *
1112 * Enable verification of the keyUsage extension (CA and leaf certificates).
1113 *
1114 * Disabling this avoids problems with mis-issued and/or misused
1115 * (intermediate) CA and leaf certificates.
1116 *
1117 * \warning Depending on your PKI use, disabling this can be a security risk!
1118 *
1119 * Comment to skip keyUsage checking for both CA and leaf certificates.
1120 */
1121#define POLARSSL_X509_CHECK_KEY_USAGE
1122
1123/**
Manuel Pégourié-Gonnard7afb8a02014-04-10 17:53:56 +02001124 * \def POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE
1125 *
1126 * Enable verification of the extendedKeyUsage extension (leaf certificates).
1127 *
1128 * Disabling this avoids problems with mis-issued and/or misused certificates.
1129 *
1130 * \warning Depending on your PKI use, disabling this can be a security risk!
1131 *
1132 * Comment to skip extendedKeyUsage checking for certificates.
1133 */
1134#define POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE
1135
1136/**
Manuel Pégourié-Gonnardd1539b12014-06-06 16:42:37 +02001137 * \def POLARSSL_X509_RSASSA_PSS_SUPPORT
1138 *
1139 * Enable parsing and verification of X.509 certificates, CRLs and CSRS
1140 * signed with RSASSA-PSS (aka PKCS#1 v2.1).
1141 *
1142 * Comment this macro to disallow using RSASSA-PSS in certificates.
1143 */
1144#define POLARSSL_X509_RSASSA_PSS_SUPPORT
1145
1146/**
Paul Bakker2770fbd2012-07-03 13:30:23 +00001147 * \def POLARSSL_ZLIB_SUPPORT
1148 *
1149 * If set, the SSL/TLS module uses ZLIB to support compression and
1150 * decompression of packet data.
1151 *
Manuel Pégourié-Gonnardbb4dd372014-03-11 10:30:38 +01001152 * \warning TLS-level compression MAY REDUCE SECURITY! See for example the
1153 * CRIME attack. Before enabling this option, you should examine with care if
1154 * CRIME or similar exploits may be a applicable to your use case.
1155 *
Paul Bakker2770fbd2012-07-03 13:30:23 +00001156 * Used in: library/ssl_tls.c
1157 * library/ssl_cli.c
1158 * library/ssl_srv.c
1159 *
1160 * This feature requires zlib library and headers to be present.
1161 *
1162 * Uncomment to enable use of ZLIB
Paul Bakker2770fbd2012-07-03 13:30:23 +00001163 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001164//#define POLARSSL_ZLIB_SUPPORT
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00001165/* \} name SECTION: mbed TLS feature support */
Paul Bakker0a62cd12011-01-21 11:00:08 +00001166
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001167/**
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00001168 * \name SECTION: mbed TLS modules
Paul Bakker0a62cd12011-01-21 11:00:08 +00001169 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00001170 * This section enables or disables entire modules in mbed TLS
Paul Bakker0a62cd12011-01-21 11:00:08 +00001171 * \{
1172 */
Paul Bakker5121ce52009-01-03 21:22:43 +00001173
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001174/**
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +01001175 * \def POLARSSL_AESNI_C
1176 *
1177 * Enable AES-NI support on x86-64.
1178 *
1179 * Module: library/aesni.c
1180 * Caller: library/aes.c
1181 *
1182 * Requires: POLARSSL_HAVE_ASM
1183 *
1184 * This modules adds support for the AES-NI instructions on x86-64
1185 */
1186#define POLARSSL_AESNI_C
1187
1188/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001189 * \def POLARSSL_AES_C
1190 *
1191 * Enable the AES block cipher.
1192 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001193 * Module: library/aes.c
1194 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +00001195 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +00001196 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001197 *
Paul Bakker645ce3a2012-10-31 12:32:41 +00001198 * This module enables the following ciphersuites (if other requisites are
1199 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001200 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
1201 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
1202 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
1203 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
1204 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
1205 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
1206 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
1207 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
1208 * TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
1209 * TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
1210 * TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
1211 * TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001212 * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
1213 * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
1214 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
1215 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
1216 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Paul Bakker645ce3a2012-10-31 12:32:41 +00001217 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001218 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +01001219 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001220 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
1221 * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
1222 * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
1223 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
1224 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
1225 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
1226 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
1227 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
1228 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
1229 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
1230 * TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
1231 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
1232 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
1233 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
1234 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA
1235 * TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
1236 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
1237 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
1238 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
1239 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA
1240 * TLS_RSA_WITH_AES_256_GCM_SHA384
1241 * TLS_RSA_WITH_AES_256_CBC_SHA256
1242 * TLS_RSA_WITH_AES_256_CBC_SHA
1243 * TLS_RSA_WITH_AES_128_GCM_SHA256
1244 * TLS_RSA_WITH_AES_128_CBC_SHA256
1245 * TLS_RSA_WITH_AES_128_CBC_SHA
1246 * TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
1247 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
1248 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA
1249 * TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
1250 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
1251 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA
1252 * TLS_PSK_WITH_AES_256_GCM_SHA384
1253 * TLS_PSK_WITH_AES_256_CBC_SHA384
Paul Bakkerd4a56ec2013-04-16 18:05:29 +02001254 * TLS_PSK_WITH_AES_256_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001255 * TLS_PSK_WITH_AES_128_GCM_SHA256
1256 * TLS_PSK_WITH_AES_128_CBC_SHA256
1257 * TLS_PSK_WITH_AES_128_CBC_SHA
Paul Bakker6deb37e2013-02-19 13:17:08 +01001258 *
Paul Bakkercff68422013-09-15 20:43:33 +02001259 * PEM_PARSE uses AES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +00001260 */
Paul Bakker40e46942009-01-03 21:51:57 +00001261#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001262
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001263/**
1264 * \def POLARSSL_ARC4_C
1265 *
1266 * Enable the ARCFOUR stream cipher.
1267 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001268 * Module: library/arc4.c
1269 * Caller: library/ssl_tls.c
1270 *
Paul Bakker41c83d32013-03-20 14:39:14 +01001271 * This module enables the following ciphersuites (if other requisites are
1272 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001273 * TLS_ECDH_ECDSA_WITH_RC4_128_SHA
1274 * TLS_ECDH_RSA_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001275 * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +01001276 * TLS_ECDHE_RSA_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001277 * TLS_ECDHE_PSK_WITH_RC4_128_SHA
1278 * TLS_DHE_PSK_WITH_RC4_128_SHA
1279 * TLS_RSA_WITH_RC4_128_SHA
1280 * TLS_RSA_WITH_RC4_128_MD5
1281 * TLS_RSA_PSK_WITH_RC4_128_SHA
Paul Bakkerd4a56ec2013-04-16 18:05:29 +02001282 * TLS_PSK_WITH_RC4_128_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +00001283 */
Paul Bakker40e46942009-01-03 21:51:57 +00001284#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001285
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001286/**
Paul Bakkerefc30292011-11-10 14:43:23 +00001287 * \def POLARSSL_ASN1_PARSE_C
1288 *
1289 * Enable the generic ASN1 parser.
1290 *
1291 * Module: library/asn1.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001292 * Caller: library/x509.c
1293 * library/dhm.c
1294 * library/pkcs12.c
1295 * library/pkcs5.c
1296 * library/pkparse.c
Paul Bakkerefc30292011-11-10 14:43:23 +00001297 */
1298#define POLARSSL_ASN1_PARSE_C
1299
1300/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001301 * \def POLARSSL_ASN1_WRITE_C
1302 *
1303 * Enable the generic ASN1 writer.
1304 *
1305 * Module: library/asn1write.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001306 * Caller: library/ecdsa.c
1307 * library/pkwrite.c
1308 * library/x509_create.c
1309 * library/x509write_crt.c
1310 * library/x509write_csr.c
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001311 */
1312#define POLARSSL_ASN1_WRITE_C
1313
1314/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001315 * \def POLARSSL_BASE64_C
1316 *
1317 * Enable the Base64 module.
1318 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001319 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +00001320 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001321 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001322 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +00001323 */
Paul Bakker40e46942009-01-03 21:51:57 +00001324#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001325
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001326/**
1327 * \def POLARSSL_BIGNUM_C
1328 *
Paul Bakker9a736322012-11-14 12:39:52 +00001329 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001330 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001331 * Module: library/bignum.c
1332 * Caller: library/dhm.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001333 * library/ecp.c
Manuel Pégourié-Gonnardbf319772014-06-25 13:00:17 +02001334 * library/ecdsa.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001335 * library/rsa.c
1336 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001337 *
Manuel Pégourié-Gonnardbf319772014-06-25 13:00:17 +02001338 * This module is required for RSA, DHM and ECC (ECDH, ECDSA) support.
Paul Bakker5121ce52009-01-03 21:22:43 +00001339 */
Paul Bakker40e46942009-01-03 21:51:57 +00001340#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001341
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001342/**
Paul Bakkera9379c02012-07-04 11:02:11 +00001343 * \def POLARSSL_BLOWFISH_C
1344 *
1345 * Enable the Blowfish block cipher.
1346 *
1347 * Module: library/blowfish.c
1348 */
1349#define POLARSSL_BLOWFISH_C
1350
1351/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001352 * \def POLARSSL_CAMELLIA_C
1353 *
1354 * Enable the Camellia block cipher.
1355 *
Paul Bakker38119b12009-01-10 23:31:23 +00001356 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +00001357 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +00001358 *
Paul Bakker645ce3a2012-10-31 12:32:41 +00001359 * This module enables the following ciphersuites (if other requisites are
1360 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001361 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
1362 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
1363 * TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
1364 * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
1365 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
1366 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
1367 * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
1368 * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001369 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
1370 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
1371 * TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
1372 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
1373 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
Paul Bakker645ce3a2012-10-31 12:32:41 +00001374 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001375 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
1376 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
1377 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
1378 * TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
1379 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
1380 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
1381 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
1382 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
1383 * TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
1384 * TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
1385 * TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
1386 * TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
1387 * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
1388 * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
1389 * TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
1390 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
1391 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
1392 * TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
1393 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
1394 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
1395 * TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
1396 * TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
1397 * TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
1398 * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
1399 * TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
1400 * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
1401 * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
1402 * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
Paul Bakker38119b12009-01-10 23:31:23 +00001403 */
1404#define POLARSSL_CAMELLIA_C
1405
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001406/**
Paul Bakker64a96ea2014-05-22 15:13:02 +02001407 * \def POLARSSL_CCM_C
Manuel Pégourié-Gonnarda6916fa2014-05-02 15:17:29 +02001408 *
1409 * Enable the Counter with CBC-MAC (CCM) mode for 128-bit block cipher.
1410 *
1411 * Module: library/ccm.c
1412 *
1413 * Requires: POLARSSL_AES_C or POLARSSL_CAMELLIA_C
1414 *
1415 * This module enables the AES-CCM ciphersuites, if other requisites are
1416 * enabled as well.
1417 */
1418#define POLARSSL_CCM_C
1419
1420/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001421 * \def POLARSSL_CERTS_C
1422 *
1423 * Enable the test certificates.
1424 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001425 * Module: library/certs.c
1426 * Caller:
1427 *
Manuel Pégourié-Gonnard18dc0e22013-10-27 14:35:02 +01001428 * Requires: POLARSSL_PEM_PARSE_C
1429 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001430 * This module is used for testing (ssl_client/server).
1431 */
Paul Bakker40e46942009-01-03 21:51:57 +00001432#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001433
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001434/**
1435 * \def POLARSSL_CIPHER_C
1436 *
1437 * Enable the generic cipher layer.
1438 *
Paul Bakker8123e9d2011-01-06 15:37:30 +00001439 * Module: library/cipher.c
Paul Bakker04784f52013-08-19 13:30:57 +02001440 * Caller: library/ssl_tls.c
Paul Bakker8123e9d2011-01-06 15:37:30 +00001441 *
1442 * Uncomment to enable generic cipher wrappers.
1443 */
1444#define POLARSSL_CIPHER_C
1445
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001446/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +00001447 * \def POLARSSL_CTR_DRBG_C
1448 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001449 * Enable the CTR_DRBG AES-256-based random generator.
Paul Bakker0e04d0e2011-11-27 14:46:59 +00001450 *
1451 * Module: library/ctr_drbg.c
1452 * Caller:
1453 *
Paul Bakker6083fd22011-12-03 21:45:14 +00001454 * Requires: POLARSSL_AES_C
1455 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +00001456 * This module provides the CTR_DRBG AES-256 random number generator.
1457 */
1458#define POLARSSL_CTR_DRBG_C
1459
1460/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001461 * \def POLARSSL_DEBUG_C
1462 *
1463 * Enable the debug functions.
1464 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001465 * Module: library/debug.c
1466 * Caller: library/ssl_cli.c
1467 * library/ssl_srv.c
1468 * library/ssl_tls.c
1469 *
1470 * This module provides debugging functions.
1471 */
Paul Bakker40e46942009-01-03 21:51:57 +00001472#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001473
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001474/**
1475 * \def POLARSSL_DES_C
1476 *
1477 * Enable the DES block cipher.
1478 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001479 * Module: library/des.c
Paul Bakker6deb37e2013-02-19 13:17:08 +01001480 * Caller: library/pem.c
1481 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001482 *
Paul Bakker645ce3a2012-10-31 12:32:41 +00001483 * This module enables the following ciphersuites (if other requisites are
1484 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001485 * TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
1486 * TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001487 * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +01001488 * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001489 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
1490 * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
1491 * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
1492 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
1493 * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
Paul Bakkerd4a56ec2013-04-16 18:05:29 +02001494 * TLS_PSK_WITH_3DES_EDE_CBC_SHA
Paul Bakker6deb37e2013-02-19 13:17:08 +01001495 *
Paul Bakkercff68422013-09-15 20:43:33 +02001496 * PEM_PARSE uses DES/3DES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +00001497 */
Paul Bakker40e46942009-01-03 21:51:57 +00001498#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001499
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001500/**
1501 * \def POLARSSL_DHM_C
1502 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001503 * Enable the Diffie-Hellman-Merkle module.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001504 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001505 * Module: library/dhm.c
1506 * Caller: library/ssl_cli.c
1507 * library/ssl_srv.c
1508 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001509 * This module is used by the following key exchanges:
1510 * DHE-RSA, DHE-PSK
Paul Bakker5121ce52009-01-03 21:22:43 +00001511 */
Paul Bakker40e46942009-01-03 21:51:57 +00001512#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001513
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001514/**
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001515 * \def POLARSSL_ECDH_C
1516 *
1517 * Enable the elliptic curve Diffie-Hellman library.
1518 *
1519 * Module: library/ecdh.c
Paul Bakker41c83d32013-03-20 14:39:14 +01001520 * Caller: library/ssl_cli.c
1521 * library/ssl_srv.c
1522 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001523 * This module is used by the following key exchanges:
1524 * ECDHE-ECDSA, ECDHE-RSA, DHE-PSK
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001525 *
1526 * Requires: POLARSSL_ECP_C
1527 */
1528#define POLARSSL_ECDH_C
1529
1530/**
1531 * \def POLARSSL_ECDSA_C
1532 *
1533 * Enable the elliptic curve DSA library.
1534 *
1535 * Module: library/ecdsa.c
1536 * Caller:
1537 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001538 * This module is used by the following key exchanges:
1539 * ECDHE-ECDSA
1540 *
Manuel Pégourié-Gonnard4846f5e2013-08-08 14:36:15 +02001541 * Requires: POLARSSL_ECP_C, POLARSSL_ASN1_WRITE_C, POLARSSL_ASN1_PARSE_C
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001542 */
1543#define POLARSSL_ECDSA_C
1544
1545/**
1546 * \def POLARSSL_ECP_C
1547 *
1548 * Enable the elliptic curve over GF(p) library.
1549 *
1550 * Module: library/ecp.c
1551 * Caller: library/ecdh.c
1552 * library/ecdsa.c
1553 *
Manuel Pégourié-Gonnardb8012fc2013-10-10 15:40:49 +02001554 * Requires: POLARSSL_BIGNUM_C and at least one POLARSSL_ECP_DP_XXX_ENABLED
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001555 */
1556#define POLARSSL_ECP_C
1557
1558/**
Paul Bakker6083fd22011-12-03 21:45:14 +00001559 * \def POLARSSL_ENTROPY_C
1560 *
1561 * Enable the platform-specific entropy code.
1562 *
1563 * Module: library/entropy.c
1564 * Caller:
1565 *
Paul Bakker2ceda572014-02-06 15:55:25 +01001566 * Requires: POLARSSL_SHA512_C or POLARSSL_SHA256_C
Paul Bakker6083fd22011-12-03 21:45:14 +00001567 *
1568 * This module provides a generic entropy pool
1569 */
1570#define POLARSSL_ENTROPY_C
1571
1572/**
Paul Bakker9d781402011-05-09 16:17:09 +00001573 * \def POLARSSL_ERROR_C
1574 *
1575 * Enable error code to error string conversion.
1576 *
1577 * Module: library/error.c
1578 * Caller:
1579 *
Shuo Chen95a0d112014-04-04 21:04:40 -07001580 * This module enables polarssl_strerror().
Paul Bakker9d781402011-05-09 16:17:09 +00001581 */
1582#define POLARSSL_ERROR_C
1583
1584/**
Paul Bakker89e80c92012-03-20 13:50:09 +00001585 * \def POLARSSL_GCM_C
1586 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001587 * Enable the Galois/Counter Mode (GCM) for AES.
Paul Bakker89e80c92012-03-20 13:50:09 +00001588 *
1589 * Module: library/gcm.c
1590 *
Manuel Pégourié-Gonnard7bd8a992013-10-24 13:39:39 +02001591 * Requires: POLARSSL_AES_C or POLARSSL_CAMELLIA_C
Paul Bakker645ce3a2012-10-31 12:32:41 +00001592 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001593 * This module enables the AES-GCM and CAMELLIA-GCM ciphersuites, if other
1594 * requisites are enabled as well.
Paul Bakker89e80c92012-03-20 13:50:09 +00001595 */
1596#define POLARSSL_GCM_C
1597
1598/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001599 * \def POLARSSL_HAVEGE_C
1600 *
1601 * Enable the HAVEGE random generator.
1602 *
Paul Bakker2a844242013-06-24 13:01:53 +02001603 * Warning: the HAVEGE random generator is not suitable for virtualized
1604 * environments
1605 *
1606 * Warning: the HAVEGE random generator is dependent on timing and specific
1607 * processor traits. It is therefore not advised to use HAVEGE as
1608 * your applications primary random generator or primary entropy pool
1609 * input. As a secondary input to your entropy pool, it IS able add
1610 * the (limited) extra entropy it provides.
1611 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001612 * Module: library/havege.c
1613 * Caller:
1614 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001615 * Requires: POLARSSL_TIMING_C
1616 *
Paul Bakker2a844242013-06-24 13:01:53 +02001617 * Uncomment to enable the HAVEGE random generator.
Paul Bakker2a844242013-06-24 13:01:53 +02001618 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001619//#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001620
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001621/**
Manuel Pégourié-Gonnard490bdf32014-01-27 14:03:10 +01001622 * \def POLARSSL_HMAC_DRBG_C
1623 *
1624 * Enable the HMAC_DRBG random generator.
1625 *
1626 * Module: library/hmac_drbg.c
1627 * Caller:
1628 *
1629 * Requires: POLARSSL_MD_C
1630 *
1631 * Uncomment to enable the HMAC_DRBG random number geerator.
1632 */
1633#define POLARSSL_HMAC_DRBG_C
1634
1635/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001636 * \def POLARSSL_MD_C
1637 *
1638 * Enable the generic message digest layer.
1639 *
Paul Bakker17373852011-01-06 14:20:01 +00001640 * Module: library/md.c
1641 * Caller:
1642 *
1643 * Uncomment to enable generic message digest wrappers.
1644 */
1645#define POLARSSL_MD_C
1646
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001647/**
1648 * \def POLARSSL_MD2_C
1649 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001650 * Enable the MD2 hash algorithm.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001651 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001652 * Module: library/md2.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001653 * Caller:
Paul Bakker5121ce52009-01-03 21:22:43 +00001654 *
1655 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
Paul Bakker6506aff2009-07-28 20:52:02 +00001656 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001657//#define POLARSSL_MD2_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001658
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001659/**
1660 * \def POLARSSL_MD4_C
1661 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001662 * Enable the MD4 hash algorithm.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001663 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001664 * Module: library/md4.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001665 * Caller:
Paul Bakker5121ce52009-01-03 21:22:43 +00001666 *
1667 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
Paul Bakker6506aff2009-07-28 20:52:02 +00001668 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001669//#define POLARSSL_MD4_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001670
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001671/**
1672 * \def POLARSSL_MD5_C
1673 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001674 * Enable the MD5 hash algorithm.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001675 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001676 * Module: library/md5.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001677 * Caller: library/md.c
1678 * library/pem.c
Paul Bakker6deb37e2013-02-19 13:17:08 +01001679 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001680 *
1681 * This module is required for SSL/TLS and X.509.
Paul Bakkercff68422013-09-15 20:43:33 +02001682 * PEM_PARSE uses MD5 for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +00001683 */
Paul Bakker40e46942009-01-03 21:51:57 +00001684#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001685
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001686/**
Paul Bakker6e339b52013-07-03 13:37:05 +02001687 * \def POLARSSL_MEMORY_C
Paul Bakkerdefc0ca2014-02-04 17:30:24 +01001688 * Deprecated since 1.3.5. Please use POLARSSL_PLATFORM_MEMORY instead.
Manuel Pégourié-Gonnard0a155b82015-01-23 17:28:27 +00001689 * Depends on: POLARSSL_PLATFORM_C
Paul Bakker6e339b52013-07-03 13:37:05 +02001690 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001691//#define POLARSSL_MEMORY_C
Paul Bakker6e339b52013-07-03 13:37:05 +02001692
1693/**
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001694 * \def POLARSSL_MEMORY_BUFFER_ALLOC_C
1695 *
1696 * Enable the buffer allocator implementation that makes use of a (stack)
1697 * based buffer to 'allocate' dynamic memory. (replaces malloc() and free()
1698 * calls)
Paul Bakker6e339b52013-07-03 13:37:05 +02001699 *
1700 * Module: library/memory_buffer_alloc.c
1701 *
Paul Bakkerdefc0ca2014-02-04 17:30:24 +01001702 * Requires: POLARSSL_PLATFORM_C
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00001703 * POLARSSL_PLATFORM_MEMORY (to use it within mbed TLS)
Paul Bakker6e339b52013-07-03 13:37:05 +02001704 *
1705 * Enable this module to enable the buffer memory allocator.
Paul Bakker6e339b52013-07-03 13:37:05 +02001706 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001707//#define POLARSSL_MEMORY_BUFFER_ALLOC_C
Paul Bakker6e339b52013-07-03 13:37:05 +02001708
1709/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001710 * \def POLARSSL_NET_C
1711 *
1712 * Enable the TCP/IP networking routines.
1713 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001714 * Module: library/net.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001715 *
1716 * This module provides TCP/IP networking routines.
1717 */
Paul Bakker40e46942009-01-03 21:51:57 +00001718#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001719
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001720/**
Paul Bakkerc70b9822013-04-07 22:00:46 +02001721 * \def POLARSSL_OID_C
1722 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001723 * Enable the OID database.
Paul Bakkerc70b9822013-04-07 22:00:46 +02001724 *
1725 * Module: library/oid.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001726 * Caller: library/asn1write.c
1727 * library/pkcs5.c
1728 * library/pkparse.c
1729 * library/pkwrite.c
1730 * library/rsa.c
1731 * library/x509.c
1732 * library/x509_create.c
1733 * library/x509_crl.c
1734 * library/x509_crt.c
1735 * library/x509_csr.c
1736 * library/x509write_crt.c
1737 * library/x509write_csr.c
Paul Bakkerc70b9822013-04-07 22:00:46 +02001738 *
1739 * This modules translates between OIDs and internal values.
1740 */
1741#define POLARSSL_OID_C
1742
1743/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001744 * \def POLARSSL_PADLOCK_C
1745 *
1746 * Enable VIA Padlock support on x86.
1747 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001748 * Module: library/padlock.c
1749 * Caller: library/aes.c
1750 *
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +01001751 * Requires: POLARSSL_HAVE_ASM
1752 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001753 * This modules adds support for the VIA PadLock on x86.
1754 */
Paul Bakker40e46942009-01-03 21:51:57 +00001755#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001756
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001757/**
Paul Bakkerf518b162012-08-23 13:03:18 +00001758 * \def POLARSSL_PBKDF2_C
1759 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001760 * Enable PKCS#5 PBKDF2 key derivation function.
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001761 * DEPRECATED: Use POLARSSL_PKCS5_C instead
Paul Bakkerf518b162012-08-23 13:03:18 +00001762 *
1763 * Module: library/pbkdf2.c
1764 *
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001765 * Requires: POLARSSL_PKCS5_C
Paul Bakkerf518b162012-08-23 13:03:18 +00001766 *
1767 * This module adds support for the PKCS#5 PBKDF2 key derivation function.
Paul Bakkerf518b162012-08-23 13:03:18 +00001768 */
Paul Bakker370e90c2013-04-08 15:19:43 +02001769#define POLARSSL_PBKDF2_C
Paul Bakkerf518b162012-08-23 13:03:18 +00001770
1771/**
Paul Bakkercff68422013-09-15 20:43:33 +02001772 * \def POLARSSL_PEM_PARSE_C
Paul Bakker96743fc2011-02-12 14:30:57 +00001773 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001774 * Enable PEM decoding / parsing.
Paul Bakker96743fc2011-02-12 14:30:57 +00001775 *
1776 * Module: library/pem.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001777 * Caller: library/dhm.c
Paul Bakkercff68422013-09-15 20:43:33 +02001778 * library/pkparse.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001779 * library/x509_crl.c
1780 * library/x509_crt.c
1781 * library/x509_csr.c
Paul Bakker96743fc2011-02-12 14:30:57 +00001782 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001783 * Requires: POLARSSL_BASE64_C
1784 *
Paul Bakkercff68422013-09-15 20:43:33 +02001785 * This modules adds support for decoding / parsing PEM files.
Paul Bakker96743fc2011-02-12 14:30:57 +00001786 */
Paul Bakkercff68422013-09-15 20:43:33 +02001787#define POLARSSL_PEM_PARSE_C
1788
1789/**
1790 * \def POLARSSL_PEM_WRITE_C
1791 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001792 * Enable PEM encoding / writing.
Paul Bakkercff68422013-09-15 20:43:33 +02001793 *
1794 * Module: library/pem.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001795 * Caller: library/pkwrite.c
1796 * library/x509write_crt.c
1797 * library/x509write_csr.c
Paul Bakkercff68422013-09-15 20:43:33 +02001798 *
1799 * Requires: POLARSSL_BASE64_C
1800 *
1801 * This modules adds support for encoding / writing PEM files.
1802 */
1803#define POLARSSL_PEM_WRITE_C
Paul Bakker96743fc2011-02-12 14:30:57 +00001804
1805/**
Manuel Pégourié-Gonnardc40b4c32013-08-22 13:29:31 +02001806 * \def POLARSSL_PK_C
1807 *
1808 * Enable the generic public (asymetric) key layer.
1809 *
1810 * Module: library/pk.c
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02001811 * Caller: library/ssl_tls.c
Manuel Pégourié-Gonnardc40b4c32013-08-22 13:29:31 +02001812 * library/ssl_cli.c
1813 * library/ssl_srv.c
1814 *
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02001815 * Requires: POLARSSL_RSA_C or POLARSSL_ECP_C
1816 *
Manuel Pégourié-Gonnardc40b4c32013-08-22 13:29:31 +02001817 * Uncomment to enable generic public key wrappers.
1818 */
1819#define POLARSSL_PK_C
1820
1821/**
Paul Bakker4606c732013-09-15 17:04:23 +02001822 * \def POLARSSL_PK_PARSE_C
1823 *
1824 * Enable the generic public (asymetric) key parser.
1825 *
1826 * Module: library/pkparse.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001827 * Caller: library/x509_crt.c
1828 * library/x509_csr.c
Paul Bakker4606c732013-09-15 17:04:23 +02001829 *
1830 * Requires: POLARSSL_PK_C
1831 *
1832 * Uncomment to enable generic public key parse functions.
1833 */
1834#define POLARSSL_PK_PARSE_C
1835
1836/**
1837 * \def POLARSSL_PK_WRITE_C
1838 *
Paul Bakkerf20ba4b2013-09-16 22:46:20 +02001839 * Enable the generic public (asymetric) key writer.
Paul Bakker4606c732013-09-15 17:04:23 +02001840 *
1841 * Module: library/pkwrite.c
1842 * Caller: library/x509write.c
1843 *
1844 * Requires: POLARSSL_PK_C
1845 *
1846 * Uncomment to enable generic public key write functions.
1847 */
1848#define POLARSSL_PK_WRITE_C
1849
1850/**
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001851 * \def POLARSSL_PKCS5_C
1852 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001853 * Enable PKCS#5 functions.
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001854 *
1855 * Module: library/pkcs5.c
1856 *
1857 * Requires: POLARSSL_MD_C
1858 *
1859 * This module adds support for the PKCS#5 functions.
1860 */
1861#define POLARSSL_PKCS5_C
1862
1863/**
Paul Bakker5690efc2011-05-26 13:16:06 +00001864 * \def POLARSSL_PKCS11_C
1865 *
Paul Bakkereb2c6582012-09-27 19:15:01 +00001866 * Enable wrapper for PKCS#11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +00001867 *
Manuel Pégourié-Gonnard51be5592013-08-22 13:35:53 +02001868 * Module: library/pkcs11.c
1869 * Caller: library/pk.c
Paul Bakker5690efc2011-05-26 13:16:06 +00001870 *
Manuel Pégourié-Gonnard51be5592013-08-22 13:35:53 +02001871 * Requires: POLARSSL_PK_C
Paul Bakker5690efc2011-05-26 13:16:06 +00001872 *
Paul Bakkereb2c6582012-09-27 19:15:01 +00001873 * This module enables SSL/TLS PKCS #11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +00001874 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
Paul Bakker5690efc2011-05-26 13:16:06 +00001875 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001876//#define POLARSSL_PKCS11_C
Paul Bakker5690efc2011-05-26 13:16:06 +00001877
1878/**
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001879 * \def POLARSSL_PKCS12_C
1880 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001881 * Enable PKCS#12 PBE functions.
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001882 * Adds algorithms for parsing PKCS#8 encrypted private keys
1883 *
1884 * Module: library/pkcs12.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001885 * Caller: library/pkparse.c
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001886 *
Paul Bakkerb0713c72013-06-24 19:34:08 +02001887 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_CIPHER_C, POLARSSL_MD_C
1888 * Can use: POLARSSL_ARC4_C
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001889 *
1890 * This module enables PKCS#12 functions.
1891 */
1892#define POLARSSL_PKCS12_C
1893
1894/**
Paul Bakker747a83a2014-02-01 22:50:07 +01001895 * \def POLARSSL_PLATFORM_C
1896 *
1897 * Enable the platform abstraction layer that allows you to re-assign
Rich Evansc39cb492015-01-30 12:01:34 +00001898 * functions like malloc(), free(), snprintf(), printf(), fprintf(), exit()
Paul Bakker747a83a2014-02-01 22:50:07 +01001899 *
1900 * Module: library/platform.c
1901 * Caller: Most other .c files
1902 *
1903 * This module enables abstraction of common (libc) functions.
1904 */
1905#define POLARSSL_PLATFORM_C
1906
1907/**
Paul Bakker61b699e2014-01-22 13:35:29 +01001908 * \def POLARSSL_RIPEMD160_C
Manuel Pégourié-Gonnardcab4a882014-01-17 12:42:35 +01001909 *
1910 * Enable the RIPEMD-160 hash algorithm.
1911 *
Paul Bakker61b699e2014-01-22 13:35:29 +01001912 * Module: library/ripemd160.c
Manuel Pégourié-Gonnardcab4a882014-01-17 12:42:35 +01001913 * Caller: library/md.c
1914 *
1915 */
Paul Bakker61b699e2014-01-22 13:35:29 +01001916#define POLARSSL_RIPEMD160_C
Manuel Pégourié-Gonnardcab4a882014-01-17 12:42:35 +01001917
1918/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001919 * \def POLARSSL_RSA_C
1920 *
1921 * Enable the RSA public-key cryptosystem.
1922 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001923 * Module: library/rsa.c
1924 * Caller: library/ssl_cli.c
1925 * library/ssl_srv.c
1926 * library/ssl_tls.c
1927 * library/x509.c
1928 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001929 * This module is used by the following key exchanges:
1930 * RSA, DHE-RSA, ECDHE-RSA, RSA-PSK
Paul Bakker5690efc2011-05-26 13:16:06 +00001931 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001932 * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001933 */
Paul Bakker40e46942009-01-03 21:51:57 +00001934#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001935
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001936/**
1937 * \def POLARSSL_SHA1_C
1938 *
1939 * Enable the SHA1 cryptographic hash algorithm.
1940 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001941 * Module: library/sha1.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001942 * Caller: library/md.c
1943 * library/ssl_cli.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001944 * library/ssl_srv.c
1945 * library/ssl_tls.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001946 * library/x509write_crt.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001947 *
1948 * This module is required for SSL/TLS and SHA1-signed certificates.
1949 */
Paul Bakker40e46942009-01-03 21:51:57 +00001950#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001951
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001952/**
Paul Bakker9e36f042013-06-30 14:34:05 +02001953 * \def POLARSSL_SHA256_C
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001954 *
1955 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
Paul Bakker9e36f042013-06-30 14:34:05 +02001956 * (Used to be POLARSSL_SHA2_C)
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001957 *
Paul Bakker9e36f042013-06-30 14:34:05 +02001958 * Module: library/sha256.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001959 * Caller: library/entropy.c
1960 * library/md.c
1961 * library/ssl_cli.c
1962 * library/ssl_srv.c
1963 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001964 *
1965 * This module adds support for SHA-224 and SHA-256.
Paul Bakker769075d2012-11-24 11:26:46 +01001966 * This module is required for the SSL/TLS 1.2 PRF function.
Paul Bakker5121ce52009-01-03 21:22:43 +00001967 */
Paul Bakker9e36f042013-06-30 14:34:05 +02001968#define POLARSSL_SHA256_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001969
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001970/**
Paul Bakker9e36f042013-06-30 14:34:05 +02001971 * \def POLARSSL_SHA512_C
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001972 *
1973 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
Paul Bakker9e36f042013-06-30 14:34:05 +02001974 * (Used to be POLARSSL_SHA4_C)
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001975 *
Paul Bakker9e36f042013-06-30 14:34:05 +02001976 * Module: library/sha512.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001977 * Caller: library/entropy.c
1978 * library/md.c
1979 * library/ssl_cli.c
1980 * library/ssl_srv.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001981 *
1982 * This module adds support for SHA-384 and SHA-512.
1983 */
Paul Bakker9e36f042013-06-30 14:34:05 +02001984#define POLARSSL_SHA512_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001985
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001986/**
Paul Bakker0a597072012-09-25 21:55:46 +00001987 * \def POLARSSL_SSL_CACHE_C
1988 *
1989 * Enable simple SSL cache implementation.
1990 *
1991 * Module: library/ssl_cache.c
1992 * Caller:
1993 *
1994 * Requires: POLARSSL_SSL_CACHE_C
1995 */
1996#define POLARSSL_SSL_CACHE_C
1997
1998/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001999 * \def POLARSSL_SSL_CLI_C
2000 *
2001 * Enable the SSL/TLS client code.
2002 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002003 * Module: library/ssl_cli.c
2004 * Caller:
2005 *
Paul Bakker5690efc2011-05-26 13:16:06 +00002006 * Requires: POLARSSL_SSL_TLS_C
2007 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002008 * This module is required for SSL/TLS client support.
2009 */
Paul Bakker40e46942009-01-03 21:51:57 +00002010#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +00002011
Paul Bakker9a736322012-11-14 12:39:52 +00002012/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002013 * \def POLARSSL_SSL_SRV_C
2014 *
2015 * Enable the SSL/TLS server code.
2016 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002017 * Module: library/ssl_srv.c
2018 * Caller:
2019 *
Paul Bakker5690efc2011-05-26 13:16:06 +00002020 * Requires: POLARSSL_SSL_TLS_C
2021 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002022 * This module is required for SSL/TLS server support.
2023 */
Paul Bakker40e46942009-01-03 21:51:57 +00002024#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +00002025
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002026/**
2027 * \def POLARSSL_SSL_TLS_C
2028 *
Paul Bakkere29ab062011-05-18 13:26:54 +00002029 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002030 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002031 * Module: library/ssl_tls.c
2032 * Caller: library/ssl_cli.c
2033 * library/ssl_srv.c
2034 *
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02002035 * Requires: POLARSSL_CIPHER_C, POLARSSL_MD_C
Paul Bakker577e0062013-08-28 11:57:20 +02002036 * and at least one of the POLARSSL_SSL_PROTO_* defines
Paul Bakker5690efc2011-05-26 13:16:06 +00002037 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002038 * This module is required for SSL/TLS.
2039 */
Paul Bakker40e46942009-01-03 21:51:57 +00002040#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +00002041
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002042/**
Paul Bakker2466d932013-09-28 14:40:38 +02002043 * \def POLARSSL_THREADING_C
2044 *
2045 * Enable the threading abstraction layer.
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00002046 * By default mbed TLS assumes it is used in a non-threaded environment or that
Paul Bakker2466d932013-09-28 14:40:38 +02002047 * contexts are not shared between threads. If you do intend to use contexts
2048 * between threads, you will need to enable this layer to prevent race
2049 * conditions.
2050 *
2051 * Module: library/threading.c
2052 *
2053 * This allows different threading implementations (self-implemented or
2054 * provided).
2055 *
Paul Bakkera8fd3e32013-12-31 11:54:08 +01002056 * You will have to enable either POLARSSL_THREADING_ALT or
2057 * POLARSSL_THREADING_PTHREAD.
Paul Bakker2466d932013-09-28 14:40:38 +02002058 *
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00002059 * Enable this layer to allow use of mutexes within mbed TLS
Paul Bakker2466d932013-09-28 14:40:38 +02002060 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02002061//#define POLARSSL_THREADING_C
Paul Bakker2466d932013-09-28 14:40:38 +02002062
2063/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002064 * \def POLARSSL_TIMING_C
2065 *
2066 * Enable the portable timing interface.
2067 *
Paul Bakker5121ce52009-01-03 21:22:43 +00002068 * Module: library/timing.c
2069 * Caller: library/havege.c
2070 *
2071 * This module is used by the HAVEGE random number generator.
Paul Bakkerecd54fb2013-07-03 14:48:29 +02002072 */
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +02002073#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +00002074
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002075/**
2076 * \def POLARSSL_VERSION_C
2077 *
2078 * Enable run-time version information.
2079 *
Paul Bakker0a62cd12011-01-21 11:00:08 +00002080 * Module: library/version.c
2081 *
2082 * This module provides run-time version information.
2083 */
2084#define POLARSSL_VERSION_C
2085
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002086/**
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002087 * \def POLARSSL_X509_USE_C
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002088 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02002089 * Enable X.509 core for using certificates.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002090 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002091 * Module: library/x509.c
2092 * Caller: library/x509_crl.c
2093 * library/x509_crt.c
2094 * library/x509_csr.c
Paul Bakker5121ce52009-01-03 21:22:43 +00002095 *
Paul Bakkerc70b9822013-04-07 22:00:46 +02002096 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_OID_C,
Paul Bakker4606c732013-09-15 17:04:23 +02002097 * POLARSSL_PK_PARSE_C
Paul Bakker5690efc2011-05-26 13:16:06 +00002098 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002099 * This module is required for the X.509 parsing modules.
Paul Bakker5121ce52009-01-03 21:22:43 +00002100 */
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002101#define POLARSSL_X509_USE_C
Paul Bakker5121ce52009-01-03 21:22:43 +00002102
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002103/**
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002104 * \def POLARSSL_X509_CRT_PARSE_C
Paul Bakkerbdb912d2012-02-13 23:11:30 +00002105 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002106 * Enable X.509 certificate parsing.
Paul Bakkerbdb912d2012-02-13 23:11:30 +00002107 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002108 * Module: library/x509_crt.c
2109 * Caller: library/ssl_cli.c
2110 * library/ssl_srv.c
2111 * library/ssl_tls.c
2112 *
2113 * Requires: POLARSSL_X509_USE_C
2114 *
2115 * This module is required for X.509 certificate parsing.
2116 */
2117#define POLARSSL_X509_CRT_PARSE_C
2118
2119/**
2120 * \def POLARSSL_X509_CRL_PARSE_C
2121 *
2122 * Enable X.509 CRL parsing.
2123 *
2124 * Module: library/x509_crl.c
2125 * Caller: library/x509_crt.c
2126 *
2127 * Requires: POLARSSL_X509_USE_C
2128 *
2129 * This module is required for X.509 CRL parsing.
2130 */
2131#define POLARSSL_X509_CRL_PARSE_C
2132
2133/**
2134 * \def POLARSSL_X509_CSR_PARSE_C
2135 *
2136 * Enable X.509 Certificate Signing Request (CSR) parsing.
2137 *
2138 * Module: library/x509_csr.c
2139 * Caller: library/x509_crt_write.c
2140 *
2141 * Requires: POLARSSL_X509_USE_C
2142 *
2143 * This module is used for reading X.509 certificate request.
2144 */
2145#define POLARSSL_X509_CSR_PARSE_C
2146
2147/**
2148 * \def POLARSSL_X509_CREATE_C
2149 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02002150 * Enable X.509 core for creating certificates.
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002151 *
2152 * Module: library/x509_create.c
Paul Bakkerbdb912d2012-02-13 23:11:30 +00002153 *
Paul Bakker4606c732013-09-15 17:04:23 +02002154 * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C, POLARSSL_PK_WRITE_C
Paul Bakkerbdb912d2012-02-13 23:11:30 +00002155 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002156 * This module is the basis for creating X.509 certificates and CSRs.
2157 */
2158#define POLARSSL_X509_CREATE_C
2159
2160/**
2161 * \def POLARSSL_X509_CRT_WRITE_C
2162 *
2163 * Enable creating X.509 certificates.
2164 *
2165 * Module: library/x509_crt_write.c
2166 *
2167 * Requires: POLARSSL_CREATE_C
2168 *
2169 * This module is required for X.509 certificate creation.
2170 */
2171#define POLARSSL_X509_CRT_WRITE_C
2172
2173/**
2174 * \def POLARSSL_X509_CSR_WRITE_C
2175 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02002176 * Enable creating X.509 Certificate Signing Requests (CSR).
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002177 *
2178 * Module: library/x509_csr_write.c
2179 *
2180 * Requires: POLARSSL_CREATE_C
2181 *
Paul Bakkerbdb912d2012-02-13 23:11:30 +00002182 * This module is required for X.509 certificate request writing.
2183 */
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002184#define POLARSSL_X509_CSR_WRITE_C
Paul Bakkerbdb912d2012-02-13 23:11:30 +00002185
2186/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002187 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +00002188 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +00002189 * Enable the XTEA block cipher.
2190 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +00002191 * Module: library/xtea.c
2192 * Caller:
2193 */
2194#define POLARSSL_XTEA_C
Manuel Pégourié-Gonnard39d2adb2012-10-31 09:26:55 +01002195
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +00002196/* \} name SECTION: mbed TLS modules */
Paul Bakker7a7c78f2009-01-04 18:15:48 +00002197
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002198/**
2199 * \name SECTION: Module configuration options
2200 *
2201 * This section allows for the setting of module specific sizes and
2202 * configuration options. The default values are already present in the
2203 * relevant header files and should suffice for the regular use cases.
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002204 *
Paul Bakker088c5c52014-04-25 11:11:10 +02002205 * Our advice is to enable options and change their values here
2206 * only if you have a good reason and know the consequences.
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002207 *
2208 * Please check the respective header file for documentation on these
2209 * parameters (to prevent duplicate documentation).
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002210 * \{
2211 */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002212
Paul Bakker088c5c52014-04-25 11:11:10 +02002213/* MPI / BIGNUM options */
2214//#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
Manuel Pégourié-Gonnardda1b4de2014-09-08 17:03:50 +02002215//#define POLARSSL_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002216
Paul Bakker088c5c52014-04-25 11:11:10 +02002217/* CTR_DRBG options */
2218//#define CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
2219//#define CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
2220//#define CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
2221//#define CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
2222//#define CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002223
Paul Bakker088c5c52014-04-25 11:11:10 +02002224/* HMAC_DRBG options */
2225//#define POLARSSL_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
2226//#define POLARSSL_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
2227//#define POLARSSL_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
2228//#define POLARSSL_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002229
Paul Bakker088c5c52014-04-25 11:11:10 +02002230/* ECP options */
2231//#define POLARSSL_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
2232//#define POLARSSL_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
2233//#define POLARSSL_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
Manuel Pégourié-Gonnard0520b602014-01-30 19:43:46 +01002234
Paul Bakker088c5c52014-04-25 11:11:10 +02002235/* Entropy options */
2236//#define ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
2237//#define ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
Paul Bakkere1b665e2013-12-11 16:02:58 +01002238
Paul Bakker088c5c52014-04-25 11:11:10 +02002239/* Memory buffer allocator options */
Manuel Pégourié-Gonnard4d8db4a2014-05-05 14:04:28 +02002240//#define POLARSSL_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002241
Paul Bakker088c5c52014-04-25 11:11:10 +02002242/* Platform options */
2243//#define POLARSSL_PLATFORM_STD_MEM_HDR <stdlib.h> /**< Header to include if POLARSSL_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */
2244//#define POLARSSL_PLATFORM_STD_MALLOC malloc /**< Default allocator to use, can be undefined */
2245//#define POLARSSL_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
Rich Evansc39cb492015-01-30 12:01:34 +00002246//#define POLARSSL_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
Paul Bakker088c5c52014-04-25 11:11:10 +02002247//#define POLARSSL_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
2248//#define POLARSSL_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
Rich Evansc39cb492015-01-30 12:01:34 +00002249//#define POLARSSL_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
Paul Bakker6e339b52013-07-03 13:37:05 +02002250
Paul Bakker088c5c52014-04-25 11:11:10 +02002251/* SSL Cache options */
2252//#define SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
2253//#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002254
Paul Bakker088c5c52014-04-25 11:11:10 +02002255/* SSL options */
2256//#define SSL_MAX_CONTENT_LEN 16384 /**< Size of the input / output buffer */
2257//#define SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */
Manuel Pégourié-Gonnard481fcfd2014-07-03 16:12:50 +02002258//#define POLARSSL_PSK_MAX_LEN 32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002259
Manuel Pégourié-Gonnarddfc7df02014-06-30 17:59:55 +02002260/**
2261 * Complete list of ciphersuites to use, in order of preference.
2262 *
2263 * \warning No dependency checking is done on that field! This option can only
2264 * be used to restrict the set of available ciphersuites. It is your
2265 * responsibility to make sure the needed modules are active.
2266 *
2267 * Use this to save a few hundred bytes of ROM (default ordering of all
2268 * available ciphersuites) and a few to a few hundred bytes of RAM.
2269 *
2270 * The value below is only an example, not the default.
2271 */
2272//#define SSL_CIPHERSUITES TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
2273
Paul Bakkereaebbd52014-04-25 15:04:14 +02002274/* Debug options */
2275//#define POLARSSL_DEBUG_DFL_MODE POLARSSL_DEBUG_LOG_FULL /**< Default log: Full or Raw */
2276
Manuel Pégourié-Gonnardfd6c85c2014-11-20 16:34:20 +01002277/* X509 options */
2278//#define POLARSSL_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
2279
Paul Bakker0f90d7d2014-04-30 11:49:44 +02002280/* \} name SECTION: Module configuration options */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02002281
Manuel Pégourié-Gonnard14d55952014-04-30 12:35:08 +02002282#include "check_config.h"
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +01002283
Manuel Pégourié-Gonnard14d55952014-04-30 12:35:08 +02002284#endif /* POLARSSL_CONFIG_H */