blob: 2ecb065e5bbc333c55918cf0617683b866e017ae [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 Bakker0a597072012-09-25 21:55:46 +00006 * Copyright (C) 2006-2012, 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 Bakker40e46942009-01-03 21:51:57 +000051#define POLARSSL_HAVE_INT8
Paul Bakker5121ce52009-01-03 21:22:43 +000052 */
53
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 Bakker40e46942009-01-03 21:51:57 +000060#define POLARSSL_HAVE_INT16
Paul Bakker5121ce52009-01-03 21:22:43 +000061 */
62
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 *
74 * The compiler has support for asm()
75 *
Paul Bakker5121ce52009-01-03 21:22:43 +000076 * Uncomment to enable the use of assembly code.
Paul Bakker68041ec2009-04-19 21:17:55 +000077 *
78 * Requires support for asm() in compiler.
79 *
80 * Used in:
81 * library/timing.c
82 * library/padlock.c
83 * include/polarssl/bn_mul.h
84 *
Paul Bakker5121ce52009-01-03 21:22:43 +000085 */
Paul Bakker40e46942009-01-03 21:51:57 +000086#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000087
Paul Bakkerf3b86c12011-01-27 15:24:17 +000088/**
89 * \def POLARSSL_HAVE_SSE2
90 *
Paul Bakkere23c3152012-10-01 14:42:47 +000091 * CPU supports SSE2 instruction set.
Paul Bakkerf3b86c12011-01-27 15:24:17 +000092 *
Paul Bakker5121ce52009-01-03 21:22:43 +000093 * Uncomment if the CPU supports SSE2 (IA-32 specific).
94 *
Paul Bakker40e46942009-01-03 21:51:57 +000095#define POLARSSL_HAVE_SSE2
Paul Bakker5121ce52009-01-03 21:22:43 +000096 */
Paul Bakker0a62cd12011-01-21 11:00:08 +000097/* \} name */
98
Paul Bakkerf3b86c12011-01-27 15:24:17 +000099/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000100 * \name SECTION: PolarSSL feature support
101 *
102 * This section sets support for features that are or are not needed
103 * within the modules that are enabled.
104 * \{
105 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000106
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000107/**
Paul Bakker15566e42011-04-24 21:19:15 +0000108 * \def POLARSSL_AES_ROM_TABLES
109 *
110 * Store the AES tables in ROM.
111 *
112 * Uncomment this macro to store the AES tables in ROM.
113 *
114#define POLARSSL_AES_ROM_TABLES
115 */
116
117/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000118 * \def POLARSSL_CIPHER_MODE_CFB
119 *
120 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
121 */
122#define POLARSSL_CIPHER_MODE_CFB
123
124/**
125 * \def POLARSSL_CIPHER_MODE_CTR
126 *
127 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
128 */
129#define POLARSSL_CIPHER_MODE_CTR
130
131/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000132 * \def POLARSSL_CIPHER_NULL_CIPHER
133 *
134 * Enable NULL cipher.
135 * Warning: Only do so when you know what you are doing. This allows for
136 * encryption or channels without any security!
137 *
138 * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable
139 * the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000140 * TLS_RSA_WITH_NULL_MD5
141 * TLS_RSA_WITH_NULL_SHA
142 * TLS_RSA_WITH_NULL_SHA256
Paul Bakkerfab5c822012-02-06 16:45:10 +0000143 *
144 * Uncomment this macro to enable the NULL cipher and ciphersuites
145#define POLARSSL_CIPHER_NULL_CIPHER
146 */
147
148/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000149 * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
150 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000151 * Enable weak ciphersuites in SSL / TLS
Paul Bakkerfab5c822012-02-06 16:45:10 +0000152 * Warning: Only do so when you know what you are doing. This allows for
Paul Bakker9a736322012-11-14 12:39:52 +0000153 * channels with virtually no security at all!
Paul Bakkerfab5c822012-02-06 16:45:10 +0000154 *
155 * This enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000156 * TLS_RSA_WITH_DES_CBC_SHA
157 * TLS_DHE_RSA_WITH_DES_CBC_SHA
Paul Bakkerfab5c822012-02-06 16:45:10 +0000158 *
159 * Uncomment this macro to enable weak ciphersuites
160#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
161 */
162
163/**
Paul Bakker8fe40dc2013-02-02 12:43:08 +0100164 * \def POLARSSL_ERROR_STRERROR_DUMMY
165 *
166 * Enable a dummy error function to make use of error_strerror() in
167 * third party libraries easier.
168 *
169 * Disable if you run into name conflicts and want to really remove the
170 * error_strerror()
171 */
172#define POLARSSL_ERROR_STRERROR_DUMMY
173
174/**
Paul Bakker15566e42011-04-24 21:19:15 +0000175 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000176 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000177 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
178 *
Paul Bakker15566e42011-04-24 21:19:15 +0000179 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000180 */
Paul Bakker15566e42011-04-24 21:19:15 +0000181#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000182
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000183/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000184 * \def POLARSSL_FS_IO
185 *
186 * Enable functions that use the filesystem.
187 */
188#define POLARSSL_FS_IO
189
190/**
Paul Bakker43655f42011-12-15 20:11:16 +0000191 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
192 *
193 * Do not add default entropy sources. These are the platform specific,
194 * hardclock and HAVEGE based poll functions.
195 *
196 * This is useful to have more control over the added entropy sources in an
197 * application.
198 *
199 * Uncomment this macro to prevent loading of default entropy functions.
200#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
201 */
202
203/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000204 * \def POLARSSL_NO_PLATFORM_ENTROPY
205 *
206 * Do not use built-in platform entropy functions.
207 * This is useful if your platform does not support
208 * standards like the /dev/urandom or Windows CryptoAPI.
209 *
210 * Uncomment this macro to disable the built-in platform entropy functions.
211#define POLARSSL_NO_PLATFORM_ENTROPY
212 */
213
214/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000215 * \def POLARSSL_PKCS1_V21
216 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000217 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
218 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000219 * Enable support for PKCS#1 v2.1 encoding.
220 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
221 */
222#define POLARSSL_PKCS1_V21
223
224/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000225 * \def POLARSSL_RSA_NO_CRT
226 *
227 * Do not use the Chinese Remainder Theorem for the RSA private operation.
228 *
229 * Uncomment this macro to disable the use of CRT in RSA.
230 *
231#define POLARSSL_RSA_NO_CRT
232 */
Paul Bakker15566e42011-04-24 21:19:15 +0000233
234/**
235 * \def POLARSSL_SELF_TEST
236 *
237 * Enable the checkup functions (*_self_test).
238 */
239#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000240
241/**
Paul Bakker05ef8352012-05-08 09:17:57 +0000242 * \def POLARSSL_SSL_HW_RECORD_ACCEL
243 *
244 * Enable hooking functions in SSL module for hardware acceleration of
245 * individual records.
246 *
247 * Uncomment this macro to enable hooking functions.
248#define POLARSSL_SSL_HW_RECORD_ACCEL
249 */
250
251/**
Paul Bakker5c721f92011-07-27 16:51:09 +0000252 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
253 *
254 * If set, the X509 parser will not break-off when parsing an X509 certificate
255 * and encountering an unknown critical extension.
256 *
257 * Uncomment to prevent an error.
258 *
259#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
260 */
Paul Bakker2770fbd2012-07-03 13:30:23 +0000261
262/**
263 * \def POLARSSL_ZLIB_SUPPORT
264 *
265 * If set, the SSL/TLS module uses ZLIB to support compression and
266 * decompression of packet data.
267 *
268 * Used in: library/ssl_tls.c
269 * library/ssl_cli.c
270 * library/ssl_srv.c
271 *
272 * This feature requires zlib library and headers to be present.
273 *
274 * Uncomment to enable use of ZLIB
275#define POLARSSL_ZLIB_SUPPORT
276 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000277/* \} name */
278
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000279/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000280 * \name SECTION: PolarSSL modules
281 *
282 * This section enables or disables entire modules in PolarSSL
283 * \{
284 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000285
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000286/**
287 * \def POLARSSL_AES_C
288 *
289 * Enable the AES block cipher.
290 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000291 * Module: library/aes.c
292 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000293 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000294 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000295 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000296 * This module enables the following ciphersuites (if other requisites are
297 * enabled as well):
298 * TLS_RSA_WITH_AES_128_CBC_SHA
299 * TLS_RSA_WITH_AES_256_CBC_SHA
300 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
301 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
302 * TLS_RSA_WITH_AES_128_CBC_SHA256
303 * TLS_RSA_WITH_AES_256_CBC_SHA256
304 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
305 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
306 * TLS_RSA_WITH_AES_128_GCM_SHA256
307 * TLS_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker5121ce52009-01-03 21:22:43 +0000308 */
Paul Bakker40e46942009-01-03 21:51:57 +0000309#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000310
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000311/**
312 * \def POLARSSL_ARC4_C
313 *
314 * Enable the ARCFOUR stream cipher.
315 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000316 * Module: library/arc4.c
317 * Caller: library/ssl_tls.c
318 *
319 * This module enables the following ciphersuites:
Paul Bakker645ce3a2012-10-31 12:32:41 +0000320 * TLS_RSA_WITH_RC4_128_MD5
321 * TLS_RSA_WITH_RC4_128_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000322 */
Paul Bakker40e46942009-01-03 21:51:57 +0000323#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000324
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000325/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000326 * \def POLARSSL_ASN1_PARSE_C
327 *
328 * Enable the generic ASN1 parser.
329 *
330 * Module: library/asn1.c
331 * Caller: library/x509parse.c
332 */
333#define POLARSSL_ASN1_PARSE_C
334
335/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000336 * \def POLARSSL_ASN1_WRITE_C
337 *
338 * Enable the generic ASN1 writer.
339 *
340 * Module: library/asn1write.c
341 */
342#define POLARSSL_ASN1_WRITE_C
343
344/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000345 * \def POLARSSL_BASE64_C
346 *
347 * Enable the Base64 module.
348 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000349 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000350 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000351 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000352 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000353 */
Paul Bakker40e46942009-01-03 21:51:57 +0000354#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000355
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000356/**
357 * \def POLARSSL_BIGNUM_C
358 *
Paul Bakker9a736322012-11-14 12:39:52 +0000359 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000360 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000361 * Module: library/bignum.c
362 * Caller: library/dhm.c
363 * library/rsa.c
364 * library/ssl_tls.c
365 * library/x509parse.c
366 *
367 * This module is required for RSA and DHM support.
368 */
Paul Bakker40e46942009-01-03 21:51:57 +0000369#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000370
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000371/**
Paul Bakkera9379c02012-07-04 11:02:11 +0000372 * \def POLARSSL_BLOWFISH_C
373 *
374 * Enable the Blowfish block cipher.
375 *
376 * Module: library/blowfish.c
377 */
378#define POLARSSL_BLOWFISH_C
379
380/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000381 * \def POLARSSL_CAMELLIA_C
382 *
383 * Enable the Camellia block cipher.
384 *
Paul Bakker38119b12009-01-10 23:31:23 +0000385 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000386 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000387 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000388 * This module enables the following ciphersuites (if other requisites are
389 * enabled as well):
390 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
391 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
392 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
393 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
394 * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256
395 * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256
396 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
397 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
Paul Bakker38119b12009-01-10 23:31:23 +0000398 */
399#define POLARSSL_CAMELLIA_C
400
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000401/**
402 * \def POLARSSL_CERTS_C
403 *
404 * Enable the test certificates.
405 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000406 * Module: library/certs.c
407 * Caller:
408 *
409 * This module is used for testing (ssl_client/server).
410 */
Paul Bakker40e46942009-01-03 21:51:57 +0000411#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000412
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000413/**
414 * \def POLARSSL_CIPHER_C
415 *
416 * Enable the generic cipher layer.
417 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000418 * Module: library/cipher.c
419 * Caller:
420 *
421 * Uncomment to enable generic cipher wrappers.
422 */
423#define POLARSSL_CIPHER_C
424
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000425/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000426 * \def POLARSSL_CTR_DRBG_C
427 *
428 * Enable the CTR_DRBG AES-256-based random generator
429 *
430 * Module: library/ctr_drbg.c
431 * Caller:
432 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000433 * Requires: POLARSSL_AES_C
434 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000435 * This module provides the CTR_DRBG AES-256 random number generator.
436 */
437#define POLARSSL_CTR_DRBG_C
438
439/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000440 * \def POLARSSL_DEBUG_C
441 *
442 * Enable the debug functions.
443 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000444 * Module: library/debug.c
445 * Caller: library/ssl_cli.c
446 * library/ssl_srv.c
447 * library/ssl_tls.c
448 *
449 * This module provides debugging functions.
450 */
Paul Bakker40e46942009-01-03 21:51:57 +0000451#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000452
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000453/**
454 * \def POLARSSL_DES_C
455 *
456 * Enable the DES block cipher.
457 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000458 * Module: library/des.c
459 * Caller: library/ssl_tls.c
460 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000461 * This module enables the following ciphersuites (if other requisites are
462 * enabled as well):
463 * TLS_RSA_WITH_3DES_EDE_CBC_SHA
464 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000465 */
Paul Bakker40e46942009-01-03 21:51:57 +0000466#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000467
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000468/**
469 * \def POLARSSL_DHM_C
470 *
471 * Enable the Diffie-Hellman-Merkle key exchange.
472 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000473 * Module: library/dhm.c
474 * Caller: library/ssl_cli.c
475 * library/ssl_srv.c
476 *
Paul Bakker645ce3a2012-10-31 12:32:41 +0000477 * This module enables the following ciphersuites (if other requisites are
478 * enabled as well):
479 * TLS_DHE_RSA_WITH_DES_CBC_SHA
480 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
481 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA
482 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA
483 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
484 * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
485 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
486 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
487 * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
488 * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
489 * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
490 * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker5121ce52009-01-03 21:22:43 +0000491 */
Paul Bakker40e46942009-01-03 21:51:57 +0000492#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000493
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000494/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000495 * \def POLARSSL_ENTROPY_C
496 *
497 * Enable the platform-specific entropy code.
498 *
499 * Module: library/entropy.c
500 * Caller:
501 *
502 * Requires: POLARSSL_SHA4_C
503 *
504 * This module provides a generic entropy pool
505 */
506#define POLARSSL_ENTROPY_C
507
508/**
Paul Bakker9d781402011-05-09 16:17:09 +0000509 * \def POLARSSL_ERROR_C
510 *
511 * Enable error code to error string conversion.
512 *
513 * Module: library/error.c
514 * Caller:
515 *
516 * This module enables err_strerror().
517 */
518#define POLARSSL_ERROR_C
519
520/**
Paul Bakker89e80c92012-03-20 13:50:09 +0000521 * \def POLARSSL_GCM_C
522 *
523 * Enable the Galois/Counter Mode (GCM) for AES
524 *
525 * Module: library/gcm.c
526 *
527 * Requires: POLARSSL_AES_C
Paul Bakker645ce3a2012-10-31 12:32:41 +0000528 *
529 * This module enables the following ciphersuites (if other requisites are
530 * enabled as well):
531 * TLS_RSA_WITH_AES_128_GCM_SHA256
532 * TLS_RSA_WITH_AES_256_GCM_SHA384
Paul Bakker89e80c92012-03-20 13:50:09 +0000533 */
534#define POLARSSL_GCM_C
535
536/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000537 * \def POLARSSL_HAVEGE_C
538 *
539 * Enable the HAVEGE random generator.
540 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000541 * Module: library/havege.c
542 * Caller:
543 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000544 * Requires: POLARSSL_TIMING_C
545 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000546 * This module enables the HAVEGE random number generator.
547 */
Paul Bakker40e46942009-01-03 21:51:57 +0000548#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000549
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000550/**
551 * \def POLARSSL_MD_C
552 *
553 * Enable the generic message digest layer.
554 *
Paul Bakker17373852011-01-06 14:20:01 +0000555 * Module: library/md.c
556 * Caller:
557 *
558 * Uncomment to enable generic message digest wrappers.
559 */
560#define POLARSSL_MD_C
561
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000562/**
563 * \def POLARSSL_MD2_C
564 *
565 * Enable the MD2 hash algorithm
566 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000567 * Module: library/md2.c
568 * Caller: library/x509parse.c
569 *
570 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
571 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000572#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000573 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000574
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000575/**
576 * \def POLARSSL_MD4_C
577 *
578 * Enable the MD4 hash algorithm
579 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000580 * Module: library/md4.c
581 * Caller: library/x509parse.c
582 *
583 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
584 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000585#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000586 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000587
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000588/**
589 * \def POLARSSL_MD5_C
590 *
591 * Enable the MD5 hash algorithm
592 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000593 * Module: library/md5.c
594 * Caller: library/ssl_tls.c
595 * library/x509parse.c
596 *
597 * This module is required for SSL/TLS and X.509.
598 */
Paul Bakker40e46942009-01-03 21:51:57 +0000599#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000600
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000601/**
602 * \def POLARSSL_NET_C
603 *
604 * Enable the TCP/IP networking routines.
605 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000606 * Module: library/net.c
607 * Caller:
608 *
609 * This module provides TCP/IP networking routines.
610 */
Paul Bakker40e46942009-01-03 21:51:57 +0000611#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000612
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000613/**
614 * \def POLARSSL_PADLOCK_C
615 *
616 * Enable VIA Padlock support on x86.
617 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000618 * Module: library/padlock.c
619 * Caller: library/aes.c
620 *
621 * This modules adds support for the VIA PadLock on x86.
622 */
Paul Bakker40e46942009-01-03 21:51:57 +0000623#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000624
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000625/**
Paul Bakkerf518b162012-08-23 13:03:18 +0000626 * \def POLARSSL_PBKDF2_C
627 *
628 * Enable PKCS#5 PBKDF2 key derivation function
629 *
630 * Module: library/pbkdf2.c
631 *
632 * Requires: POLARSSL_MD_C
633 *
634 * This module adds support for the PKCS#5 PBKDF2 key derivation function.
635#define POLARSSL_PBKDF2_C
636 */
637
638/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000639 * \def POLARSSL_PEM_C
640 *
641 * Enable PEM decoding
642 *
643 * Module: library/pem.c
644 * Caller: library/x509parse.c
645 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000646 * Requires: POLARSSL_BASE64_C
647 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000648 * This modules adds support for decoding PEM files.
649 */
650#define POLARSSL_PEM_C
651
652/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000653 * \def POLARSSL_PKCS11_C
654 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000655 * Enable wrapper for PKCS#11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000656 *
657 * Module: library/ssl_srv.c
658 * Caller: library/ssl_cli.c
659 * library/ssl_srv.c
660 *
661 * Requires: POLARSSL_SSL_TLS_C
662 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000663 * This module enables SSL/TLS PKCS #11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000664 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
665#define POLARSSL_PKCS11_C
666 */
667
668/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000669 * \def POLARSSL_RSA_C
670 *
671 * Enable the RSA public-key cryptosystem.
672 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000673 * Module: library/rsa.c
674 * Caller: library/ssl_cli.c
675 * library/ssl_srv.c
676 * library/ssl_tls.c
677 * library/x509.c
678 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000679 * Requires: POLARSSL_BIGNUM_C
680 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000681 * This module is required for SSL/TLS and MD5-signed certificates.
682 */
Paul Bakker40e46942009-01-03 21:51:57 +0000683#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000684
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000685/**
686 * \def POLARSSL_SHA1_C
687 *
688 * Enable the SHA1 cryptographic hash algorithm.
689 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000690 * Module: library/sha1.c
691 * Caller: library/ssl_cli.c
692 * library/ssl_srv.c
693 * library/ssl_tls.c
694 * library/x509parse.c
695 *
696 * This module is required for SSL/TLS and SHA1-signed certificates.
697 */
Paul Bakker40e46942009-01-03 21:51:57 +0000698#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000699
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000700/**
701 * \def POLARSSL_SHA2_C
702 *
703 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
704 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000705 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000706 * Caller: library/md_wrap.c
707 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000708 *
709 * This module adds support for SHA-224 and SHA-256.
Paul Bakker769075d2012-11-24 11:26:46 +0100710 * This module is required for the SSL/TLS 1.2 PRF function.
Paul Bakker5121ce52009-01-03 21:22:43 +0000711 */
Paul Bakker40e46942009-01-03 21:51:57 +0000712#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000713
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000714/**
715 * \def POLARSSL_SHA4_C
716 *
717 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
718 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000719 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000720 * Caller: library/md_wrap.c
721 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000722 *
723 * This module adds support for SHA-384 and SHA-512.
724 */
Paul Bakker40e46942009-01-03 21:51:57 +0000725#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000726
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000727/**
Paul Bakker0a597072012-09-25 21:55:46 +0000728 * \def POLARSSL_SSL_CACHE_C
729 *
730 * Enable simple SSL cache implementation.
731 *
732 * Module: library/ssl_cache.c
733 * Caller:
734 *
735 * Requires: POLARSSL_SSL_CACHE_C
736 */
737#define POLARSSL_SSL_CACHE_C
738
739/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000740 * \def POLARSSL_SSL_CLI_C
741 *
742 * Enable the SSL/TLS client code.
743 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000744 * Module: library/ssl_cli.c
745 * Caller:
746 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000747 * Requires: POLARSSL_SSL_TLS_C
748 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000749 * This module is required for SSL/TLS client support.
750 */
Paul Bakker40e46942009-01-03 21:51:57 +0000751#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000752
Paul Bakker9a736322012-11-14 12:39:52 +0000753/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000754 * \def POLARSSL_SSL_SRV_C
755 *
756 * Enable the SSL/TLS server code.
757 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000758 * Module: library/ssl_srv.c
759 * Caller:
760 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000761 * Requires: POLARSSL_SSL_TLS_C
762 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000763 * This module is required for SSL/TLS server support.
764 */
Paul Bakker40e46942009-01-03 21:51:57 +0000765#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000766
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000767/**
768 * \def POLARSSL_SSL_TLS_C
769 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000770 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000771 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000772 * Module: library/ssl_tls.c
773 * Caller: library/ssl_cli.c
774 * library/ssl_srv.c
775 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000776 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
777 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000778 * This module is required for SSL/TLS.
779 */
Paul Bakker40e46942009-01-03 21:51:57 +0000780#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000781
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000782/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000783 * \def POLARSSL_TIMING_C
784 *
785 * Enable the portable timing interface.
786 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000787 * Module: library/timing.c
788 * Caller: library/havege.c
789 *
790 * This module is used by the HAVEGE random number generator.
791 */
Paul Bakker40e46942009-01-03 21:51:57 +0000792#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000793
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000794/**
795 * \def POLARSSL_VERSION_C
796 *
797 * Enable run-time version information.
798 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000799 * Module: library/version.c
800 *
801 * This module provides run-time version information.
802 */
803#define POLARSSL_VERSION_C
804
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000805/**
806 * \def POLARSSL_X509_PARSE_C
807 *
808 * Enable X.509 certificate parsing.
809 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000810 * Module: library/x509parse.c
811 * Caller: library/ssl_cli.c
812 * library/ssl_srv.c
813 * library/ssl_tls.c
814 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000815 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000816 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000817 * This module is required for X.509 certificate parsing.
818 */
Paul Bakker40e46942009-01-03 21:51:57 +0000819#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000820
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000821/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000822 * \def POLARSSL_X509_WRITE_C
823 *
824 * Enable X.509 buffer writing.
825 *
826 * Module: library/x509write.c
827 *
828 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
829 *
830 * This module is required for X.509 certificate request writing.
831 */
832#define POLARSSL_X509_WRITE_C
833
834/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000835 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000836 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000837 * Enable the XTEA block cipher.
838 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000839 * Module: library/xtea.c
840 * Caller:
841 */
842#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000843/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000844
Paul Bakker5121ce52009-01-03 21:22:43 +0000845#endif /* config.h */