blob: e597edf9a27e7b3f8425ceacadc8cede5f90efbc [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 Bakkerefc30292011-11-10 14:43:23 +00006 * Copyright (C) 2006-2011, 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 Bakkerf3b86c12011-01-27 15:24:17 +0000133 * \def POLARSSL_DEBUG_MSG
134 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000135 * Requires: POLARSSL_DEBUG_C
136 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000137 * Enable all SSL/TLS debugging messages.
138 */
Paul Bakker40e46942009-01-03 21:51:57 +0000139#define POLARSSL_DEBUG_MSG
Paul Bakker5121ce52009-01-03 21:22:43 +0000140
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000141/**
Paul Bakkercb60e7c2013-03-11 15:50:35 +0100142 * \def POLARSSL_ERROR_STRERROR_DUMMY
143 *
144 * Enable a dummy error function to make use of error_strerror() in
145 * third party libraries easier.
146 *
147 * Disable if you run into name conflicts and want to really remove the
148 * error_strerror()
149 */
150#define POLARSSL_ERROR_STRERROR_DUMMY
151
152/**
Paul Bakker15566e42011-04-24 21:19:15 +0000153 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000154 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000155 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
156 *
Paul Bakker15566e42011-04-24 21:19:15 +0000157 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000158 */
Paul Bakker15566e42011-04-24 21:19:15 +0000159#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000160
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000161/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000162 * \def POLARSSL_FS_IO
163 *
164 * Enable functions that use the filesystem.
165 */
166#define POLARSSL_FS_IO
167
168/**
Paul Bakkerd567aa22011-12-22 10:06:27 +0000169 * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
170 *
171 * Do not add default entropy sources. These are the platform specific,
172 * hardclock and HAVEGE based poll functions.
173 *
174 * This is useful to have more control over the added entropy sources in an
175 * application.
176 *
177 * Uncomment this macro to prevent loading of default entropy functions.
178#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
179 */
180
181/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000182 * \def POLARSSL_NO_PLATFORM_ENTROPY
183 *
184 * Do not use built-in platform entropy functions.
185 * This is useful if your platform does not support
186 * standards like the /dev/urandom or Windows CryptoAPI.
187 *
188 * Uncomment this macro to disable the built-in platform entropy functions.
189#define POLARSSL_NO_PLATFORM_ENTROPY
190 */
191
192/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000193 * \def POLARSSL_PKCS1_V21
194 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000195 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
196 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000197 * Enable support for PKCS#1 v2.1 encoding.
198 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
199 */
200#define POLARSSL_PKCS1_V21
201
202/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000203 * \def POLARSSL_RSA_NO_CRT
204 *
205 * Do not use the Chinese Remainder Theorem for the RSA private operation.
206 *
207 * Uncomment this macro to disable the use of CRT in RSA.
208 *
209#define POLARSSL_RSA_NO_CRT
210 */
Paul Bakker15566e42011-04-24 21:19:15 +0000211
212/**
213 * \def POLARSSL_SELF_TEST
214 *
215 * Enable the checkup functions (*_self_test).
216 */
217#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000218
219/**
Paul Bakker48b7cb82013-03-11 15:59:03 +0100220 * \def POLARSSL_SSL_DEBUG_ALL
221 *
222 * Enable the debug messages in SSL module for all issues.
223 * Debug messages have been disabled in some places to prevent timing
224 * attacks due to (unbalanced) debugging function calls.
225 *
226 * If you need all error reporting you should enable this during debugging,
227 * but remove this for production servers that should log as well.
228 *
229 * Uncomment this macro to report all debug messages on errors introducing
230 * a timing side-channel.
231 *
232#define POLARSSL_SSL_DEBUG_ALL
233 */
234
235/**
Paul Bakker5c721f92011-07-27 16:51:09 +0000236 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
237 *
238 * If set, the X509 parser will not break-off when parsing an X509 certificate
239 * and encountering an unknown critical extension.
240 *
241 * Uncomment to prevent an error.
242 *
243#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
244 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000245/* \} name */
246
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000247/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000248 * \name SECTION: PolarSSL modules
249 *
250 * This section enables or disables entire modules in PolarSSL
251 * \{
252 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000253
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000254/**
255 * \def POLARSSL_AES_C
256 *
257 * Enable the AES block cipher.
258 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000259 * Module: library/aes.c
260 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000261 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000262 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000263 *
264 * This module enables the following ciphersuites:
265 * SSL_RSA_AES_128_SHA
266 * SSL_RSA_AES_256_SHA
267 * SSL_EDH_RSA_AES_256_SHA
268 */
Paul Bakker40e46942009-01-03 21:51:57 +0000269#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000270
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000271/**
272 * \def POLARSSL_ARC4_C
273 *
274 * Enable the ARCFOUR stream cipher.
275 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000276 * Module: library/arc4.c
277 * Caller: library/ssl_tls.c
278 *
279 * This module enables the following ciphersuites:
280 * SSL_RSA_RC4_128_MD5
281 * SSL_RSA_RC4_128_SHA
282 */
Paul Bakker40e46942009-01-03 21:51:57 +0000283#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000284
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000285/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000286 * \def POLARSSL_ASN1_PARSE_C
287 *
288 * Enable the generic ASN1 parser.
289 *
290 * Module: library/asn1.c
291 * Caller: library/x509parse.c
292 */
293#define POLARSSL_ASN1_PARSE_C
294
295/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000296 * \def POLARSSL_BASE64_C
297 *
298 * Enable the Base64 module.
299 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000300 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000301 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000302 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000303 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000304 */
Paul Bakker40e46942009-01-03 21:51:57 +0000305#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000306
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000307/**
308 * \def POLARSSL_BIGNUM_C
309 *
Paul Bakker5aef1e12012-11-07 20:05:38 +0000310 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000311 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000312 * Module: library/bignum.c
313 * Caller: library/dhm.c
314 * library/rsa.c
315 * library/ssl_tls.c
316 * library/x509parse.c
317 *
318 * This module is required for RSA and DHM support.
319 */
Paul Bakker40e46942009-01-03 21:51:57 +0000320#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000321
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000322/**
323 * \def POLARSSL_CAMELLIA_C
324 *
325 * Enable the Camellia block cipher.
326 *
Paul Bakker38119b12009-01-10 23:31:23 +0000327 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000328 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000329 *
330 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000331 * SSL_RSA_CAMELLIA_128_SHA
332 * SSL_RSA_CAMELLIA_256_SHA
333 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000334 */
335#define POLARSSL_CAMELLIA_C
336
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000337/**
338 * \def POLARSSL_CERTS_C
339 *
340 * Enable the test certificates.
341 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000342 * Module: library/certs.c
343 * Caller:
344 *
345 * This module is used for testing (ssl_client/server).
346 */
Paul Bakker40e46942009-01-03 21:51:57 +0000347#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000348
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000349/**
350 * \def POLARSSL_CIPHER_C
351 *
352 * Enable the generic cipher layer.
353 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000354 * Module: library/cipher.c
355 * Caller:
356 *
357 * Uncomment to enable generic cipher wrappers.
358 */
359#define POLARSSL_CIPHER_C
360
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000361/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000362 * \def POLARSSL_CTR_DRBG_C
363 *
364 * Enable the CTR_DRBG AES-256-based random generator
365 *
366 * Module: library/ctr_drbg.c
367 * Caller:
368 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000369 * Requires: POLARSSL_AES_C
370 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000371 * This module provides the CTR_DRBG AES-256 random number generator.
372 */
373#define POLARSSL_CTR_DRBG_C
374
375/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000376 * \def POLARSSL_DEBUG_C
377 *
378 * Enable the debug functions.
379 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000380 * Module: library/debug.c
381 * Caller: library/ssl_cli.c
382 * library/ssl_srv.c
383 * library/ssl_tls.c
384 *
385 * This module provides debugging functions.
386 */
Paul Bakker40e46942009-01-03 21:51:57 +0000387#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000388
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000389/**
390 * \def POLARSSL_DES_C
391 *
392 * Enable the DES block cipher.
393 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000394 * Module: library/des.c
395 * Caller: library/ssl_tls.c
396 *
397 * This module enables the following ciphersuites:
398 * SSL_RSA_DES_168_SHA
399 * SSL_EDH_RSA_DES_168_SHA
400 */
Paul Bakker40e46942009-01-03 21:51:57 +0000401#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000402
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000403/**
404 * \def POLARSSL_DHM_C
405 *
406 * Enable the Diffie-Hellman-Merkle key exchange.
407 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000408 * Module: library/dhm.c
409 * Caller: library/ssl_cli.c
410 * library/ssl_srv.c
411 *
412 * This module enables the following ciphersuites:
413 * SSL_EDH_RSA_DES_168_SHA
414 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000415 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000416 */
Paul Bakker40e46942009-01-03 21:51:57 +0000417#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000418
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000419/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000420 * \def POLARSSL_ENTROPY_C
421 *
422 * Enable the platform-specific entropy code.
423 *
424 * Module: library/entropy.c
425 * Caller:
426 *
427 * Requires: POLARSSL_SHA4_C
428 *
429 * This module provides a generic entropy pool
430 */
431#define POLARSSL_ENTROPY_C
432
433/**
Paul Bakker9d781402011-05-09 16:17:09 +0000434 * \def POLARSSL_ERROR_C
435 *
436 * Enable error code to error string conversion.
437 *
438 * Module: library/error.c
439 * Caller:
440 *
441 * This module enables err_strerror().
442 */
443#define POLARSSL_ERROR_C
444
445/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000446 * \def POLARSSL_HAVEGE_C
447 *
448 * Enable the HAVEGE random generator.
449 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000450 * Module: library/havege.c
451 * Caller:
452 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000453 * Requires: POLARSSL_TIMING_C
454 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000455 * This module enables the HAVEGE random number generator.
456 */
Paul Bakker40e46942009-01-03 21:51:57 +0000457#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000458
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000459/**
460 * \def POLARSSL_MD_C
461 *
462 * Enable the generic message digest layer.
463 *
Paul Bakker17373852011-01-06 14:20:01 +0000464 * Module: library/md.c
465 * Caller:
466 *
467 * Uncomment to enable generic message digest wrappers.
468 */
469#define POLARSSL_MD_C
470
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000471/**
472 * \def POLARSSL_MD2_C
473 *
474 * Enable the MD2 hash algorithm
475 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000476 * Module: library/md2.c
477 * Caller: library/x509parse.c
478 *
479 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
480 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000481#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000482 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000483
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000484/**
485 * \def POLARSSL_MD4_C
486 *
487 * Enable the MD4 hash algorithm
488 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000489 * Module: library/md4.c
490 * Caller: library/x509parse.c
491 *
492 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
493 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000494#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000495 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000496
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000497/**
498 * \def POLARSSL_MD5_C
499 *
500 * Enable the MD5 hash algorithm
501 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000502 * Module: library/md5.c
503 * Caller: library/ssl_tls.c
504 * library/x509parse.c
505 *
506 * This module is required for SSL/TLS and X.509.
507 */
Paul Bakker40e46942009-01-03 21:51:57 +0000508#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000509
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000510/**
511 * \def POLARSSL_NET_C
512 *
513 * Enable the TCP/IP networking routines.
514 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000515 * Module: library/net.c
516 * Caller:
517 *
518 * This module provides TCP/IP networking routines.
519 */
Paul Bakker40e46942009-01-03 21:51:57 +0000520#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000521
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000522/**
523 * \def POLARSSL_PADLOCK_C
524 *
525 * Enable VIA Padlock support on x86.
526 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000527 * Module: library/padlock.c
528 * Caller: library/aes.c
529 *
530 * This modules adds support for the VIA PadLock on x86.
531 */
Paul Bakker40e46942009-01-03 21:51:57 +0000532#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000533
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000534/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000535 * \def POLARSSL_PEM_C
536 *
537 * Enable PEM decoding
538 *
539 * Module: library/pem.c
540 * Caller: library/x509parse.c
541 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000542 * Requires: POLARSSL_BASE64_C
543 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000544 * This modules adds support for decoding PEM files.
545 */
546#define POLARSSL_PEM_C
547
548/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000549 * \def POLARSSL_PKCS11_C
550 *
551 * Enable support for PKCS#11 smartcard support.
552 *
553 * Module: library/ssl_srv.c
554 * Caller: library/ssl_cli.c
555 * library/ssl_srv.c
556 *
557 * Requires: POLARSSL_SSL_TLS_C
558 *
559 * This module is required for SSL/TLS PKCS #11 smartcard support.
560 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
561#define POLARSSL_PKCS11_C
562 */
563
564/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000565 * \def POLARSSL_RSA_C
566 *
567 * Enable the RSA public-key cryptosystem.
568 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000569 * Module: library/rsa.c
570 * Caller: library/ssl_cli.c
571 * library/ssl_srv.c
572 * library/ssl_tls.c
573 * library/x509.c
574 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000575 * Requires: POLARSSL_BIGNUM_C
576 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000577 * This module is required for SSL/TLS and MD5-signed certificates.
578 */
Paul Bakker40e46942009-01-03 21:51:57 +0000579#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000580
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000581/**
582 * \def POLARSSL_SHA1_C
583 *
584 * Enable the SHA1 cryptographic hash algorithm.
585 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000586 * Module: library/sha1.c
587 * Caller: library/ssl_cli.c
588 * library/ssl_srv.c
589 * library/ssl_tls.c
590 * library/x509parse.c
591 *
592 * This module is required for SSL/TLS and SHA1-signed certificates.
593 */
Paul Bakker40e46942009-01-03 21:51:57 +0000594#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000595
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000596/**
597 * \def POLARSSL_SHA2_C
598 *
599 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
600 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000601 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000602 * Caller: library/md_wrap.c
603 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000604 *
605 * This module adds support for SHA-224 and SHA-256.
606 */
Paul Bakker40e46942009-01-03 21:51:57 +0000607#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000608
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000609/**
610 * \def POLARSSL_SHA4_C
611 *
612 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
613 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000614 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000615 * Caller: library/md_wrap.c
616 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000617 *
618 * This module adds support for SHA-384 and SHA-512.
619 */
Paul Bakker40e46942009-01-03 21:51:57 +0000620#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000621
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000622/**
623 * \def POLARSSL_SSL_CLI_C
624 *
625 * Enable the SSL/TLS client code.
626 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000627 * Module: library/ssl_cli.c
628 * Caller:
629 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000630 * Requires: POLARSSL_SSL_TLS_C
631 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000632 * This module is required for SSL/TLS client support.
633 */
Paul Bakker40e46942009-01-03 21:51:57 +0000634#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000635
Paul Bakker089b70d2012-11-07 19:57:39 +0000636/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000637 * \def POLARSSL_SSL_SRV_C
638 *
639 * Enable the SSL/TLS server code.
640 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000641 * Module: library/ssl_srv.c
642 * Caller:
643 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000644 * Requires: POLARSSL_SSL_TLS_C
645 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000646 * This module is required for SSL/TLS server support.
647 */
Paul Bakker40e46942009-01-03 21:51:57 +0000648#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000649
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000650/**
651 * \def POLARSSL_SSL_TLS_C
652 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000653 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000654 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000655 * Module: library/ssl_tls.c
656 * Caller: library/ssl_cli.c
657 * library/ssl_srv.c
658 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000659 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
660 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000661 * This module is required for SSL/TLS.
662 */
Paul Bakker40e46942009-01-03 21:51:57 +0000663#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000664
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000665/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000666 * \def POLARSSL_TIMING_C
667 *
668 * Enable the portable timing interface.
669 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000670 * Module: library/timing.c
671 * Caller: library/havege.c
672 *
673 * This module is used by the HAVEGE random number generator.
674 */
Paul Bakker40e46942009-01-03 21:51:57 +0000675#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000676
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000677/**
678 * \def POLARSSL_VERSION_C
679 *
680 * Enable run-time version information.
681 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000682 * Module: library/version.c
683 *
684 * This module provides run-time version information.
685 */
686#define POLARSSL_VERSION_C
687
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000688/**
689 * \def POLARSSL_X509_PARSE_C
690 *
691 * Enable X.509 certificate parsing.
692 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000693 * Module: library/x509parse.c
694 * Caller: library/ssl_cli.c
695 * library/ssl_srv.c
696 * library/ssl_tls.c
697 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000698 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000699 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000700 * This module is required for X.509 certificate parsing.
701 */
Paul Bakker40e46942009-01-03 21:51:57 +0000702#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000703
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000704/**
705 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000706 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000707 * Enable the XTEA block cipher.
708 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000709 * Module: library/xtea.c
710 * Caller:
711 */
712#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000713/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000714
Paul Bakker5121ce52009-01-03 21:22:43 +0000715#endif /* config.h */