blob: 543b96c8cae0311731db74046b980ed100f5f921 [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/**
64 * \def POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000065 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +000066 * The compiler supports the use of long long.
67 *
68 * Uncomment if the compiler supports long long.
Paul Bakker40e46942009-01-03 21:51:57 +000069#define POLARSSL_HAVE_LONGLONG
Paul Bakker5121ce52009-01-03 21:22:43 +000070 */
71
Paul Bakkerf3b86c12011-01-27 15:24:17 +000072/**
73 * \def POLARSSL_HAVE_ASM
74 *
75 * The compiler has support for asm()
76 *
Paul Bakker5121ce52009-01-03 21:22:43 +000077 * Uncomment to enable the use of assembly code.
Paul Bakker68041ec2009-04-19 21:17:55 +000078 *
79 * Requires support for asm() in compiler.
80 *
81 * Used in:
82 * library/timing.c
83 * library/padlock.c
84 * include/polarssl/bn_mul.h
85 *
Paul Bakker5121ce52009-01-03 21:22:43 +000086 */
Paul Bakker40e46942009-01-03 21:51:57 +000087#define POLARSSL_HAVE_ASM
Paul Bakker5121ce52009-01-03 21:22:43 +000088
Paul Bakkerf3b86c12011-01-27 15:24:17 +000089/**
90 * \def POLARSSL_HAVE_SSE2
91 *
92 * CPI supports SSE2 instruction set.
93 *
Paul Bakker5121ce52009-01-03 21:22:43 +000094 * Uncomment if the CPU supports SSE2 (IA-32 specific).
95 *
Paul Bakker40e46942009-01-03 21:51:57 +000096#define POLARSSL_HAVE_SSE2
Paul Bakker5121ce52009-01-03 21:22:43 +000097 */
Paul Bakker0a62cd12011-01-21 11:00:08 +000098/* \} name */
99
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000100/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000101 * \name SECTION: PolarSSL feature support
102 *
103 * This section sets support for features that are or are not needed
104 * within the modules that are enabled.
105 * \{
106 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000107
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000108/**
Paul Bakker15566e42011-04-24 21:19:15 +0000109 * \def POLARSSL_AES_ROM_TABLES
110 *
111 * Store the AES tables in ROM.
112 *
113 * Uncomment this macro to store the AES tables in ROM.
114 *
115#define POLARSSL_AES_ROM_TABLES
116 */
117
118/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000119 * \def POLARSSL_CIPHER_MODE_CFB
120 *
121 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
122 */
123#define POLARSSL_CIPHER_MODE_CFB
124
125/**
126 * \def POLARSSL_CIPHER_MODE_CTR
127 *
128 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
129 */
130#define POLARSSL_CIPHER_MODE_CTR
131
132/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000133 * \def POLARSSL_CIPHER_NULL_CIPHER
134 *
135 * Enable NULL cipher.
136 * Warning: Only do so when you know what you are doing. This allows for
137 * encryption or channels without any security!
138 *
139 * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable
140 * the following ciphersuites:
141 * SSL_RSA_NULL_MD5
142 * SSL_RSA_NULL_SHA
143 * SSL_RSA_NULL_SHA256
144 *
145 * Uncomment this macro to enable the NULL cipher and ciphersuites
146#define POLARSSL_CIPHER_NULL_CIPHER
147 */
148
149/**
Paul Bakkerfab5c822012-02-06 16:45:10 +0000150 * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES
151 *
152 * Enable weak ciphersuites in SSL / TLS (like RC4_40)
153 * Warning: Only do so when you know what you are doing. This allows for
154 * channels without virtually no security at all!
155 *
156 * This enables the following ciphersuites:
157 * SSL_RSA_DES_SHA
158 * SSL_EDH_RSA_DES_SHA
159 *
160 * Uncomment this macro to enable weak ciphersuites
161#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
162 */
163
164/**
Paul Bakker15566e42011-04-24 21:19:15 +0000165 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000166 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000167 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
168 *
Paul Bakker15566e42011-04-24 21:19:15 +0000169 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000170 */
Paul Bakker15566e42011-04-24 21:19:15 +0000171#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000172
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000173/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000174 * \def POLARSSL_FS_IO
175 *
176 * Enable functions that use the filesystem.
177 */
178#define POLARSSL_FS_IO
179
180/**
Paul Bakker43655f42011-12-15 20:11:16 +0000181 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
182 *
183 * Do not add default entropy sources. These are the platform specific,
184 * hardclock and HAVEGE based poll functions.
185 *
186 * This is useful to have more control over the added entropy sources in an
187 * application.
188 *
189 * Uncomment this macro to prevent loading of default entropy functions.
190#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
191 */
192
193/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000194 * \def POLARSSL_NO_PLATFORM_ENTROPY
195 *
196 * Do not use built-in platform entropy functions.
197 * This is useful if your platform does not support
198 * standards like the /dev/urandom or Windows CryptoAPI.
199 *
200 * Uncomment this macro to disable the built-in platform entropy functions.
201#define POLARSSL_NO_PLATFORM_ENTROPY
202 */
203
204/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000205 * \def POLARSSL_PKCS1_V21
206 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000207 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
208 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000209 * Enable support for PKCS#1 v2.1 encoding.
210 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
211 */
212#define POLARSSL_PKCS1_V21
213
214/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000215 * \def POLARSSL_RSA_NO_CRT
216 *
217 * Do not use the Chinese Remainder Theorem for the RSA private operation.
218 *
219 * Uncomment this macro to disable the use of CRT in RSA.
220 *
221#define POLARSSL_RSA_NO_CRT
222 */
Paul Bakker15566e42011-04-24 21:19:15 +0000223
224/**
225 * \def POLARSSL_SELF_TEST
226 *
227 * Enable the checkup functions (*_self_test).
228 */
229#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000230
231/**
Paul Bakker05ef8352012-05-08 09:17:57 +0000232 * \def POLARSSL_SSL_HW_RECORD_ACCEL
233 *
234 * Enable hooking functions in SSL module for hardware acceleration of
235 * individual records.
236 *
237 * Uncomment this macro to enable hooking functions.
238#define POLARSSL_SSL_HW_RECORD_ACCEL
239 */
240
241/**
Paul Bakker5c721f92011-07-27 16:51:09 +0000242 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
243 *
244 * If set, the X509 parser will not break-off when parsing an X509 certificate
245 * and encountering an unknown critical extension.
246 *
247 * Uncomment to prevent an error.
248 *
249#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
250 */
Paul Bakker2770fbd2012-07-03 13:30:23 +0000251
252/**
253 * \def POLARSSL_ZLIB_SUPPORT
254 *
255 * If set, the SSL/TLS module uses ZLIB to support compression and
256 * decompression of packet data.
257 *
258 * Used in: library/ssl_tls.c
259 * library/ssl_cli.c
260 * library/ssl_srv.c
261 *
262 * This feature requires zlib library and headers to be present.
263 *
264 * Uncomment to enable use of ZLIB
265#define POLARSSL_ZLIB_SUPPORT
266 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000267/* \} name */
268
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000269/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000270 * \name SECTION: PolarSSL modules
271 *
272 * This section enables or disables entire modules in PolarSSL
273 * \{
274 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000275
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000276/**
277 * \def POLARSSL_AES_C
278 *
279 * Enable the AES block cipher.
280 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000281 * Module: library/aes.c
282 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000283 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000284 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000285 *
286 * This module enables the following ciphersuites:
287 * SSL_RSA_AES_128_SHA
288 * SSL_RSA_AES_256_SHA
289 * SSL_EDH_RSA_AES_256_SHA
290 */
Paul Bakker40e46942009-01-03 21:51:57 +0000291#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000292
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000293/**
294 * \def POLARSSL_ARC4_C
295 *
296 * Enable the ARCFOUR stream cipher.
297 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000298 * Module: library/arc4.c
299 * Caller: library/ssl_tls.c
300 *
301 * This module enables the following ciphersuites:
302 * SSL_RSA_RC4_128_MD5
303 * SSL_RSA_RC4_128_SHA
304 */
Paul Bakker40e46942009-01-03 21:51:57 +0000305#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000306
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000307/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000308 * \def POLARSSL_ASN1_PARSE_C
309 *
310 * Enable the generic ASN1 parser.
311 *
312 * Module: library/asn1.c
313 * Caller: library/x509parse.c
314 */
315#define POLARSSL_ASN1_PARSE_C
316
317/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000318 * \def POLARSSL_ASN1_WRITE_C
319 *
320 * Enable the generic ASN1 writer.
321 *
322 * Module: library/asn1write.c
323 */
324#define POLARSSL_ASN1_WRITE_C
325
326/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000327 * \def POLARSSL_BASE64_C
328 *
329 * Enable the Base64 module.
330 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000331 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000332 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000333 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000334 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000335 */
Paul Bakker40e46942009-01-03 21:51:57 +0000336#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000337
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000338/**
339 * \def POLARSSL_BIGNUM_C
340 *
341 * Enable the multo-precision integer library.
342 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000343 * Module: library/bignum.c
344 * Caller: library/dhm.c
345 * library/rsa.c
346 * library/ssl_tls.c
347 * library/x509parse.c
348 *
349 * This module is required for RSA and DHM support.
350 */
Paul Bakker40e46942009-01-03 21:51:57 +0000351#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000352
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000353/**
Paul Bakkera9379c02012-07-04 11:02:11 +0000354 * \def POLARSSL_BLOWFISH_C
355 *
356 * Enable the Blowfish block cipher.
357 *
358 * Module: library/blowfish.c
359 */
360#define POLARSSL_BLOWFISH_C
361
362/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000363 * \def POLARSSL_CAMELLIA_C
364 *
365 * Enable the Camellia block cipher.
366 *
Paul Bakker38119b12009-01-10 23:31:23 +0000367 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000368 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000369 *
370 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000371 * SSL_RSA_CAMELLIA_128_SHA
372 * SSL_RSA_CAMELLIA_256_SHA
373 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000374 */
375#define POLARSSL_CAMELLIA_C
376
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000377/**
378 * \def POLARSSL_CERTS_C
379 *
380 * Enable the test certificates.
381 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000382 * Module: library/certs.c
383 * Caller:
384 *
385 * This module is used for testing (ssl_client/server).
386 */
Paul Bakker40e46942009-01-03 21:51:57 +0000387#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000388
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000389/**
390 * \def POLARSSL_CIPHER_C
391 *
392 * Enable the generic cipher layer.
393 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000394 * Module: library/cipher.c
395 * Caller:
396 *
397 * Uncomment to enable generic cipher wrappers.
398 */
399#define POLARSSL_CIPHER_C
400
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000401/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000402 * \def POLARSSL_CTR_DRBG_C
403 *
404 * Enable the CTR_DRBG AES-256-based random generator
405 *
406 * Module: library/ctr_drbg.c
407 * Caller:
408 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000409 * Requires: POLARSSL_AES_C
410 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000411 * This module provides the CTR_DRBG AES-256 random number generator.
412 */
413#define POLARSSL_CTR_DRBG_C
414
415/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000416 * \def POLARSSL_DEBUG_C
417 *
418 * Enable the debug functions.
419 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000420 * Module: library/debug.c
421 * Caller: library/ssl_cli.c
422 * library/ssl_srv.c
423 * library/ssl_tls.c
424 *
425 * This module provides debugging functions.
426 */
Paul Bakker40e46942009-01-03 21:51:57 +0000427#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000428
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000429/**
430 * \def POLARSSL_DES_C
431 *
432 * Enable the DES block cipher.
433 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000434 * Module: library/des.c
435 * Caller: library/ssl_tls.c
436 *
437 * This module enables the following ciphersuites:
438 * SSL_RSA_DES_168_SHA
439 * SSL_EDH_RSA_DES_168_SHA
440 */
Paul Bakker40e46942009-01-03 21:51:57 +0000441#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000442
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000443/**
444 * \def POLARSSL_DHM_C
445 *
446 * Enable the Diffie-Hellman-Merkle key exchange.
447 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000448 * Module: library/dhm.c
449 * Caller: library/ssl_cli.c
450 * library/ssl_srv.c
451 *
452 * This module enables the following ciphersuites:
453 * SSL_EDH_RSA_DES_168_SHA
454 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000455 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000456 */
Paul Bakker40e46942009-01-03 21:51:57 +0000457#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000458
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000459/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000460 * \def POLARSSL_ENTROPY_C
461 *
462 * Enable the platform-specific entropy code.
463 *
464 * Module: library/entropy.c
465 * Caller:
466 *
467 * Requires: POLARSSL_SHA4_C
468 *
469 * This module provides a generic entropy pool
470 */
471#define POLARSSL_ENTROPY_C
472
473/**
Paul Bakker9d781402011-05-09 16:17:09 +0000474 * \def POLARSSL_ERROR_C
475 *
476 * Enable error code to error string conversion.
477 *
478 * Module: library/error.c
479 * Caller:
480 *
481 * This module enables err_strerror().
482 */
483#define POLARSSL_ERROR_C
484
485/**
Paul Bakker89e80c92012-03-20 13:50:09 +0000486 * \def POLARSSL_GCM_C
487 *
488 * Enable the Galois/Counter Mode (GCM) for AES
489 *
490 * Module: library/gcm.c
491 *
492 * Requires: POLARSSL_AES_C
493 */
494#define POLARSSL_GCM_C
495
496/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000497 * \def POLARSSL_HAVEGE_C
498 *
499 * Enable the HAVEGE random generator.
500 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000501 * Module: library/havege.c
502 * Caller:
503 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000504 * Requires: POLARSSL_TIMING_C
505 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000506 * This module enables the HAVEGE random number generator.
507 */
Paul Bakker40e46942009-01-03 21:51:57 +0000508#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000509
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000510/**
511 * \def POLARSSL_MD_C
512 *
513 * Enable the generic message digest layer.
514 *
Paul Bakker17373852011-01-06 14:20:01 +0000515 * Module: library/md.c
516 * Caller:
517 *
518 * Uncomment to enable generic message digest wrappers.
519 */
520#define POLARSSL_MD_C
521
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000522/**
523 * \def POLARSSL_MD2_C
524 *
525 * Enable the MD2 hash algorithm
526 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000527 * Module: library/md2.c
528 * Caller: library/x509parse.c
529 *
530 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
531 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000532#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000533 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000534
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000535/**
536 * \def POLARSSL_MD4_C
537 *
538 * Enable the MD4 hash algorithm
539 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000540 * Module: library/md4.c
541 * Caller: library/x509parse.c
542 *
543 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
544 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000545#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000546 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000547
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000548/**
549 * \def POLARSSL_MD5_C
550 *
551 * Enable the MD5 hash algorithm
552 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000553 * Module: library/md5.c
554 * Caller: library/ssl_tls.c
555 * library/x509parse.c
556 *
557 * This module is required for SSL/TLS and X.509.
558 */
Paul Bakker40e46942009-01-03 21:51:57 +0000559#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000560
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000561/**
562 * \def POLARSSL_NET_C
563 *
564 * Enable the TCP/IP networking routines.
565 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000566 * Module: library/net.c
567 * Caller:
568 *
569 * This module provides TCP/IP networking routines.
570 */
Paul Bakker40e46942009-01-03 21:51:57 +0000571#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000572
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000573/**
574 * \def POLARSSL_PADLOCK_C
575 *
576 * Enable VIA Padlock support on x86.
577 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000578 * Module: library/padlock.c
579 * Caller: library/aes.c
580 *
581 * This modules adds support for the VIA PadLock on x86.
582 */
Paul Bakker40e46942009-01-03 21:51:57 +0000583#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000584
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000585/**
Paul Bakkerf518b162012-08-23 13:03:18 +0000586 * \def POLARSSL_PBKDF2_C
587 *
588 * Enable PKCS#5 PBKDF2 key derivation function
589 *
590 * Module: library/pbkdf2.c
591 *
592 * Requires: POLARSSL_MD_C
593 *
594 * This module adds support for the PKCS#5 PBKDF2 key derivation function.
595#define POLARSSL_PBKDF2_C
596 */
597
598/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000599 * \def POLARSSL_PEM_C
600 *
601 * Enable PEM decoding
602 *
603 * Module: library/pem.c
604 * Caller: library/x509parse.c
605 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000606 * Requires: POLARSSL_BASE64_C
607 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000608 * This modules adds support for decoding PEM files.
609 */
610#define POLARSSL_PEM_C
611
612/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000613 * \def POLARSSL_PKCS11_C
614 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000615 * Enable wrapper for PKCS#11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000616 *
617 * Module: library/ssl_srv.c
618 * Caller: library/ssl_cli.c
619 * library/ssl_srv.c
620 *
621 * Requires: POLARSSL_SSL_TLS_C
622 *
Paul Bakkereb2c6582012-09-27 19:15:01 +0000623 * This module enables SSL/TLS PKCS #11 smartcard support.
Paul Bakker5690efc2011-05-26 13:16:06 +0000624 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
625#define POLARSSL_PKCS11_C
626 */
627
628/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000629 * \def POLARSSL_RSA_C
630 *
631 * Enable the RSA public-key cryptosystem.
632 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000633 * Module: library/rsa.c
634 * Caller: library/ssl_cli.c
635 * library/ssl_srv.c
636 * library/ssl_tls.c
637 * library/x509.c
638 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000639 * Requires: POLARSSL_BIGNUM_C
640 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000641 * This module is required for SSL/TLS and MD5-signed certificates.
642 */
Paul Bakker40e46942009-01-03 21:51:57 +0000643#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000644
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000645/**
646 * \def POLARSSL_SHA1_C
647 *
648 * Enable the SHA1 cryptographic hash algorithm.
649 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000650 * Module: library/sha1.c
651 * Caller: library/ssl_cli.c
652 * library/ssl_srv.c
653 * library/ssl_tls.c
654 * library/x509parse.c
655 *
656 * This module is required for SSL/TLS and SHA1-signed certificates.
657 */
Paul Bakker40e46942009-01-03 21:51:57 +0000658#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000659
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000660/**
661 * \def POLARSSL_SHA2_C
662 *
663 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
664 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000665 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000666 * Caller: library/md_wrap.c
667 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000668 *
669 * This module adds support for SHA-224 and SHA-256.
670 */
Paul Bakker40e46942009-01-03 21:51:57 +0000671#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000672
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000673/**
674 * \def POLARSSL_SHA4_C
675 *
676 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
677 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000678 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000679 * Caller: library/md_wrap.c
680 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000681 *
682 * This module adds support for SHA-384 and SHA-512.
683 */
Paul Bakker40e46942009-01-03 21:51:57 +0000684#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000685
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000686/**
Paul Bakker0a597072012-09-25 21:55:46 +0000687 * \def POLARSSL_SSL_CACHE_C
688 *
689 * Enable simple SSL cache implementation.
690 *
691 * Module: library/ssl_cache.c
692 * Caller:
693 *
694 * Requires: POLARSSL_SSL_CACHE_C
695 */
696#define POLARSSL_SSL_CACHE_C
697
698/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000699 * \def POLARSSL_SSL_CLI_C
700 *
701 * Enable the SSL/TLS client code.
702 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000703 * Module: library/ssl_cli.c
704 * Caller:
705 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000706 * Requires: POLARSSL_SSL_TLS_C
707 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000708 * This module is required for SSL/TLS client support.
709 */
Paul Bakker40e46942009-01-03 21:51:57 +0000710#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000711
712/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000713 * \def POLARSSL_SSL_SRV_C
714 *
715 * Enable the SSL/TLS server code.
716 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000717 * Module: library/ssl_srv.c
718 * Caller:
719 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000720 * Requires: POLARSSL_SSL_TLS_C
721 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000722 * This module is required for SSL/TLS server support.
723 */
Paul Bakker40e46942009-01-03 21:51:57 +0000724#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000725
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000726/**
727 * \def POLARSSL_SSL_TLS_C
728 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000729 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000730 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000731 * Module: library/ssl_tls.c
732 * Caller: library/ssl_cli.c
733 * library/ssl_srv.c
734 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000735 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
736 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000737 * This module is required for SSL/TLS.
738 */
Paul Bakker40e46942009-01-03 21:51:57 +0000739#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000740
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000741/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000742 * \def POLARSSL_TIMING_C
743 *
744 * Enable the portable timing interface.
745 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000746 * Module: library/timing.c
747 * Caller: library/havege.c
748 *
749 * This module is used by the HAVEGE random number generator.
750 */
Paul Bakker40e46942009-01-03 21:51:57 +0000751#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000752
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000753/**
754 * \def POLARSSL_VERSION_C
755 *
756 * Enable run-time version information.
757 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000758 * Module: library/version.c
759 *
760 * This module provides run-time version information.
761 */
762#define POLARSSL_VERSION_C
763
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000764/**
765 * \def POLARSSL_X509_PARSE_C
766 *
767 * Enable X.509 certificate parsing.
768 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000769 * Module: library/x509parse.c
770 * Caller: library/ssl_cli.c
771 * library/ssl_srv.c
772 * library/ssl_tls.c
773 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000774 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000775 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000776 * This module is required for X.509 certificate parsing.
777 */
Paul Bakker40e46942009-01-03 21:51:57 +0000778#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000779
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000780/**
Paul Bakkerbdb912d2012-02-13 23:11:30 +0000781 * \def POLARSSL_X509_WRITE_C
782 *
783 * Enable X.509 buffer writing.
784 *
785 * Module: library/x509write.c
786 *
787 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
788 *
789 * This module is required for X.509 certificate request writing.
790 */
791#define POLARSSL_X509_WRITE_C
792
793/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000794 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000795 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000796 * Enable the XTEA block cipher.
797 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000798 * Module: library/xtea.c
799 * Caller:
800 */
801#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000802/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000803
Paul Bakker5121ce52009-01-03 21:22:43 +0000804#endif /* config.h */