blob: dd172ce16a54bb702d0b7fc5abfd4851ead54bcd [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 *
Paul Bakker9bcf16c2013-06-24 19:31:17 +02006 * Copyright (C) 2006-2013, Brainspark B.V.
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
8 * This file is part of PolarSSL (http://www.polarssl.org)
Paul Bakker84f12b72010-07-18 10:13:04 +00009 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
Paul Bakkerb96f1542010-07-18 20:36:00 +000010 *
Paul Bakker77b385e2009-07-28 17:23:11 +000011 * All rights reserved.
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000012 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000013 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
Paul Bakker5121ce52009-01-03 21:22:43 +000027 * This set of compile-time options may be used to enable
28 * or disable features selectively, and reduce the global
29 * memory footprint.
30 */
Paul Bakker40e46942009-01-03 21:51:57 +000031#ifndef POLARSSL_CONFIG_H
32#define POLARSSL_CONFIG_H
Paul Bakker5121ce52009-01-03 21:22:43 +000033
Paul Bakkercce9d772011-11-18 14:26:47 +000034#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
Paul Bakker5121ce52009-01-03 21:22:43 +000035#define _CRT_SECURE_NO_DEPRECATE 1
36#endif
37
Paul Bakkerf3b86c12011-01-27 15:24:17 +000038/**
Paul Bakker0a62cd12011-01-21 11:00:08 +000039 * \name SECTION: System support
40 *
41 * This section sets system specific settings.
42 * \{
43 */
44
Paul Bakkerf3b86c12011-01-27 15:24:17 +000045/**
46 * \def POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000047 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000048 * The system uses 8-bit wide native integers.
49 *
50 * Uncomment if native integers are 8-bit wide.
Paul Bakker5121ce52009-01-03 21:22:43 +000051 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +020052//#define POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000053
Paul Bakkerf3b86c12011-01-27 15:24:17 +000054/**
55 * \def POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000056 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000057 * The system uses 16-bit wide native integers.
58 *
59 * Uncomment if native integers are 16-bit wide.
Paul Bakker5121ce52009-01-03 21:22:43 +000060 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +020061//#define POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000062
Paul Bakkerf3b86c12011-01-27 15:24:17 +000063/**
Paul Bakker62261d62012-10-02 12:19:31 +000064 * \def POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000065 *
Paul Bakker62261d62012-10-02 12:19:31 +000066 * The compiler supports the 'long long' type.
67 * (Only used on 32-bit platforms)
Paul Bakker5121ce52009-01-03 21:22:43 +000068 */
Paul Bakker62261d62012-10-02 12:19:31 +000069#define POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000070
Paul Bakkerf3b86c12011-01-27 15:24:17 +000071/**
72 * \def POLARSSL_HAVE_ASM
73 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +020074 * The compiler has support for asm().
Paul Bakker68041ec2009-04-19 21:17:55 +000075 *
76 * Requires support for asm() in compiler.
77 *
78 * Used in:
79 * library/timing.c
80 * library/padlock.c
81 * include/polarssl/bn_mul.h
82 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +020083 * Comment to disable the use of assembly code.
Paul Bakker5121ce52009-01-03 21:22:43 +000084 */
Paul Bakker40e46942009-01-03 21:51:57 +000085#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000086
Paul Bakkerf3b86c12011-01-27 15:24:17 +000087/**
88 * \def POLARSSL_HAVE_SSE2
89 *
Paul Bakkere23c3152012-10-01 14:42:47 +000090 * CPU supports SSE2 instruction set.
Paul Bakkerf3b86c12011-01-27 15:24:17 +000091 *
Paul Bakker5121ce52009-01-03 21:22:43 +000092 * Uncomment if the CPU supports SSE2 (IA-32 specific).
Paul Bakker5121ce52009-01-03 21:22:43 +000093 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +020094//#define POLARSSL_HAVE_SSE2
Paul Bakkerfa9b1002013-07-03 15:31:03 +020095
96/**
97 * \def POLARSSL_HAVE_TIME
98 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +020099 * System has time.h and time() / localtime() / gettimeofday().
Paul Bakkerfa9b1002013-07-03 15:31:03 +0200100 *
101 * Comment if your system does not support time functions
102 */
103#define POLARSSL_HAVE_TIME
Manuel Pégourié-Gonnard10934de2013-12-13 12:54:09 +0100104
105/**
106 * \def POLARSSL_HAVE_IPV6
107 *
108 * System supports the basic socket interface for IPv6 (RFC 3493),
Manuel Pégourié-Gonnard767f02c2013-12-13 16:23:39 +0100109 * specifically getaddrinfo(), freeaddrinfo() and struct sockaddr_storage.
Manuel Pégourié-Gonnard10934de2013-12-13 12:54:09 +0100110 *
Manuel Pégourié-Gonnard13211352013-12-17 17:38:55 +0100111 * Note: on Windows/MingW, XP or higher is required.
112 *
Manuel Pégourié-Gonnard10934de2013-12-13 12:54:09 +0100113 * Comment if your system does not support the IPv6 socket interface
114 */
115#define POLARSSL_HAVE_IPV6
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200116/* \} name SECTION: System support */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000117
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000118/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000119 * \name SECTION: PolarSSL feature support
120 *
121 * This section sets support for features that are or are not needed
122 * within the modules that are enabled.
123 * \{
124 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000125
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000126/**
Paul Bakker90995b52013-06-24 19:20:35 +0200127 * \def POLARSSL_XXX_ALT
128 *
129 * Uncomment a macro to let PolarSSL use your alternate core implementation of
130 * a symmetric or hash algorithm (e.g. platform specific assembly optimized
131 * implementations). Keep in mind that the function prototypes should remain
132 * the same.
133 *
134 * Example: In case you uncomment POLARSSL_AES_ALT, PolarSSL will no longer
135 * provide the "struct aes_context" definition and omit the base function
136 * declarations and implementations. "aes_alt.h" will be included from
137 * "aes.h" to include the new function definitions.
138 *
139 * Uncomment a macro to enable alternate implementation for core algorithm
140 * functions
Paul Bakker90995b52013-06-24 19:20:35 +0200141 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200142//#define POLARSSL_AES_ALT
143//#define POLARSSL_ARC4_ALT
144//#define POLARSSL_BLOWFISH_ALT
145//#define POLARSSL_CAMELLIA_ALT
146//#define POLARSSL_DES_ALT
147//#define POLARSSL_XTEA_ALT
148//#define POLARSSL_MD2_ALT
149//#define POLARSSL_MD4_ALT
150//#define POLARSSL_MD5_ALT
Paul Bakker9f4c1622014-01-22 14:14:26 +0100151//#define POLARSSL_RIPEMD160_ALT
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200152//#define POLARSSL_SHA1_ALT
153//#define POLARSSL_SHA256_ALT
154//#define POLARSSL_SHA512_ALT
Paul Bakker90995b52013-06-24 19:20:35 +0200155
156/**
Manuel Pégourié-Gonnardb1d4eb12014-01-22 10:12:57 +0100157 * \def POLARSSL_RSASSA_PSS_CERTIFICATES
158 *
159 * Enable parsing and verification of X.509 certificates and CRLs signed with
160 * RSASSA-PSS.
161 *
162 * This is disabled by default since it breaks binary compatibility with the
163 * 1.3.x line. If you choose to enable it, you will need to rebuild your
164 * application against the new header files, relinking will not be enough.
165 *
166 * TODO: actually disable it when done working on this branch ,)
167 *
168 * Uncomment this macro to allow using RSASSA-PSS in certificates.
169 */
170#define POLARSSL_RSASSA_PSS_CERTIFICATES
171
172/**
Paul Bakker15566e42011-04-24 21:19:15 +0000173 * \def POLARSSL_AES_ROM_TABLES
174 *
175 * Store the AES tables in ROM.
176 *
177 * Uncomment this macro to store the AES tables in ROM.
178 *
Paul Bakker15566e42011-04-24 21:19:15 +0000179 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200180//#define POLARSSL_AES_ROM_TABLES
Paul Bakker15566e42011-04-24 21:19:15 +0000181
182/**
Manuel Pégourié-Gonnardf7dc3782013-09-13 14:10:44 +0200183 * \def POLARSSL_CIPHER_MODE_CBC
184 *
185 * Enable Cipher Block Chaining mode (CBC) for symmetric ciphers.
186 */
187#define POLARSSL_CIPHER_MODE_CBC
188
189/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000190 * \def POLARSSL_CIPHER_MODE_CFB
191 *
192 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
193 */
194#define POLARSSL_CIPHER_MODE_CFB
195
196/**
197 * \def POLARSSL_CIPHER_MODE_CTR
198 *
199 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
200 */
201#define POLARSSL_CIPHER_MODE_CTR
202
203/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000204 * \def POLARSSL_CIPHER_NULL_CIPHER
205 *
206 * Enable NULL cipher.
207 * Warning: Only do so when you know what you are doing. This allows for
208 * encryption or channels without any security!
209 *
210 * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable
211 * the following ciphersuites:
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +0100212 * TLS_ECDH_ECDSA_WITH_NULL_SHA
213 * TLS_ECDH_RSA_WITH_NULL_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200214 * TLS_ECDHE_ECDSA_WITH_NULL_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +0100215 * TLS_ECDHE_RSA_WITH_NULL_SHA
Manuel Pégourié-Gonnard225d6aa2013-10-11 19:07:56 +0200216 * TLS_ECDHE_PSK_WITH_NULL_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200217 * TLS_ECDHE_PSK_WITH_NULL_SHA256
218 * TLS_ECDHE_PSK_WITH_NULL_SHA
219 * TLS_DHE_PSK_WITH_NULL_SHA384
220 * TLS_DHE_PSK_WITH_NULL_SHA256
221 * TLS_DHE_PSK_WITH_NULL_SHA
222 * TLS_RSA_WITH_NULL_SHA256
223 * TLS_RSA_WITH_NULL_SHA
224 * TLS_RSA_WITH_NULL_MD5
225 * TLS_RSA_PSK_WITH_NULL_SHA384
226 * TLS_RSA_PSK_WITH_NULL_SHA256
227 * TLS_RSA_PSK_WITH_NULL_SHA
228 * TLS_PSK_WITH_NULL_SHA384
229 * TLS_PSK_WITH_NULL_SHA256
230 * TLS_PSK_WITH_NULL_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000231 *
232 * Uncomment this macro to enable the NULL cipher and ciphersuites
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200233#define POLARSSL_CIPHER_NULL_CIPHER
Paul Bakkerfab5c822012-02-06 16:45:10 +0000234 */
235
236/**
Paul Bakker48e93c82013-08-14 12:21:18 +0200237 * \def POLARSSL_CIPHER_PADDING_XXX
238 *
239 * Uncomment or comment macros to add support for specific padding modes
240 * in the cipher layer with cipher modes that support padding (e.g. CBC)
241 *
242 * If you disable all padding modes, only full blocks can be used with CBC.
243 *
244 * Enable padding modes in the cipher layer.
245 */
246#define POLARSSL_CIPHER_PADDING_PKCS7
247#define POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
248#define POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
249#define POLARSSL_CIPHER_PADDING_ZEROS
250
251/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000252 * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
253 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200254 * Enable weak ciphersuites in SSL / TLS.
Paul Bakkerfab5c822012-02-06 16:45:10 +0000255 * Warning: Only do so when you know what you are doing. This allows for
Paul Bakker9a736322012-11-14 12:39:52 +0000256 * channels with virtually no security at all!
Paul Bakkerfab5c822012-02-06 16:45:10 +0000257 *
258 * This enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000259 * TLS_RSA_WITH_DES_CBC_SHA
260 * TLS_DHE_RSA_WITH_DES_CBC_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000261 *
262 * Uncomment this macro to enable weak ciphersuites
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200263#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
Paul Bakkerfab5c822012-02-06 16:45:10 +0000264 */
265
266/**
Paul Bakker5dc6b5f2013-06-29 23:26:34 +0200267 * \def POLARSSL_ECP_XXXX_ENABLED
268 *
269 * Enables specific curves within the Elliptic Curve module.
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200270 * By default all supported curves are enabled.
Paul Bakker5dc6b5f2013-06-29 23:26:34 +0200271 *
272 * Comment macros to disable the curve and functions for it
273 */
274#define POLARSSL_ECP_DP_SECP192R1_ENABLED
275#define POLARSSL_ECP_DP_SECP224R1_ENABLED
276#define POLARSSL_ECP_DP_SECP256R1_ENABLED
277#define POLARSSL_ECP_DP_SECP384R1_ENABLED
278#define POLARSSL_ECP_DP_SECP521R1_ENABLED
Manuel Pégourié-Gonnardea499a72014-01-11 15:58:47 +0100279#define POLARSSL_ECP_DP_SECP192K1_ENABLED
Manuel Pégourié-Gonnard18e3ec92014-01-11 15:22:07 +0100280#define POLARSSL_ECP_DP_SECP224K1_ENABLED
Manuel Pégourié-Gonnardf51c8fc2014-01-10 18:17:18 +0100281#define POLARSSL_ECP_DP_SECP256K1_ENABLED
Manuel Pégourié-Gonnard8195c1a2013-10-07 19:40:41 +0200282#define POLARSSL_ECP_DP_BP256R1_ENABLED
283#define POLARSSL_ECP_DP_BP384R1_ENABLED
284#define POLARSSL_ECP_DP_BP512R1_ENABLED
Manuel Pégourié-Gonnard66153662013-12-03 14:12:26 +0100285//#define POLARSSL_ECP_DP_M221_ENABLED // Not implemented yet!
286#define POLARSSL_ECP_DP_M255_ENABLED
287//#define POLARSSL_ECP_DP_M383_ENABLED // Not implemented yet!
288//#define POLARSSL_ECP_DP_M511_ENABLED // Not implemented yet!
Paul Bakker5dc6b5f2013-06-29 23:26:34 +0200289
290/**
Manuel Pégourié-Gonnardc04c5302013-10-23 16:11:52 +0200291 * \def POLARSSL_ECP_NIST_OPTIM
292 *
293 * Enable specific 'modulo p' routines for each NIST prime.
294 * Depending on the prime and architecture, makes operations 4 to 8 times
295 * faster on the corresponding curve.
296 *
297 * Comment this macro to disable NIST curves optimisation.
298 */
299#define POLARSSL_ECP_NIST_OPTIM
300
301/**
Manuel Pégourié-Gonnard461d4162014-01-06 10:16:28 +0100302 * \def POLARSSL_ECDSA_DETERMINISTIC
303 *
304 * Enable deterministic ECDSA (RFC 6979).
305 * Standard ECDSA is "fragile" in the sense that lack of entropy when signing
306 * may result in a compromise of the long-term signing key. This is avoided by
307 * the deterministic variant.
308 *
Manuel Pégourié-Gonnard7845fc02014-01-27 14:24:03 +0100309 * Requires: POLARSSL_HMAC_DRBG_C
Manuel Pégourié-Gonnard5b1a5732014-01-07 16:46:17 +0100310 *
Manuel Pégourié-Gonnard461d4162014-01-06 10:16:28 +0100311 * Comment this macro to disable deterministic ECDSA.
312 */
313#define POLARSSL_ECDSA_DETERMINISTIC
314
315/**
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200316 * \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED
317 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200318 * Enable the PSK based ciphersuite modes in SSL / TLS.
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200319 *
Paul Bakkere07f41d2013-04-19 09:08:57 +0200320 * This enables the following ciphersuites (if other requisites are
321 * enabled as well):
Paul Bakker45bda902013-04-19 22:28:21 +0200322 * TLS_PSK_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200323 * TLS_PSK_WITH_AES_256_CBC_SHA384
324 * TLS_PSK_WITH_AES_256_CBC_SHA
325 * TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
326 * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
327 * TLS_PSK_WITH_AES_128_GCM_SHA256
328 * TLS_PSK_WITH_AES_128_CBC_SHA256
329 * TLS_PSK_WITH_AES_128_CBC_SHA
330 * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
331 * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
332 * TLS_PSK_WITH_3DES_EDE_CBC_SHA
333 * TLS_PSK_WITH_RC4_128_SHA
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200334 */
335#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
336
337/**
Paul Bakkere07f41d2013-04-19 09:08:57 +0200338 * \def POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
339 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200340 * Enable the DHE-PSK based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200341 *
342 * Requires: POLARSSL_DHM_C
343 *
344 * This enables the following ciphersuites (if other requisites are
345 * enabled as well):
Paul Bakker45bda902013-04-19 22:28:21 +0200346 * TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200347 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
348 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA
349 * TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
350 * TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
351 * TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
352 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
353 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA
354 * TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
355 * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
356 * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
357 * TLS_DHE_PSK_WITH_RC4_128_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200358 */
Paul Bakker48f7a5d2013-04-19 14:30:58 +0200359#define POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
Paul Bakkere07f41d2013-04-19 09:08:57 +0200360
361/**
Manuel Pégourié-Gonnard3ce3bbd2013-10-11 16:53:50 +0200362 * \def POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
363 *
364 * Enable the ECDHE-PSK based ciphersuite modes in SSL / TLS.
365 *
366 * Requires: POLARSSL_ECDH_C
367 *
368 * This enables the following ciphersuites (if other requisites are
369 * enabled as well):
Manuel Pégourié-Gonnard225d6aa2013-10-11 19:07:56 +0200370 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200371 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
Manuel Pégourié-Gonnard225d6aa2013-10-11 19:07:56 +0200372 * TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200373 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
374 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
375 * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
376 * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
377 * TLS_ECDHE_PSK_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard3ce3bbd2013-10-11 16:53:50 +0200378 */
379#define POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
380
381/**
Paul Bakkere07f41d2013-04-19 09:08:57 +0200382 * \def POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
383 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200384 * Enable the RSA-PSK based ciphersuite modes in SSL / TLS.
Manuel Pégourié-Gonnard0fae60b2013-10-14 17:39:48 +0200385 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200386 * Requires: POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200387 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200388 *
389 * This enables the following ciphersuites (if other requisites are
390 * enabled as well):
Paul Bakker45bda902013-04-19 22:28:21 +0200391 * TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200392 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
393 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA
394 * TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
395 * TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
396 * TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
397 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
398 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA
399 * TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
400 * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
401 * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
402 * TLS_RSA_PSK_WITH_RC4_128_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200403 */
Manuel Pégourié-Gonnard0fae60b2013-10-14 17:39:48 +0200404#define POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
Paul Bakkere07f41d2013-04-19 09:08:57 +0200405
406/**
407 * \def POLARSSL_KEY_EXCHANGE_RSA_ENABLED
408 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200409 * Enable the RSA-only based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200410 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200411 * Requires: POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200412 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200413 *
414 * This enables the following ciphersuites (if other requisites are
415 * enabled as well):
Paul Bakkere07f41d2013-04-19 09:08:57 +0200416 * TLS_RSA_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200417 * TLS_RSA_WITH_AES_256_CBC_SHA256
418 * TLS_RSA_WITH_AES_256_CBC_SHA
419 * TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200420 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200421 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
422 * TLS_RSA_WITH_AES_128_GCM_SHA256
423 * TLS_RSA_WITH_AES_128_CBC_SHA256
424 * TLS_RSA_WITH_AES_128_CBC_SHA
425 * TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
426 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
427 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200428 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200429 * TLS_RSA_WITH_RC4_128_SHA
430 * TLS_RSA_WITH_RC4_128_MD5
Paul Bakkere07f41d2013-04-19 09:08:57 +0200431 */
432#define POLARSSL_KEY_EXCHANGE_RSA_ENABLED
433
434/**
435 * \def POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED
436 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200437 * Enable the DHE-RSA based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200438 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200439 * Requires: POLARSSL_DHM_C, POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200440 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200441 *
442 * This enables the following ciphersuites (if other requisites are
443 * enabled as well):
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200444 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200445 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200446 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
447 * TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200448 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200449 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
450 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
451 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
452 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
453 * TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
454 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
455 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200456 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
457 */
458#define POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED
459
460/**
461 * \def POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
462 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200463 * Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS.
Paul Bakkere07f41d2013-04-19 09:08:57 +0200464 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200465 * Requires: POLARSSL_ECDH_C, POLARSSL_RSA_C, POLARSSL_PKCS1_V15,
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +0200466 * POLARSSL_X509_CRT_PARSE_C
Paul Bakkere07f41d2013-04-19 09:08:57 +0200467 *
468 * This enables the following ciphersuites (if other requisites are
469 * enabled as well):
Paul Bakkere07f41d2013-04-19 09:08:57 +0200470 * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200471 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
472 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
473 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
Paul Bakkere07f41d2013-04-19 09:08:57 +0200474 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200475 * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
476 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
477 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
478 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
479 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
480 * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
481 * TLS_ECDHE_RSA_WITH_RC4_128_SHA
Paul Bakkere07f41d2013-04-19 09:08:57 +0200482 */
483#define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
484
485/**
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200486 * \def POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
487 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200488 * Enable the ECDHE-ECDSA based ciphersuite modes in SSL / TLS.
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200489 *
Manuel Pégourié-Gonnard1032c1d2013-09-18 17:18:34 +0200490 * Requires: POLARSSL_ECDH_C, POLARSSL_ECDSA_C, POLARSSL_X509_CRT_PARSE_C,
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200491 *
492 * This enables the following ciphersuites (if other requisites are
493 * enabled as well):
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200494 * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
495 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
496 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
497 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
498 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
499 * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
500 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
501 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
502 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
503 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
504 * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
505 * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +0200506 */
507#define POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
508
509/**
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +0100510 * \def POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
511 *
512 * Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS.
513 *
514 * Requires: POLARSSL_ECDH_C, POLARSSL_X509_CRT_PARSE_C
515 *
516 * This enables the following ciphersuites (if other requisites are
517 * enabled as well):
518 * TLS_ECDH_ECDSA_WITH_RC4_128_SHA
519 * TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
520 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
521 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
522 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
523 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
524 * TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
525 * TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
526 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
527 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
528 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
529 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
530 */
531#define POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
532
533/**
534 * \def POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
535 *
536 * Enable the ECDH-RSA based ciphersuite modes in SSL / TLS.
537 *
538 * Requires: POLARSSL_ECDH_C, POLARSSL_X509_CRT_PARSE_C
539 *
540 * This enables the following ciphersuites (if other requisites are
541 * enabled as well):
542 * TLS_ECDH_RSA_WITH_RC4_128_SHA
543 * TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
544 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
545 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
546 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
547 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
548 * TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
549 * TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
550 * TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
551 * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
552 * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
553 * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
554 */
555#define POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
556
557/**
Paul Bakkere2ab84f2013-06-29 18:24:32 +0200558 * \def POLARSSL_ERROR_STRERROR_BC
559 *
560 * Make available the backward compatible error_strerror() next to the
561 * current polarssl_strerror().
562 *
563 * Disable if you run into name conflicts and want to really remove the
564 * error_strerror()
565 */
566#define POLARSSL_ERROR_STRERROR_BC
567
568/**
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100569 * \def POLARSSL_ERROR_STRERROR_DUMMY
570 *
Paul Bakkereba3ccf2013-09-09 15:55:12 +0200571 * Enable a dummy error function to make use of polarssl_strerror() in
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100572 * third party libraries easier.
573 *
574 * Disable if you run into name conflicts and want to really remove the
Paul Bakkereba3ccf2013-09-09 15:55:12 +0200575 * polarssl_strerror()
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100576 */
577#define POLARSSL_ERROR_STRERROR_DUMMY
578
579/**
Paul Bakker15566e42011-04-24 21:19:15 +0000580 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000581 *
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +0200582 * Enable the prime-number generation code.
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200583 *
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +0200584 * Requires: POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000585 */
Paul Bakker15566e42011-04-24 21:19:15 +0000586#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000587
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000588/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000589 * \def POLARSSL_FS_IO
590 *
591 * Enable functions that use the filesystem.
592 */
593#define POLARSSL_FS_IO
594
595/**
Paul Bakker43655f42011-12-15 20:11:16 +0000596 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
597 *
598 * Do not add default entropy sources. These are the platform specific,
599 * hardclock and HAVEGE based poll functions.
600 *
601 * This is useful to have more control over the added entropy sources in an
602 * application.
603 *
604 * Uncomment this macro to prevent loading of default entropy functions.
Paul Bakker43655f42011-12-15 20:11:16 +0000605 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200606//#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
Paul Bakker43655f42011-12-15 20:11:16 +0000607
608/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000609 * \def POLARSSL_NO_PLATFORM_ENTROPY
610 *
611 * Do not use built-in platform entropy functions.
612 * This is useful if your platform does not support
613 * standards like the /dev/urandom or Windows CryptoAPI.
614 *
615 * Uncomment this macro to disable the built-in platform entropy functions.
Paul Bakker6083fd22011-12-03 21:45:14 +0000616 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200617//#define POLARSSL_NO_PLATFORM_ENTROPY
Paul Bakker6083fd22011-12-03 21:45:14 +0000618
619/**
Paul Bakker6e339b52013-07-03 13:37:05 +0200620 * \def POLARSSL_MEMORY_DEBUG
621 *
622 * Enable debugging of buffer allocator memory issues. Automatically prints
623 * (to stderr) all (fatal) messages on memory allocation issues. Enables
624 * function for 'debug output' of allocated memory.
625 *
626 * Requires: POLARSSL_MEMORY_BUFFER_ALLOC_C
627 * fprintf()
628 *
629 * Uncomment this macro to let the buffer allocator print out error messages.
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200630 */
631//#define POLARSSL_MEMORY_DEBUG
Paul Bakker6e339b52013-07-03 13:37:05 +0200632
633/**
634 * \def POLARSSL_MEMORY_BACKTRACE
635 *
636 * Include backtrace information with each allocated block.
637 *
638 * Requires: POLARSSL_MEMORY_BUFFER_ALLOC_C
639 * GLIBC-compatible backtrace() an backtrace_symbols() support
640 *
641 * Uncomment this macro to include backtrace information
Paul Bakker6e339b52013-07-03 13:37:05 +0200642 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200643//#define POLARSSL_MEMORY_BACKTRACE
Paul Bakker6e339b52013-07-03 13:37:05 +0200644
645/**
Paul Bakker48377d92013-08-30 12:06:24 +0200646 * \def POLARSSL_PKCS1_V15
647 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200648 * Enable support for PKCS#1 v1.5 encoding.
649 *
Paul Bakker48377d92013-08-30 12:06:24 +0200650 * Requires: POLARSSL_RSA_C
651 *
Paul Bakker48377d92013-08-30 12:06:24 +0200652 * This enables support for PKCS#1 v1.5 operations.
653 */
654#define POLARSSL_PKCS1_V15
655
656/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000657 * \def POLARSSL_PKCS1_V21
658 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200659 * Enable support for PKCS#1 v2.1 encoding.
660 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000661 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
662 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000663 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
664 */
665#define POLARSSL_PKCS1_V21
666
667/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000668 * \def POLARSSL_RSA_NO_CRT
669 *
670 * Do not use the Chinese Remainder Theorem for the RSA private operation.
671 *
672 * Uncomment this macro to disable the use of CRT in RSA.
673 *
Paul Bakker0216cc12011-03-26 13:40:23 +0000674 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200675//#define POLARSSL_RSA_NO_CRT
Paul Bakker15566e42011-04-24 21:19:15 +0000676
677/**
678 * \def POLARSSL_SELF_TEST
679 *
680 * Enable the checkup functions (*_self_test).
681 */
682#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000683
684/**
Paul Bakker40865c82013-01-31 17:13:13 +0100685 * \def POLARSSL_SSL_ALL_ALERT_MESSAGES
686 *
687 * Enable sending of alert messages in case of encountered errors as per RFC.
688 * If you choose not to send the alert messages, PolarSSL can still communicate
689 * with other servers, only debugging of failures is harder.
690 *
691 * The advantage of not sending alert messages, is that no information is given
692 * about reasons for failures thus preventing adversaries of gaining intel.
693 *
694 * Enable sending of all alert messages
695 */
696#define POLARSSL_SSL_ALERT_MESSAGES
697
698/**
Paul Bakkerd66f0702013-01-31 16:57:45 +0100699 * \def POLARSSL_SSL_DEBUG_ALL
700 *
701 * Enable the debug messages in SSL module for all issues.
702 * Debug messages have been disabled in some places to prevent timing
703 * attacks due to (unbalanced) debugging function calls.
704 *
705 * If you need all error reporting you should enable this during debugging,
706 * but remove this for production servers that should log as well.
707 *
708 * Uncomment this macro to report all debug messages on errors introducing
709 * a timing side-channel.
710 *
Paul Bakkerd66f0702013-01-31 16:57:45 +0100711 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200712//#define POLARSSL_SSL_DEBUG_ALL
Paul Bakkerd66f0702013-01-31 16:57:45 +0100713
714/**
Paul Bakker05ef8352012-05-08 09:17:57 +0000715 * \def POLARSSL_SSL_HW_RECORD_ACCEL
716 *
717 * Enable hooking functions in SSL module for hardware acceleration of
718 * individual records.
719 *
720 * Uncomment this macro to enable hooking functions.
Paul Bakker05ef8352012-05-08 09:17:57 +0000721 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200722//#define POLARSSL_SSL_HW_RECORD_ACCEL
Paul Bakker05ef8352012-05-08 09:17:57 +0000723
724/**
Paul Bakker78a8c712013-03-06 17:01:52 +0100725 * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
726 *
727 * Enable support for receiving and parsing SSLv2 Client Hello messages for the
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200728 * SSL Server module (POLARSSL_SSL_SRV_C).
Paul Bakker78a8c712013-03-06 17:01:52 +0100729 *
730 * Comment this macro to disable support for SSLv2 Client Hello messages.
731 */
732#define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
733
734/**
Manuel Pégourié-Gonnard1a9f2c72013-11-30 18:30:06 +0100735 * \def POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE
736 *
737 * Pick the ciphersuite according to the client's preferences rather than ours
738 * in the SSL Server module (POLARSSL_SSL_SRV_C).
739 *
740 * Uncomment this macro to respect client's ciphersuite order
741 */
742//#define POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE
743
744/**
Paul Bakker05decb22013-08-15 13:33:48 +0200745 * \def POLARSSL_SSL_MAX_FRAGMENT_LENGTH
746 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200747 * Enable support for RFC 6066 max_fragment_length extension in SSL.
Paul Bakker05decb22013-08-15 13:33:48 +0200748 *
749 * Comment this macro to disable support for the max_fragment_length extension
750 */
751#define POLARSSL_SSL_MAX_FRAGMENT_LENGTH
752
753/**
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200754 * \def POLARSSL_SSL_PROTO_SSL3
755 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200756 * Enable support for SSL 3.0.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200757 *
758 * Requires: POLARSSL_MD5_C
759 * POLARSSL_SHA1_C
760 *
761 * Comment this macro to disable support for SSL 3.0
762 */
763#define POLARSSL_SSL_PROTO_SSL3
764
765/**
766 * \def POLARSSL_SSL_PROTO_TLS1
767 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200768 * Enable support for TLS 1.0.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200769 *
770 * Requires: POLARSSL_MD5_C
771 * POLARSSL_SHA1_C
772 *
773 * Comment this macro to disable support for TLS 1.0
774 */
775#define POLARSSL_SSL_PROTO_TLS1
776
777/**
778 * \def POLARSSL_SSL_PROTO_TLS1_1
779 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200780 * Enable support for TLS 1.1.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200781 *
782 * Requires: POLARSSL_MD5_C
783 * POLARSSL_SHA1_C
784 *
785 * Comment this macro to disable support for TLS 1.1
786 */
787#define POLARSSL_SSL_PROTO_TLS1_1
788
789/**
790 * \def POLARSSL_SSL_PROTO_TLS1_2
791 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200792 * Enable support for TLS 1.2.
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200793 *
Manuel Pégourié-Gonnard7c3291e2013-10-27 14:29:51 +0100794 * Requires: POLARSSL_SHA1_C or POLARSSL_SHA256_C or POLARSSL_SHA512_C
Paul Bakkerd2f068e2013-08-27 21:19:20 +0200795 * (Depends on ciphersuites)
796 *
797 * Comment this macro to disable support for TLS 1.2
798 */
799#define POLARSSL_SSL_PROTO_TLS1_2
800
801/**
Paul Bakkera503a632013-08-14 13:48:06 +0200802 * \def POLARSSL_SSL_SESSION_TICKETS
803 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200804 * Enable support for RFC 5077 session tickets in SSL.
Paul Bakkera503a632013-08-14 13:48:06 +0200805 *
806 * Requires: POLARSSL_AES_C
807 * POLARSSL_SHA256_C
Manuel Pégourié-Gonnard92cb1d32013-09-13 16:24:20 +0200808 * POLARSSL_CIPHER_MODE_CBC
Paul Bakkera503a632013-08-14 13:48:06 +0200809 *
810 * Comment this macro to disable support for SSL session tickets
811 */
812#define POLARSSL_SSL_SESSION_TICKETS
813
814/**
Paul Bakker0be444a2013-08-27 21:55:01 +0200815 * \def POLARSSL_SSL_SERVER_NAME_INDICATION
816 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200817 * Enable support for RFC 6066 server name indication (SNI) in SSL.
Paul Bakker0be444a2013-08-27 21:55:01 +0200818 *
819 * Comment this macro to disable support for server name indication in SSL
820 */
821#define POLARSSL_SSL_SERVER_NAME_INDICATION
822
823/**
Paul Bakker1f2bc622013-08-15 13:45:55 +0200824 * \def POLARSSL_SSL_TRUNCATED_HMAC
825 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200826 * Enable support for RFC 6066 truncated HMAC in SSL.
Paul Bakker1f2bc622013-08-15 13:45:55 +0200827 *
828 * Comment this macro to disable support for truncated HMAC in SSL
829 */
830#define POLARSSL_SSL_TRUNCATED_HMAC
831
832/**
Manuel Pégourié-Gonnardde053902014-02-04 13:58:39 +0100833 * \def POLARSSL_SSL_SET_CURVES
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +0100834 *
Manuel Pégourié-Gonnardde053902014-02-04 13:58:39 +0100835 * Enable ssl_set_curves().
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +0100836 *
837 * This is disabled by default since it breaks binary compatibility with the
838 * 1.3.x line. If you choose to enable it, you will need to rebuild your
839 * application against the new header files, relinking will not be enough.
840 * It will be enabled by default, or no longer an option, in the 1.4 branch.
841 *
Manuel Pégourié-Gonnardde053902014-02-04 13:58:39 +0100842 * Uncomment to make ssl_set_curves() available.
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +0100843 */
Manuel Pégourié-Gonnard79265702014-02-06 10:23:14 +0100844//#define POLARSSL_SSL_SET_CURVES
Manuel Pégourié-Gonnard5de25802014-02-03 15:56:49 +0100845
846/**
Paul Bakker2466d932013-09-28 14:40:38 +0200847 * \def POLARSSL_THREADING_ALT
848 *
849 * Provide your own alternate threading implementation.
850 *
851 * Requires: POLARSSL_THREADING_C
852 *
853 * Uncomment this to allow your own alternate threading implementation.
Paul Bakker2466d932013-09-28 14:40:38 +0200854 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200855//#define POLARSSL_THREADING_ALT
Paul Bakker2466d932013-09-28 14:40:38 +0200856
857/**
Paul Bakker2466d932013-09-28 14:40:38 +0200858 * \def POLARSSL_THREADING_PTHREAD
859 *
860 * Enable the pthread wrapper layer for the threading layer.
861 *
862 * Requires: POLARSSL_THREADING_C
863 *
864 * Uncomment this to enable pthread mutexes.
Paul Bakker2466d932013-09-28 14:40:38 +0200865 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200866//#define POLARSSL_THREADING_PTHREAD
Paul Bakker2466d932013-09-28 14:40:38 +0200867
868/**
Paul Bakkerc27c4e22013-09-23 15:01:36 +0200869 * \def POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3
870 *
871 * If set, the X509 parser will not break-off when parsing an X509 certificate
872 * and encountering an extension in a v1 or v2 certificate.
873 *
874 * Uncomment to prevent an error.
Paul Bakkerc27c4e22013-09-23 15:01:36 +0200875 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200876//#define POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3
Paul Bakkerc27c4e22013-09-23 15:01:36 +0200877
878/**
Paul Bakker5c721f92011-07-27 16:51:09 +0000879 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
880 *
881 * If set, the X509 parser will not break-off when parsing an X509 certificate
882 * and encountering an unknown critical extension.
883 *
884 * Uncomment to prevent an error.
Paul Bakker5c721f92011-07-27 16:51:09 +0000885 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200886//#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
Paul Bakker2770fbd2012-07-03 13:30:23 +0000887
888/**
889 * \def POLARSSL_ZLIB_SUPPORT
890 *
891 * If set, the SSL/TLS module uses ZLIB to support compression and
892 * decompression of packet data.
893 *
894 * Used in: library/ssl_tls.c
895 * library/ssl_cli.c
896 * library/ssl_srv.c
897 *
898 * This feature requires zlib library and headers to be present.
899 *
900 * Uncomment to enable use of ZLIB
Paul Bakker2770fbd2012-07-03 13:30:23 +0000901 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +0200902//#define POLARSSL_ZLIB_SUPPORT
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +0200903/* \} name SECTION: PolarSSL feature support */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000904
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000905/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000906 * \name SECTION: PolarSSL modules
907 *
908 * This section enables or disables entire modules in PolarSSL
909 * \{
910 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000911
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000912/**
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +0100913 * \def POLARSSL_AESNI_C
914 *
915 * Enable AES-NI support on x86-64.
916 *
917 * Module: library/aesni.c
918 * Caller: library/aes.c
919 *
920 * Requires: POLARSSL_HAVE_ASM
921 *
922 * This modules adds support for the AES-NI instructions on x86-64
923 */
924#define POLARSSL_AESNI_C
925
926/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000927 * \def POLARSSL_AES_C
928 *
929 * Enable the AES block cipher.
930 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000931 * Module: library/aes.c
932 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000933 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000934 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000935 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000936 * This module enables the following ciphersuites (if other requisites are
937 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +0100938 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
939 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
940 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
941 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
942 * TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
943 * TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
944 * TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
945 * TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
946 * TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
947 * TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
948 * TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
949 * TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200950 * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
951 * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
952 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
953 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
954 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Paul Bakker645ce3a2012-10-31 12:32:41 +0000955 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200956 * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +0100957 * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200958 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
959 * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
960 * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
961 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
962 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
963 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
964 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
965 * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
966 * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
967 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
968 * TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
969 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384
970 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA384
971 * TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
972 * TLS_DHE_PSK_WITH_AES_256_CBC_SHA
973 * TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
974 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
975 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA256
976 * TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
977 * TLS_DHE_PSK_WITH_AES_128_CBC_SHA
978 * TLS_RSA_WITH_AES_256_GCM_SHA384
979 * TLS_RSA_WITH_AES_256_CBC_SHA256
980 * TLS_RSA_WITH_AES_256_CBC_SHA
981 * TLS_RSA_WITH_AES_128_GCM_SHA256
982 * TLS_RSA_WITH_AES_128_CBC_SHA256
983 * TLS_RSA_WITH_AES_128_CBC_SHA
984 * TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
985 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA384
986 * TLS_RSA_PSK_WITH_AES_256_CBC_SHA
987 * TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
988 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA256
989 * TLS_RSA_PSK_WITH_AES_128_CBC_SHA
990 * TLS_PSK_WITH_AES_256_GCM_SHA384
991 * TLS_PSK_WITH_AES_256_CBC_SHA384
Paul Bakkerd4a56ec2013-04-16 18:05:29 +0200992 * TLS_PSK_WITH_AES_256_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +0200993 * TLS_PSK_WITH_AES_128_GCM_SHA256
994 * TLS_PSK_WITH_AES_128_CBC_SHA256
995 * TLS_PSK_WITH_AES_128_CBC_SHA
Paul Bakker6deb37e2013-02-19 13:17:08 +0100996 *
Paul Bakkercff68422013-09-15 20:43:33 +0200997 * PEM_PARSE uses AES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +0000998 */
Paul Bakker40e46942009-01-03 21:51:57 +0000999#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001000
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001001/**
1002 * \def POLARSSL_ARC4_C
1003 *
1004 * Enable the ARCFOUR stream cipher.
1005 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001006 * Module: library/arc4.c
1007 * Caller: library/ssl_tls.c
1008 *
Paul Bakker41c83d32013-03-20 14:39:14 +01001009 * This module enables the following ciphersuites (if other requisites are
1010 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001011 * TLS_ECDH_ECDSA_WITH_RC4_128_SHA
1012 * TLS_ECDH_RSA_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001013 * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +01001014 * TLS_ECDHE_RSA_WITH_RC4_128_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001015 * TLS_ECDHE_PSK_WITH_RC4_128_SHA
1016 * TLS_DHE_PSK_WITH_RC4_128_SHA
1017 * TLS_RSA_WITH_RC4_128_SHA
1018 * TLS_RSA_WITH_RC4_128_MD5
1019 * TLS_RSA_PSK_WITH_RC4_128_SHA
Paul Bakkerd4a56ec2013-04-16 18:05:29 +02001020 * TLS_PSK_WITH_RC4_128_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +00001021 */
Paul Bakker40e46942009-01-03 21:51:57 +00001022#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001023
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001024/**
Paul Bakkerefc30292011-11-10 14:43:23 +00001025 * \def POLARSSL_ASN1_PARSE_C
1026 *
1027 * Enable the generic ASN1 parser.
1028 *
1029 * Module: library/asn1.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001030 * Caller: library/x509.c
1031 * library/dhm.c
1032 * library/pkcs12.c
1033 * library/pkcs5.c
1034 * library/pkparse.c
Paul Bakkerefc30292011-11-10 14:43:23 +00001035 */
1036#define POLARSSL_ASN1_PARSE_C
1037
1038/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001039 * \def POLARSSL_ASN1_WRITE_C
1040 *
1041 * Enable the generic ASN1 writer.
1042 *
1043 * Module: library/asn1write.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001044 * Caller: library/ecdsa.c
1045 * library/pkwrite.c
1046 * library/x509_create.c
1047 * library/x509write_crt.c
1048 * library/x509write_csr.c
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001049 */
1050#define POLARSSL_ASN1_WRITE_C
1051
1052/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001053 * \def POLARSSL_BASE64_C
1054 *
1055 * Enable the Base64 module.
1056 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001057 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +00001058 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001059 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001060 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +00001061 */
Paul Bakker40e46942009-01-03 21:51:57 +00001062#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001063
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001064/**
1065 * \def POLARSSL_BIGNUM_C
1066 *
Paul Bakker9a736322012-11-14 12:39:52 +00001067 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001068 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001069 * Module: library/bignum.c
1070 * Caller: library/dhm.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001071 * library/ecp.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001072 * library/rsa.c
1073 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001074 *
1075 * This module is required for RSA and DHM support.
1076 */
Paul Bakker40e46942009-01-03 21:51:57 +00001077#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001078
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001079/**
Paul Bakkera9379c02012-07-04 11:02:11 +00001080 * \def POLARSSL_BLOWFISH_C
1081 *
1082 * Enable the Blowfish block cipher.
1083 *
1084 * Module: library/blowfish.c
1085 */
1086#define POLARSSL_BLOWFISH_C
1087
1088/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001089 * \def POLARSSL_CAMELLIA_C
1090 *
1091 * Enable the Camellia block cipher.
1092 *
Paul Bakker38119b12009-01-10 23:31:23 +00001093 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +00001094 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +00001095 *
Paul Bakker645ce3a2012-10-31 12:32:41 +00001096 * This module enables the following ciphersuites (if other requisites are
1097 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001098 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
1099 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
1100 * TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256
1101 * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
1102 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
1103 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
1104 * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
1105 * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001106 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
1107 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
1108 * TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384
1109 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
1110 * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384
Paul Bakker645ce3a2012-10-31 12:32:41 +00001111 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001112 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
1113 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
1114 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
1115 * TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256
1116 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
1117 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
1118 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
1119 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
1120 * TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384
1121 * TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
1122 * TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384
1123 * TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256
1124 * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
1125 * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
1126 * TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384
1127 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
1128 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
1129 * TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256
1130 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
1131 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
1132 * TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384
1133 * TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384
1134 * TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256
1135 * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
1136 * TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384
1137 * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
1138 * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
1139 * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
Paul Bakker38119b12009-01-10 23:31:23 +00001140 */
1141#define POLARSSL_CAMELLIA_C
1142
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001143/**
1144 * \def POLARSSL_CERTS_C
1145 *
1146 * Enable the test certificates.
1147 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001148 * Module: library/certs.c
1149 * Caller:
1150 *
Manuel Pégourié-Gonnard18dc0e22013-10-27 14:35:02 +01001151 * Requires: POLARSSL_PEM_PARSE_C
1152 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001153 * This module is used for testing (ssl_client/server).
1154 */
Paul Bakker40e46942009-01-03 21:51:57 +00001155#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001156
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001157/**
1158 * \def POLARSSL_CIPHER_C
1159 *
1160 * Enable the generic cipher layer.
1161 *
Paul Bakker8123e9d2011-01-06 15:37:30 +00001162 * Module: library/cipher.c
Paul Bakker04784f52013-08-19 13:30:57 +02001163 * Caller: library/ssl_tls.c
Paul Bakker8123e9d2011-01-06 15:37:30 +00001164 *
1165 * Uncomment to enable generic cipher wrappers.
1166 */
1167#define POLARSSL_CIPHER_C
1168
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001169/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +00001170 * \def POLARSSL_CTR_DRBG_C
1171 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001172 * Enable the CTR_DRBG AES-256-based random generator.
Paul Bakker0e04d0e2011-11-27 14:46:59 +00001173 *
1174 * Module: library/ctr_drbg.c
1175 * Caller:
1176 *
Paul Bakker6083fd22011-12-03 21:45:14 +00001177 * Requires: POLARSSL_AES_C
1178 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +00001179 * This module provides the CTR_DRBG AES-256 random number generator.
1180 */
1181#define POLARSSL_CTR_DRBG_C
1182
1183/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001184 * \def POLARSSL_DEBUG_C
1185 *
1186 * Enable the debug functions.
1187 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001188 * Module: library/debug.c
1189 * Caller: library/ssl_cli.c
1190 * library/ssl_srv.c
1191 * library/ssl_tls.c
1192 *
1193 * This module provides debugging functions.
1194 */
Paul Bakker40e46942009-01-03 21:51:57 +00001195#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001196
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001197/**
1198 * \def POLARSSL_DES_C
1199 *
1200 * Enable the DES block cipher.
1201 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001202 * Module: library/des.c
Paul Bakker6deb37e2013-02-19 13:17:08 +01001203 * Caller: library/pem.c
1204 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001205 *
Paul Bakker645ce3a2012-10-31 12:32:41 +00001206 * This module enables the following ciphersuites (if other requisites are
1207 * enabled as well):
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01001208 * TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
1209 * TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001210 * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
Paul Bakker41c83d32013-03-20 14:39:14 +01001211 * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001212 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
1213 * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
1214 * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
1215 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
1216 * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
Paul Bakkerd4a56ec2013-04-16 18:05:29 +02001217 * TLS_PSK_WITH_3DES_EDE_CBC_SHA
Paul Bakker6deb37e2013-02-19 13:17:08 +01001218 *
Paul Bakkercff68422013-09-15 20:43:33 +02001219 * PEM_PARSE uses DES/3DES for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +00001220 */
Paul Bakker40e46942009-01-03 21:51:57 +00001221#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001222
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001223/**
1224 * \def POLARSSL_DHM_C
1225 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001226 * Enable the Diffie-Hellman-Merkle module.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001227 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001228 * Module: library/dhm.c
1229 * Caller: library/ssl_cli.c
1230 * library/ssl_srv.c
1231 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001232 * This module is used by the following key exchanges:
1233 * DHE-RSA, DHE-PSK
Paul Bakker5121ce52009-01-03 21:22:43 +00001234 */
Paul Bakker40e46942009-01-03 21:51:57 +00001235#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001236
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001237/**
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001238 * \def POLARSSL_ECDH_C
1239 *
1240 * Enable the elliptic curve Diffie-Hellman library.
1241 *
1242 * Module: library/ecdh.c
Paul Bakker41c83d32013-03-20 14:39:14 +01001243 * Caller: library/ssl_cli.c
1244 * library/ssl_srv.c
1245 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001246 * This module is used by the following key exchanges:
1247 * ECDHE-ECDSA, ECDHE-RSA, DHE-PSK
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001248 *
1249 * Requires: POLARSSL_ECP_C
1250 */
1251#define POLARSSL_ECDH_C
1252
1253/**
1254 * \def POLARSSL_ECDSA_C
1255 *
1256 * Enable the elliptic curve DSA library.
1257 *
1258 * Module: library/ecdsa.c
1259 * Caller:
1260 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001261 * This module is used by the following key exchanges:
1262 * ECDHE-ECDSA
1263 *
Manuel Pégourié-Gonnard4846f5e2013-08-08 14:36:15 +02001264 * Requires: POLARSSL_ECP_C, POLARSSL_ASN1_WRITE_C, POLARSSL_ASN1_PARSE_C
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001265 */
1266#define POLARSSL_ECDSA_C
1267
1268/**
1269 * \def POLARSSL_ECP_C
1270 *
1271 * Enable the elliptic curve over GF(p) library.
1272 *
1273 * Module: library/ecp.c
1274 * Caller: library/ecdh.c
1275 * library/ecdsa.c
1276 *
Manuel Pégourié-Gonnardb8012fc2013-10-10 15:40:49 +02001277 * Requires: POLARSSL_BIGNUM_C and at least one POLARSSL_ECP_DP_XXX_ENABLED
Paul Bakkerd589a0d2013-03-13 16:30:17 +01001278 */
1279#define POLARSSL_ECP_C
1280
1281/**
Paul Bakker6083fd22011-12-03 21:45:14 +00001282 * \def POLARSSL_ENTROPY_C
1283 *
1284 * Enable the platform-specific entropy code.
1285 *
1286 * Module: library/entropy.c
1287 * Caller:
1288 *
Paul Bakker9e36f042013-06-30 14:34:05 +02001289 * Requires: POLARSSL_SHA512_C
Paul Bakker6083fd22011-12-03 21:45:14 +00001290 *
1291 * This module provides a generic entropy pool
1292 */
1293#define POLARSSL_ENTROPY_C
1294
1295/**
Paul Bakker9d781402011-05-09 16:17:09 +00001296 * \def POLARSSL_ERROR_C
1297 *
1298 * Enable error code to error string conversion.
1299 *
1300 * Module: library/error.c
1301 * Caller:
1302 *
1303 * This module enables err_strerror().
1304 */
1305#define POLARSSL_ERROR_C
1306
1307/**
Paul Bakker89e80c92012-03-20 13:50:09 +00001308 * \def POLARSSL_GCM_C
1309 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001310 * Enable the Galois/Counter Mode (GCM) for AES.
Paul Bakker89e80c92012-03-20 13:50:09 +00001311 *
1312 * Module: library/gcm.c
1313 *
Manuel Pégourié-Gonnard7bd8a992013-10-24 13:39:39 +02001314 * Requires: POLARSSL_AES_C or POLARSSL_CAMELLIA_C
Paul Bakker645ce3a2012-10-31 12:32:41 +00001315 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001316 * This module enables the AES-GCM and CAMELLIA-GCM ciphersuites, if other
1317 * requisites are enabled as well.
Paul Bakker89e80c92012-03-20 13:50:09 +00001318 */
1319#define POLARSSL_GCM_C
1320
1321/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001322 * \def POLARSSL_HAVEGE_C
1323 *
1324 * Enable the HAVEGE random generator.
1325 *
Paul Bakker2a844242013-06-24 13:01:53 +02001326 * Warning: the HAVEGE random generator is not suitable for virtualized
1327 * environments
1328 *
1329 * Warning: the HAVEGE random generator is dependent on timing and specific
1330 * processor traits. It is therefore not advised to use HAVEGE as
1331 * your applications primary random generator or primary entropy pool
1332 * input. As a secondary input to your entropy pool, it IS able add
1333 * the (limited) extra entropy it provides.
1334 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001335 * Module: library/havege.c
1336 * Caller:
1337 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001338 * Requires: POLARSSL_TIMING_C
1339 *
Paul Bakker2a844242013-06-24 13:01:53 +02001340 * Uncomment to enable the HAVEGE random generator.
Paul Bakker2a844242013-06-24 13:01:53 +02001341 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001342//#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001343
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001344/**
Manuel Pégourié-Gonnard490bdf32014-01-27 14:03:10 +01001345 * \def POLARSSL_HMAC_DRBG_C
1346 *
1347 * Enable the HMAC_DRBG random generator.
1348 *
1349 * Module: library/hmac_drbg.c
1350 * Caller:
1351 *
1352 * Requires: POLARSSL_MD_C
1353 *
1354 * Uncomment to enable the HMAC_DRBG random number geerator.
1355 */
1356#define POLARSSL_HMAC_DRBG_C
1357
1358/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001359 * \def POLARSSL_MD_C
1360 *
1361 * Enable the generic message digest layer.
1362 *
Paul Bakker17373852011-01-06 14:20:01 +00001363 * Module: library/md.c
1364 * Caller:
1365 *
1366 * Uncomment to enable generic message digest wrappers.
1367 */
1368#define POLARSSL_MD_C
1369
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001370/**
1371 * \def POLARSSL_MD2_C
1372 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001373 * Enable the MD2 hash algorithm.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001374 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001375 * Module: library/md2.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001376 * Caller:
Paul Bakker5121ce52009-01-03 21:22:43 +00001377 *
1378 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
Paul Bakker6506aff2009-07-28 20:52:02 +00001379 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001380//#define POLARSSL_MD2_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001381
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001382/**
1383 * \def POLARSSL_MD4_C
1384 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001385 * Enable the MD4 hash algorithm.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001386 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001387 * Module: library/md4.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001388 * Caller:
Paul Bakker5121ce52009-01-03 21:22:43 +00001389 *
1390 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
Paul Bakker6506aff2009-07-28 20:52:02 +00001391 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001392//#define POLARSSL_MD4_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001393
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001394/**
1395 * \def POLARSSL_MD5_C
1396 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001397 * Enable the MD5 hash algorithm.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001398 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001399 * Module: library/md5.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001400 * Caller: library/md.c
1401 * library/pem.c
Paul Bakker6deb37e2013-02-19 13:17:08 +01001402 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001403 *
1404 * This module is required for SSL/TLS and X.509.
Paul Bakkercff68422013-09-15 20:43:33 +02001405 * PEM_PARSE uses MD5 for decrypting encrypted keys.
Paul Bakker5121ce52009-01-03 21:22:43 +00001406 */
Paul Bakker40e46942009-01-03 21:51:57 +00001407#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001408
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001409/**
Paul Bakker6e339b52013-07-03 13:37:05 +02001410 * \def POLARSSL_MEMORY_C
1411 *
1412 * Enable the memory allocation layer.
1413 * By default PolarSSL uses the system-provided malloc() and free().
1414 * (As long as POLARSSL_MEMORY_STDMALLOC and POLARSSL_MEMORY_STDFREE
1415 * are defined and unmodified)
1416 *
1417 * This allows different allocators (self-implemented or provided)
1418 *
1419 * Enable this layer to allow use of alternative memory allocators.
Paul Bakker6e339b52013-07-03 13:37:05 +02001420 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001421//#define POLARSSL_MEMORY_C
Paul Bakker6e339b52013-07-03 13:37:05 +02001422
1423/**
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001424 * \def POLARSSL_MEMORY_BUFFER_ALLOC_C
1425 *
1426 * Enable the buffer allocator implementation that makes use of a (stack)
1427 * based buffer to 'allocate' dynamic memory. (replaces malloc() and free()
1428 * calls)
Paul Bakker6e339b52013-07-03 13:37:05 +02001429 *
1430 * Module: library/memory_buffer_alloc.c
1431 *
1432 * Requires: POLARSSL_MEMORY_C
1433 *
1434 * Enable this module to enable the buffer memory allocator.
Paul Bakker6e339b52013-07-03 13:37:05 +02001435 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001436//#define POLARSSL_MEMORY_BUFFER_ALLOC_C
Paul Bakker6e339b52013-07-03 13:37:05 +02001437
1438/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001439 * \def POLARSSL_NET_C
1440 *
1441 * Enable the TCP/IP networking routines.
1442 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001443 * Module: library/net.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001444 *
1445 * This module provides TCP/IP networking routines.
1446 */
Paul Bakker40e46942009-01-03 21:51:57 +00001447#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001448
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001449/**
Paul Bakkerc70b9822013-04-07 22:00:46 +02001450 * \def POLARSSL_OID_C
1451 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001452 * Enable the OID database.
Paul Bakkerc70b9822013-04-07 22:00:46 +02001453 *
1454 * Module: library/oid.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001455 * Caller: library/asn1write.c
1456 * library/pkcs5.c
1457 * library/pkparse.c
1458 * library/pkwrite.c
1459 * library/rsa.c
1460 * library/x509.c
1461 * library/x509_create.c
1462 * library/x509_crl.c
1463 * library/x509_crt.c
1464 * library/x509_csr.c
1465 * library/x509write_crt.c
1466 * library/x509write_csr.c
Paul Bakkerc70b9822013-04-07 22:00:46 +02001467 *
1468 * This modules translates between OIDs and internal values.
1469 */
1470#define POLARSSL_OID_C
1471
1472/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001473 * \def POLARSSL_PADLOCK_C
1474 *
1475 * Enable VIA Padlock support on x86.
1476 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001477 * Module: library/padlock.c
1478 * Caller: library/aes.c
1479 *
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +01001480 * Requires: POLARSSL_HAVE_ASM
1481 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001482 * This modules adds support for the VIA PadLock on x86.
1483 */
Paul Bakker40e46942009-01-03 21:51:57 +00001484#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001485
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001486/**
Paul Bakkerf518b162012-08-23 13:03:18 +00001487 * \def POLARSSL_PBKDF2_C
1488 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001489 * Enable PKCS#5 PBKDF2 key derivation function.
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001490 * DEPRECATED: Use POLARSSL_PKCS5_C instead
Paul Bakkerf518b162012-08-23 13:03:18 +00001491 *
1492 * Module: library/pbkdf2.c
1493 *
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001494 * Requires: POLARSSL_PKCS5_C
Paul Bakkerf518b162012-08-23 13:03:18 +00001495 *
1496 * This module adds support for the PKCS#5 PBKDF2 key derivation function.
Paul Bakkerf518b162012-08-23 13:03:18 +00001497 */
Paul Bakker370e90c2013-04-08 15:19:43 +02001498#define POLARSSL_PBKDF2_C
Paul Bakkerf518b162012-08-23 13:03:18 +00001499
1500/**
Paul Bakkercff68422013-09-15 20:43:33 +02001501 * \def POLARSSL_PEM_PARSE_C
Paul Bakker96743fc2011-02-12 14:30:57 +00001502 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001503 * Enable PEM decoding / parsing.
Paul Bakker96743fc2011-02-12 14:30:57 +00001504 *
1505 * Module: library/pem.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001506 * Caller: library/dhm.c
Paul Bakkercff68422013-09-15 20:43:33 +02001507 * library/pkparse.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001508 * library/x509_crl.c
1509 * library/x509_crt.c
1510 * library/x509_csr.c
Paul Bakker96743fc2011-02-12 14:30:57 +00001511 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001512 * Requires: POLARSSL_BASE64_C
1513 *
Paul Bakkercff68422013-09-15 20:43:33 +02001514 * This modules adds support for decoding / parsing PEM files.
Paul Bakker96743fc2011-02-12 14:30:57 +00001515 */
Paul Bakkercff68422013-09-15 20:43:33 +02001516#define POLARSSL_PEM_PARSE_C
1517
1518/**
1519 * \def POLARSSL_PEM_WRITE_C
1520 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001521 * Enable PEM encoding / writing.
Paul Bakkercff68422013-09-15 20:43:33 +02001522 *
1523 * Module: library/pem.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001524 * Caller: library/pkwrite.c
1525 * library/x509write_crt.c
1526 * library/x509write_csr.c
Paul Bakkercff68422013-09-15 20:43:33 +02001527 *
1528 * Requires: POLARSSL_BASE64_C
1529 *
1530 * This modules adds support for encoding / writing PEM files.
1531 */
1532#define POLARSSL_PEM_WRITE_C
Paul Bakker96743fc2011-02-12 14:30:57 +00001533
1534/**
Manuel Pégourié-Gonnardc40b4c32013-08-22 13:29:31 +02001535 * \def POLARSSL_PK_C
1536 *
1537 * Enable the generic public (asymetric) key layer.
1538 *
1539 * Module: library/pk.c
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02001540 * Caller: library/ssl_tls.c
Manuel Pégourié-Gonnardc40b4c32013-08-22 13:29:31 +02001541 * library/ssl_cli.c
1542 * library/ssl_srv.c
1543 *
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02001544 * Requires: POLARSSL_RSA_C or POLARSSL_ECP_C
1545 *
Manuel Pégourié-Gonnardc40b4c32013-08-22 13:29:31 +02001546 * Uncomment to enable generic public key wrappers.
1547 */
1548#define POLARSSL_PK_C
1549
1550/**
Paul Bakker4606c732013-09-15 17:04:23 +02001551 * \def POLARSSL_PK_PARSE_C
1552 *
1553 * Enable the generic public (asymetric) key parser.
1554 *
1555 * Module: library/pkparse.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001556 * Caller: library/x509_crt.c
1557 * library/x509_csr.c
Paul Bakker4606c732013-09-15 17:04:23 +02001558 *
1559 * Requires: POLARSSL_PK_C
1560 *
1561 * Uncomment to enable generic public key parse functions.
1562 */
1563#define POLARSSL_PK_PARSE_C
1564
1565/**
1566 * \def POLARSSL_PK_WRITE_C
1567 *
Paul Bakkerf20ba4b2013-09-16 22:46:20 +02001568 * Enable the generic public (asymetric) key writer.
Paul Bakker4606c732013-09-15 17:04:23 +02001569 *
1570 * Module: library/pkwrite.c
1571 * Caller: library/x509write.c
1572 *
1573 * Requires: POLARSSL_PK_C
1574 *
1575 * Uncomment to enable generic public key write functions.
1576 */
1577#define POLARSSL_PK_WRITE_C
1578
1579/**
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001580 * \def POLARSSL_PKCS5_C
1581 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001582 * Enable PKCS#5 functions.
Paul Bakkerb0c19a42013-06-24 19:26:38 +02001583 *
1584 * Module: library/pkcs5.c
1585 *
1586 * Requires: POLARSSL_MD_C
1587 *
1588 * This module adds support for the PKCS#5 functions.
1589 */
1590#define POLARSSL_PKCS5_C
1591
1592/**
Paul Bakker5690efc2011-05-26 13:16:06 +00001593 * \def POLARSSL_PKCS11_C
1594 *
Paul Bakkereb2c6582012-09-27 19:15:01 +00001595 * Enable wrapper for PKCS#11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +00001596 *
Manuel Pégourié-Gonnard51be5592013-08-22 13:35:53 +02001597 * Module: library/pkcs11.c
1598 * Caller: library/pk.c
Paul Bakker5690efc2011-05-26 13:16:06 +00001599 *
Manuel Pégourié-Gonnard51be5592013-08-22 13:35:53 +02001600 * Requires: POLARSSL_PK_C
Paul Bakker5690efc2011-05-26 13:16:06 +00001601 *
Paul Bakkereb2c6582012-09-27 19:15:01 +00001602 * This module enables SSL/TLS PKCS #11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +00001603 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
Paul Bakker5690efc2011-05-26 13:16:06 +00001604 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001605//#define POLARSSL_PKCS11_C
Paul Bakker5690efc2011-05-26 13:16:06 +00001606
1607/**
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001608 * \def POLARSSL_PKCS12_C
1609 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001610 * Enable PKCS#12 PBE functions.
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001611 * Adds algorithms for parsing PKCS#8 encrypted private keys
1612 *
1613 * Module: library/pkcs12.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001614 * Caller: library/pkparse.c
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001615 *
Paul Bakkerb0713c72013-06-24 19:34:08 +02001616 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_CIPHER_C, POLARSSL_MD_C
1617 * Can use: POLARSSL_ARC4_C
Paul Bakkerf1f21fe2013-06-24 19:17:19 +02001618 *
1619 * This module enables PKCS#12 functions.
1620 */
1621#define POLARSSL_PKCS12_C
1622
1623/**
Paul Bakker61b699e2014-01-22 13:35:29 +01001624 * \def POLARSSL_RIPEMD160_C
Manuel Pégourié-Gonnardcab4a882014-01-17 12:42:35 +01001625 *
1626 * Enable the RIPEMD-160 hash algorithm.
1627 *
Paul Bakker61b699e2014-01-22 13:35:29 +01001628 * Module: library/ripemd160.c
Manuel Pégourié-Gonnardcab4a882014-01-17 12:42:35 +01001629 * Caller: library/md.c
1630 *
1631 */
Paul Bakker61b699e2014-01-22 13:35:29 +01001632#define POLARSSL_RIPEMD160_C
Manuel Pégourié-Gonnardcab4a882014-01-17 12:42:35 +01001633
1634/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001635 * \def POLARSSL_RSA_C
1636 *
1637 * Enable the RSA public-key cryptosystem.
1638 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001639 * Module: library/rsa.c
1640 * Caller: library/ssl_cli.c
1641 * library/ssl_srv.c
1642 * library/ssl_tls.c
1643 * library/x509.c
1644 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001645 * This module is used by the following key exchanges:
1646 * RSA, DHE-RSA, ECDHE-RSA, RSA-PSK
Paul Bakker5690efc2011-05-26 13:16:06 +00001647 *
Manuel Pégourié-Gonnard9d703732013-10-25 18:01:50 +02001648 * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001649 */
Paul Bakker40e46942009-01-03 21:51:57 +00001650#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001651
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001652/**
1653 * \def POLARSSL_SHA1_C
1654 *
1655 * Enable the SHA1 cryptographic hash algorithm.
1656 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001657 * Module: library/sha1.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001658 * Caller: library/md.c
1659 * library/ssl_cli.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001660 * library/ssl_srv.c
1661 * library/ssl_tls.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001662 * library/x509write_crt.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001663 *
1664 * This module is required for SSL/TLS and SHA1-signed certificates.
1665 */
Paul Bakker40e46942009-01-03 21:51:57 +00001666#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001667
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001668/**
Paul Bakker9e36f042013-06-30 14:34:05 +02001669 * \def POLARSSL_SHA256_C
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001670 *
1671 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
Paul Bakker9e36f042013-06-30 14:34:05 +02001672 * (Used to be POLARSSL_SHA2_C)
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001673 *
Paul Bakker9e36f042013-06-30 14:34:05 +02001674 * Module: library/sha256.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001675 * Caller: library/entropy.c
1676 * library/md.c
1677 * library/ssl_cli.c
1678 * library/ssl_srv.c
1679 * library/ssl_tls.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001680 *
1681 * This module adds support for SHA-224 and SHA-256.
Paul Bakker769075d2012-11-24 11:26:46 +01001682 * This module is required for the SSL/TLS 1.2 PRF function.
Paul Bakker5121ce52009-01-03 21:22:43 +00001683 */
Paul Bakker9e36f042013-06-30 14:34:05 +02001684#define POLARSSL_SHA256_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001685
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001686/**
Paul Bakker9e36f042013-06-30 14:34:05 +02001687 * \def POLARSSL_SHA512_C
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001688 *
1689 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
Paul Bakker9e36f042013-06-30 14:34:05 +02001690 * (Used to be POLARSSL_SHA4_C)
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001691 *
Paul Bakker9e36f042013-06-30 14:34:05 +02001692 * Module: library/sha512.c
Manuel Pégourié-Gonnardfe286462013-09-20 14:10:14 +02001693 * Caller: library/entropy.c
1694 * library/md.c
1695 * library/ssl_cli.c
1696 * library/ssl_srv.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001697 *
1698 * This module adds support for SHA-384 and SHA-512.
1699 */
Paul Bakker9e36f042013-06-30 14:34:05 +02001700#define POLARSSL_SHA512_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001701
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001702/**
Paul Bakker0a597072012-09-25 21:55:46 +00001703 * \def POLARSSL_SSL_CACHE_C
1704 *
1705 * Enable simple SSL cache implementation.
1706 *
1707 * Module: library/ssl_cache.c
1708 * Caller:
1709 *
1710 * Requires: POLARSSL_SSL_CACHE_C
1711 */
1712#define POLARSSL_SSL_CACHE_C
1713
1714/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001715 * \def POLARSSL_SSL_CLI_C
1716 *
1717 * Enable the SSL/TLS client code.
1718 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001719 * Module: library/ssl_cli.c
1720 * Caller:
1721 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001722 * Requires: POLARSSL_SSL_TLS_C
1723 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001724 * This module is required for SSL/TLS client support.
1725 */
Paul Bakker40e46942009-01-03 21:51:57 +00001726#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001727
Paul Bakker9a736322012-11-14 12:39:52 +00001728/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001729 * \def POLARSSL_SSL_SRV_C
1730 *
1731 * Enable the SSL/TLS server code.
1732 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001733 * Module: library/ssl_srv.c
1734 * Caller:
1735 *
Paul Bakker5690efc2011-05-26 13:16:06 +00001736 * Requires: POLARSSL_SSL_TLS_C
1737 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001738 * This module is required for SSL/TLS server support.
1739 */
Paul Bakker40e46942009-01-03 21:51:57 +00001740#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001741
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001742/**
1743 * \def POLARSSL_SSL_TLS_C
1744 *
Paul Bakkere29ab062011-05-18 13:26:54 +00001745 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001746 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001747 * Module: library/ssl_tls.c
1748 * Caller: library/ssl_cli.c
1749 * library/ssl_srv.c
1750 *
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02001751 * Requires: POLARSSL_CIPHER_C, POLARSSL_MD_C
Paul Bakker577e0062013-08-28 11:57:20 +02001752 * and at least one of the POLARSSL_SSL_PROTO_* defines
Paul Bakker5690efc2011-05-26 13:16:06 +00001753 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001754 * This module is required for SSL/TLS.
1755 */
Paul Bakker40e46942009-01-03 21:51:57 +00001756#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001757
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001758/**
Paul Bakker2466d932013-09-28 14:40:38 +02001759 * \def POLARSSL_THREADING_C
1760 *
1761 * Enable the threading abstraction layer.
1762 * By default PolarSSL assumes it is used in a non-threaded environment or that
1763 * contexts are not shared between threads. If you do intend to use contexts
1764 * between threads, you will need to enable this layer to prevent race
1765 * conditions.
1766 *
1767 * Module: library/threading.c
1768 *
1769 * This allows different threading implementations (self-implemented or
1770 * provided).
1771 *
Paul Bakkera8fd3e32013-12-31 11:54:08 +01001772 * You will have to enable either POLARSSL_THREADING_ALT or
1773 * POLARSSL_THREADING_PTHREAD.
Paul Bakker2466d932013-09-28 14:40:38 +02001774 *
1775 * Enable this layer to allow use of mutexes within PolarSSL
Paul Bakker2466d932013-09-28 14:40:38 +02001776 */
Paul Bakkera7ea6a52013-10-15 11:55:10 +02001777//#define POLARSSL_THREADING_C
Paul Bakker2466d932013-09-28 14:40:38 +02001778
1779/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001780 * \def POLARSSL_TIMING_C
1781 *
1782 * Enable the portable timing interface.
1783 *
Paul Bakker5121ce52009-01-03 21:22:43 +00001784 * Module: library/timing.c
1785 * Caller: library/havege.c
1786 *
1787 * This module is used by the HAVEGE random number generator.
Paul Bakkerecd54fb2013-07-03 14:48:29 +02001788 */
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +02001789#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001790
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001791/**
1792 * \def POLARSSL_VERSION_C
1793 *
1794 * Enable run-time version information.
1795 *
Paul Bakker0a62cd12011-01-21 11:00:08 +00001796 * Module: library/version.c
1797 *
1798 * This module provides run-time version information.
1799 */
1800#define POLARSSL_VERSION_C
1801
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001802/**
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001803 * \def POLARSSL_X509_USE_C
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001804 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001805 * Enable X.509 core for using certificates.
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001806 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001807 * Module: library/x509.c
1808 * Caller: library/x509_crl.c
1809 * library/x509_crt.c
1810 * library/x509_csr.c
Paul Bakker5121ce52009-01-03 21:22:43 +00001811 *
Paul Bakkerc70b9822013-04-07 22:00:46 +02001812 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_OID_C,
Paul Bakker4606c732013-09-15 17:04:23 +02001813 * POLARSSL_PK_PARSE_C
Paul Bakker5690efc2011-05-26 13:16:06 +00001814 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001815 * This module is required for the X.509 parsing modules.
Paul Bakker5121ce52009-01-03 21:22:43 +00001816 */
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001817#define POLARSSL_X509_USE_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001818
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001819/**
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001820 * \def POLARSSL_X509_CRT_PARSE_C
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001821 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001822 * Enable X.509 certificate parsing.
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001823 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001824 * Module: library/x509_crt.c
1825 * Caller: library/ssl_cli.c
1826 * library/ssl_srv.c
1827 * library/ssl_tls.c
1828 *
1829 * Requires: POLARSSL_X509_USE_C
1830 *
1831 * This module is required for X.509 certificate parsing.
1832 */
1833#define POLARSSL_X509_CRT_PARSE_C
1834
1835/**
1836 * \def POLARSSL_X509_CRL_PARSE_C
1837 *
1838 * Enable X.509 CRL parsing.
1839 *
1840 * Module: library/x509_crl.c
1841 * Caller: library/x509_crt.c
1842 *
1843 * Requires: POLARSSL_X509_USE_C
1844 *
1845 * This module is required for X.509 CRL parsing.
1846 */
1847#define POLARSSL_X509_CRL_PARSE_C
1848
1849/**
1850 * \def POLARSSL_X509_CSR_PARSE_C
1851 *
1852 * Enable X.509 Certificate Signing Request (CSR) parsing.
1853 *
1854 * Module: library/x509_csr.c
1855 * Caller: library/x509_crt_write.c
1856 *
1857 * Requires: POLARSSL_X509_USE_C
1858 *
1859 * This module is used for reading X.509 certificate request.
1860 */
1861#define POLARSSL_X509_CSR_PARSE_C
1862
1863/**
1864 * \def POLARSSL_X509_CREATE_C
1865 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001866 * Enable X.509 core for creating certificates.
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001867 *
1868 * Module: library/x509_create.c
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001869 *
Paul Bakker4606c732013-09-15 17:04:23 +02001870 * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C, POLARSSL_PK_WRITE_C
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001871 *
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001872 * This module is the basis for creating X.509 certificates and CSRs.
1873 */
1874#define POLARSSL_X509_CREATE_C
1875
1876/**
1877 * \def POLARSSL_X509_CRT_WRITE_C
1878 *
1879 * Enable creating X.509 certificates.
1880 *
1881 * Module: library/x509_crt_write.c
1882 *
1883 * Requires: POLARSSL_CREATE_C
1884 *
1885 * This module is required for X.509 certificate creation.
1886 */
1887#define POLARSSL_X509_CRT_WRITE_C
1888
1889/**
1890 * \def POLARSSL_X509_CSR_WRITE_C
1891 *
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001892 * Enable creating X.509 Certificate Signing Requests (CSR).
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001893 *
1894 * Module: library/x509_csr_write.c
1895 *
1896 * Requires: POLARSSL_CREATE_C
1897 *
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001898 * This module is required for X.509 certificate request writing.
1899 */
Paul Bakker7c6b2c32013-09-16 13:49:26 +02001900#define POLARSSL_X509_CSR_WRITE_C
Paul Bakkerbdb912d2012-02-13 23:11:30 +00001901
1902/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001903 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +00001904 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +00001905 * Enable the XTEA block cipher.
1906 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +00001907 * Module: library/xtea.c
1908 * Caller:
1909 */
1910#define POLARSSL_XTEA_C
Manuel Pégourié-Gonnard39d2adb2012-10-31 09:26:55 +01001911
Manuel Pégourié-Gonnard09fff7e2013-09-20 13:45:36 +02001912/* \} name SECTION: PolarSSL modules */
Paul Bakker7a7c78f2009-01-04 18:15:48 +00001913
Paul Bakker9bcf16c2013-06-24 19:31:17 +02001914/**
1915 * \name SECTION: Module configuration options
1916 *
1917 * This section allows for the setting of module specific sizes and
1918 * configuration options. The default values are already present in the
1919 * relevant header files and should suffice for the regular use cases.
1920 * Our advice is to enable POLARSSL_CONFIG_OPTIONS and change values here
1921 * only if you have a good reason and know the consequences.
1922 *
1923 * If POLARSSL_CONFIG_OPTIONS is undefined here the options in the module
1924 * header file take precedence.
1925 *
1926 * Please check the respective header file for documentation on these
1927 * parameters (to prevent duplicate documentation).
1928 *
1929 * Uncomment POLARSSL_CONFIG_OPTIONS to enable using the values defined here.
1930 * \{
1931 */
1932//#define POLARSSL_CONFIG_OPTIONS /**< Enable config.h module value configuration */
1933
1934#if defined(POLARSSL_CONFIG_OPTIONS)
1935
1936// MPI / BIGNUM options
1937//
1938#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
1939#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */
1940
1941// CTR_DRBG options
1942//
Paul Bakkerfb08fd22013-08-27 15:06:26 +02001943#define CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02001944#define CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
1945#define CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
1946#define CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
1947#define CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
1948
Manuel Pégourié-Gonnard0520b602014-01-30 19:43:46 +01001949// HMAC_DRBG options
1950//
1951#define POLARSSL_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
1952#define POLARSSL_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
1953#define POLARSSL_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
1954#define POLARSSL_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
1955
Paul Bakkere1b665e2013-12-11 16:02:58 +01001956// ECP options
1957//
1958#define POLARSSL_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
1959#define POLARSSL_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
Manuel Pégourié-Gonnard9e4191c2013-12-30 18:41:16 +01001960#define POLARSSL_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
Paul Bakkere1b665e2013-12-11 16:02:58 +01001961
Paul Bakker9bcf16c2013-06-24 19:31:17 +02001962// Entropy options
1963//
1964#define ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
1965#define ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
1966
Paul Bakker6e339b52013-07-03 13:37:05 +02001967// Memory options
1968#define MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
1969#define POLARSSL_MEMORY_STDMALLOC malloc /**< Default allocator to use, can be undefined */
1970#define POLARSSL_MEMORY_STDFREE free /**< Default free to use, can be undefined */
1971
Paul Bakker9bcf16c2013-06-24 19:31:17 +02001972// SSL Cache options
1973//
1974#define SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
1975#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
1976
1977// SSL options
1978//
1979#define SSL_MAX_CONTENT_LEN 16384 /**< Size of the input / output buffer */
Paul Bakker606b4ba2013-08-14 16:52:14 +02001980#define SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */
Paul Bakker9bcf16c2013-06-24 19:31:17 +02001981
1982#endif /* POLARSSL_CONFIG_OPTIONS */
1983
1984/* \} name */
1985
Paul Bakker7ad00f92013-04-18 23:05:25 +02001986/*
1987 * Sanity checks on defines and dependencies
1988 */
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +01001989#if defined(POLARSSL_AESNI_C) && !defined(POLARSSL_HAVE_ASM)
1990#error "POLARSSL_AESNI_C defined, but not all prerequisites"
1991#endif
1992
Manuel Pégourié-Gonnard18dc0e22013-10-27 14:35:02 +01001993#if defined(POLARSSL_CERTS_C) && !defined(POLARSSL_PEM_PARSE_C)
1994#error "POLARSSL_CERTS_C defined, but not all prerequisites"
Paul Bakker7ad00f92013-04-18 23:05:25 +02001995#endif
1996
1997#if defined(POLARSSL_CTR_DRBG_C) && !defined(POLARSSL_AES_C)
1998#error "POLARSSL_CTR_DRBG_C defined, but not all prerequisites"
1999#endif
2000
Manuel Pégourié-Gonnard18dc0e22013-10-27 14:35:02 +01002001#if defined(POLARSSL_DHM_C) && !defined(POLARSSL_BIGNUM_C)
2002#error "POLARSSL_DHM_C defined, but not all prerequisites"
2003#endif
2004
Paul Bakker7ad00f92013-04-18 23:05:25 +02002005#if defined(POLARSSL_ECDH_C) && !defined(POLARSSL_ECP_C)
2006#error "POLARSSL_ECDH_C defined, but not all prerequisites"
2007#endif
2008
Manuel Pégourié-Gonnard4846f5e2013-08-08 14:36:15 +02002009#if defined(POLARSSL_ECDSA_C) && \
2010 ( !defined(POLARSSL_ECP_C) || \
2011 !defined(POLARSSL_ASN1_PARSE_C) || \
2012 !defined(POLARSSL_ASN1_WRITE_C) )
Paul Bakker7ad00f92013-04-18 23:05:25 +02002013#error "POLARSSL_ECDSA_C defined, but not all prerequisites"
2014#endif
2015
Manuel Pégourié-Gonnard7845fc02014-01-27 14:24:03 +01002016#if defined(POLARSSL_ECDSA_DETERMINISTIC) && !defined(POLARSSL_HMAC_DRBG_C)
Manuel Pégourié-Gonnard5b1a5732014-01-07 16:46:17 +01002017#error "POLARSSL_ECDSA_DETERMINISTIC defined, but not all prerequisites"
2018#endif
2019
Manuel Pégourié-Gonnardc59c9c12013-10-27 14:04:59 +01002020#if defined(POLARSSL_ECP_C) && ( !defined(POLARSSL_BIGNUM_C) || ( \
2021 !defined(POLARSSL_ECP_DP_SECP192R1_ENABLED) && \
2022 !defined(POLARSSL_ECP_DP_SECP224R1_ENABLED) && \
2023 !defined(POLARSSL_ECP_DP_SECP256R1_ENABLED) && \
2024 !defined(POLARSSL_ECP_DP_SECP384R1_ENABLED) && \
2025 !defined(POLARSSL_ECP_DP_SECP521R1_ENABLED) && \
2026 !defined(POLARSSL_ECP_DP_BP256R1_ENABLED) && \
2027 !defined(POLARSSL_ECP_DP_BP384R1_ENABLED) && \
Manuel Pégourié-Gonnardffd94cc2014-01-28 20:11:07 +01002028 !defined(POLARSSL_ECP_DP_BP512R1_ENABLED) && \
2029 !defined(POLARSSL_ECP_DP_M255_ENABLED) && \
2030 !defined(POLARSSL_ECP_DP_SECP192K1_ENABLED) && \
2031 !defined(POLARSSL_ECP_DP_SECP224K1_ENABLED) && \
2032 !defined(POLARSSL_ECP_DP_SECP256K1_ENABLED) ) )
Paul Bakker7ad00f92013-04-18 23:05:25 +02002033#error "POLARSSL_ECP_C defined, but not all prerequisites"
2034#endif
2035
Paul Bakkerfb08fd22013-08-27 15:06:26 +02002036#if defined(POLARSSL_ENTROPY_C) && (!defined(POLARSSL_SHA512_C) && \
2037 !defined(POLARSSL_SHA256_C))
Paul Bakker7ad00f92013-04-18 23:05:25 +02002038#error "POLARSSL_ENTROPY_C defined, but not all prerequisites"
2039#endif
Paul Bakkerfb08fd22013-08-27 15:06:26 +02002040#if defined(POLARSSL_ENTROPY_C) && defined(POLARSSL_SHA512_C) && \
2041 defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 64)
2042#error "CTR_DRBG_ENTROPY_LEN value too high"
2043#endif
2044#if defined(POLARSSL_ENTROPY_C) && !defined(POLARSSL_SHA512_C) && \
2045 defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 32)
2046#error "CTR_DRBG_ENTROPY_LEN value too high"
2047#endif
Paul Bakker7ad00f92013-04-18 23:05:25 +02002048
Manuel Pégourié-Gonnard7bd8a992013-10-24 13:39:39 +02002049#if defined(POLARSSL_GCM_C) && ( \
2050 !defined(POLARSSL_AES_C) && !defined(POLARSSL_CAMELLIA_C) )
Paul Bakker7ad00f92013-04-18 23:05:25 +02002051#error "POLARSSL_GCM_C defined, but not all prerequisites"
2052#endif
2053
Paul Bakkerecd54fb2013-07-03 14:48:29 +02002054#if defined(POLARSSL_HAVEGE_C) && !defined(POLARSSL_TIMING_C)
2055#error "POLARSSL_HAVEGE_C defined, but not all prerequisites"
2056#endif
2057
Manuel Pégourié-Gonnard490bdf32014-01-27 14:03:10 +01002058#if defined(POLARSSL_HMAC_DRBG) && !defined(POLARSSL_MD_C)
2059#error "POLARSSL_HMAC_DRBG_C defined, but not all prerequisites"
2060#endif
2061
Manuel Pégourié-Gonnard25781b22013-12-11 16:17:10 +01002062#if defined(POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED) && \
2063 ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_X509_CRT_PARSE_C) )
2064#error "POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED defined, but not all prerequisites"
2065#endif
2066
2067#if defined(POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED) && \
2068 ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_X509_CRT_PARSE_C) )
2069#error "POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED defined, but not all prerequisites"
2070#endif
2071
Paul Bakkere07f41d2013-04-19 09:08:57 +02002072#if defined(POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED) && !defined(POLARSSL_DHM_C)
2073#error "POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED defined, but not all prerequisites"
2074#endif
2075
Manuel Pégourié-Gonnard3ce3bbd2013-10-11 16:53:50 +02002076#if defined(POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED) && \
2077 !defined(POLARSSL_ECDH_C)
2078#error "POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED defined, but not all prerequisites"
2079#endif
2080
Paul Bakkere07f41d2013-04-19 09:08:57 +02002081#if defined(POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED) && \
2082 ( !defined(POLARSSL_DHM_C) || !defined(POLARSSL_RSA_C) || \
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +02002083 !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_PKCS1_V15) )
Paul Bakkere07f41d2013-04-19 09:08:57 +02002084#error "POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED defined, but not all prerequisites"
2085#endif
2086
2087#if defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED) && \
2088 ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_RSA_C) || \
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +02002089 !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_PKCS1_V15) )
Paul Bakkere07f41d2013-04-19 09:08:57 +02002090#error "POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED defined, but not all prerequisites"
2091#endif
2092
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +02002093#if defined(POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED) && \
2094 ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_ECDSA_C) || \
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +02002095 !defined(POLARSSL_X509_CRT_PARSE_C) )
Manuel Pégourié-Gonnard32ea60a2013-08-17 17:39:04 +02002096#error "POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED defined, but not all prerequisites"
2097#endif
2098
Paul Bakkere07f41d2013-04-19 09:08:57 +02002099#if defined(POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED) && \
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002100 ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_X509_CRT_PARSE_C) ||\
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +02002101 !defined(POLARSSL_PKCS1_V15) )
Paul Bakkere07f41d2013-04-19 09:08:57 +02002102#error "POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED defined, but not all prerequisites"
2103#endif
2104
2105#if defined(POLARSSL_KEY_EXCHANGE_RSA_ENABLED) && \
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002106 ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_X509_CRT_PARSE_C) ||\
Manuel Pégourié-Gonnardcbf3ef32013-09-23 12:20:02 +02002107 !defined(POLARSSL_PKCS1_V15) )
Paul Bakkere07f41d2013-04-19 09:08:57 +02002108#error "POLARSSL_KEY_EXCHANGE_RSA_ENABLED defined, but not all prerequisites"
2109#endif
2110
Paul Bakker6e339b52013-07-03 13:37:05 +02002111#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) && !defined(POLARSSL_MEMORY_C)
2112#error "POLARSSL_MEMORY_BUFFER_ALLOC_C defined, but not all prerequisites"
2113#endif
2114
Manuel Pégourié-Gonnard92ac76f2013-12-16 17:12:53 +01002115#if defined(POLARSSL_PADLOCK_C) && !defined(POLARSSL_HAVE_ASM)
2116#error "POLARSSL_PADLOCK_C defined, but not all prerequisites"
2117#endif
2118
Paul Bakker7ad00f92013-04-18 23:05:25 +02002119#if defined(POLARSSL_PBKDF2_C) && !defined(POLARSSL_MD_C)
2120#error "POLARSSL_PBKDF2_C defined, but not all prerequisites"
2121#endif
2122
Paul Bakkercff68422013-09-15 20:43:33 +02002123#if defined(POLARSSL_PEM_PARSE_C) && !defined(POLARSSL_BASE64_C)
2124#error "POLARSSL_PEM_PARSE_C defined, but not all prerequisites"
2125#endif
2126
2127#if defined(POLARSSL_PEM_WRITE_C) && !defined(POLARSSL_BASE64_C)
2128#error "POLARSSL_PEM_WRITE_C defined, but not all prerequisites"
Paul Bakker7ad00f92013-04-18 23:05:25 +02002129#endif
2130
Paul Bakker4606c732013-09-15 17:04:23 +02002131#if defined(POLARSSL_PK_PARSE_C) && !defined(POLARSSL_PK_C)
2132#error "POLARSSL_PK_PARSE_C defined, but not all prerequisites"
2133#endif
2134
2135#if defined(POLARSSL_PK_WRITE_C) && !defined(POLARSSL_PK_C)
2136#error "POLARSSL_PK_WRITE_C defined, but not all prerequisites"
2137#endif
2138
Manuel Pégourié-Gonnard51be5592013-08-22 13:35:53 +02002139#if defined(POLARSSL_PKCS11_C) && !defined(POLARSSL_PK_C)
Paul Bakker7ad00f92013-04-18 23:05:25 +02002140#error "POLARSSL_PKCS11_C defined, but not all prerequisites"
2141#endif
2142
2143#if defined(POLARSSL_RSA_C) && ( !defined(POLARSSL_BIGNUM_C) || \
2144 !defined(POLARSSL_OID_C) )
2145#error "POLARSSL_RSA_C defined, but not all prerequisites"
2146#endif
2147
Manuel Pégourié-Gonnardce7c6fd2014-01-24 14:37:29 +01002148#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES) && \
2149 ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_PKCS1_V21) )
2150#error "POLARSSL_RSASSA_PSS_CERTIFICATES defined, but not all prerequisites"
2151#endif
2152
Manuel Pégourié-Gonnard7c3291e2013-10-27 14:29:51 +01002153#if defined(POLARSSL_SSL_PROTO_SSL3) && ( !defined(POLARSSL_MD5_C) || \
2154 !defined(POLARSSL_SHA1_C) )
2155#error "POLARSSL_SSL_PROTO_SSL3 defined, but not all prerequisites"
2156#endif
2157
2158#if defined(POLARSSL_SSL_PROTO_TLS1) && ( !defined(POLARSSL_MD5_C) || \
2159 !defined(POLARSSL_SHA1_C) )
2160#error "POLARSSL_SSL_PROTO_TLS1 defined, but not all prerequisites"
2161#endif
2162
2163#if defined(POLARSSL_SSL_PROTO_TLS1_1) && ( !defined(POLARSSL_MD5_C) || \
2164 !defined(POLARSSL_SHA1_C) )
2165#error "POLARSSL_SSL_PROTO_TLS1_1 defined, but not all prerequisites"
2166#endif
2167
2168#if defined(POLARSSL_SSL_PROTO_TLS1_2) && ( !defined(POLARSSL_SHA1_C) && \
2169 !defined(POLARSSL_SHA256_C) && !defined(POLARSSL_SHA512_C) )
2170#error "POLARSSL_SSL_PROTO_TLS1_2 defined, but not all prerequisites"
2171#endif
2172
Paul Bakker7ad00f92013-04-18 23:05:25 +02002173#if defined(POLARSSL_SSL_CLI_C) && !defined(POLARSSL_SSL_TLS_C)
2174#error "POLARSSL_SSL_CLI_C defined, but not all prerequisites"
2175#endif
2176
Paul Bakker577e0062013-08-28 11:57:20 +02002177#if defined(POLARSSL_SSL_TLS_C) && ( !defined(POLARSSL_CIPHER_C) || \
Manuel Pégourié-Gonnard1a483832013-09-20 12:29:15 +02002178 !defined(POLARSSL_MD_C) )
Paul Bakker7ad00f92013-04-18 23:05:25 +02002179#error "POLARSSL_SSL_TLS_C defined, but not all prerequisites"
2180#endif
2181
2182#if defined(POLARSSL_SSL_SRV_C) && !defined(POLARSSL_SSL_TLS_C)
2183#error "POLARSSL_SSL_SRV_C defined, but not all prerequisites"
2184#endif
2185
Paul Bakkerd2f068e2013-08-27 21:19:20 +02002186#if defined(POLARSSL_SSL_TLS_C) && (!defined(POLARSSL_SSL_PROTO_SSL3) && \
2187 !defined(POLARSSL_SSL_PROTO_TLS1) && !defined(POLARSSL_SSL_PROTO_TLS1_1) && \
2188 !defined(POLARSSL_SSL_PROTO_TLS1_2))
2189#error "POLARSSL_SSL_TLS_C defined, but no protocols are active"
2190#endif
2191
2192#if defined(POLARSSL_SSL_TLS_C) && (defined(POLARSSL_SSL_PROTO_SSL3) && \
2193 defined(POLARSSL_SSL_PROTO_TLS1_1) && !defined(POLARSSL_SSL_PROTO_TLS1))
2194#error "Illegal protocol selection"
2195#endif
2196
2197#if defined(POLARSSL_SSL_TLS_C) && (defined(POLARSSL_SSL_PROTO_TLS1) && \
2198 defined(POLARSSL_SSL_PROTO_TLS1_2) && !defined(POLARSSL_SSL_PROTO_TLS1_1))
2199#error "Illegal protocol selection"
2200#endif
2201
2202#if defined(POLARSSL_SSL_TLS_C) && (defined(POLARSSL_SSL_PROTO_SSL3) && \
2203 defined(POLARSSL_SSL_PROTO_TLS1_2) && (!defined(POLARSSL_SSL_PROTO_TLS1) || \
2204 !defined(POLARSSL_SSL_PROTO_TLS1_1)))
2205#error "Illegal protocol selection"
2206#endif
2207
Paul Bakker59da0a42013-08-19 13:27:17 +02002208#if defined(POLARSSL_SSL_SESSION_TICKETS) && defined(POLARSSL_SSL_TLS_C) && \
Manuel Pégourié-Gonnard92cb1d32013-09-13 16:24:20 +02002209 ( !defined(POLARSSL_AES_C) || !defined(POLARSSL_SHA256_C) || \
2210 !defined(POLARSSL_CIPHER_MODE_CBC) )
Paul Bakker59da0a42013-08-19 13:27:17 +02002211#error "POLARSSL_SSL_SESSION_TICKETS_C defined, but not all prerequisites"
2212#endif
2213
Paul Bakker2466d932013-09-28 14:40:38 +02002214#if defined(POLARSSL_THREADING_PTHREAD)
2215#if !defined(POLARSSL_THREADING_C) || defined(POLARSSL_THREADING_IMPL)
2216#error "POLARSSL_THREADING_PTHREAD defined, but not all prerequisites"
2217#endif
2218#define POLARSSL_THREADING_IMPL
2219#endif
2220
2221#if defined(POLARSSL_THREADING_ALT)
2222#if !defined(POLARSSL_THREADING_C) || defined(POLARSSL_THREADING_IMPL)
2223#error "POLARSSL_THREADING_ALT defined, but not all prerequisites"
2224#endif
2225#define POLARSSL_THREADING_IMPL
2226#endif
2227
2228#if defined(POLARSSL_THREADING_C) && !defined(POLARSSL_THREADING_IMPL)
2229#error "POLARSSL_THREADING_C defined, single threading implementation required"
2230#endif
2231#undef POLARSSL_THREADING_IMPL
2232
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002233#if defined(POLARSSL_X509_USE_C) && ( !defined(POLARSSL_BIGNUM_C) || \
Paul Bakker7ad00f92013-04-18 23:05:25 +02002234 !defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_PARSE_C) || \
Paul Bakker4606c732013-09-15 17:04:23 +02002235 !defined(POLARSSL_PK_PARSE_C) )
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002236#error "POLARSSL_X509_USE_C defined, but not all prerequisites"
Paul Bakker7ad00f92013-04-18 23:05:25 +02002237#endif
2238
Paul Bakker7c6b2c32013-09-16 13:49:26 +02002239#if defined(POLARSSL_X509_CREATE_C) && ( !defined(POLARSSL_BIGNUM_C) || \
2240 !defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_WRITE_C) || \
2241 !defined(POLARSSL_PK_WRITE_C) )
2242#error "POLARSSL_X509_CREATE_C defined, but not all prerequisites"
2243#endif
2244
2245#if defined(POLARSSL_X509_CRT_PARSE_C) && ( !defined(POLARSSL_X509_USE_C) )
2246#error "POLARSSL_X509_CRT_PARSE_C defined, but not all prerequisites"
2247#endif
2248
2249#if defined(POLARSSL_X509_CRL_PARSE_C) && ( !defined(POLARSSL_X509_USE_C) )
2250#error "POLARSSL_X509_CRL_PARSE_C defined, but not all prerequisites"
2251#endif
2252
2253#if defined(POLARSSL_X509_CSR_PARSE_C) && ( !defined(POLARSSL_X509_USE_C) )
2254#error "POLARSSL_X509_CSR_PARSE_C defined, but not all prerequisites"
2255#endif
2256
2257#if defined(POLARSSL_X509_CRT_WRITE_C) && ( !defined(POLARSSL_X509_CREATE_C) )
2258#error "POLARSSL_X509_CRT_WRITE_C defined, but not all prerequisites"
2259#endif
2260
2261#if defined(POLARSSL_X509_CSR_WRITE_C) && ( !defined(POLARSSL_X509_CREATE_C) )
2262#error "POLARSSL_X509_CSR_WRITE_C defined, but not all prerequisites"
Paul Bakker7ad00f92013-04-18 23:05:25 +02002263#endif
2264
Paul Bakker5121ce52009-01-03 21:22:43 +00002265#endif /* config.h */