blob: 1327c431fe7193899426a0e3275606e189b68f14 [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 Bakker15566e42011-04-24 21:19:15 +0000142 * \def POLARSSL_GENPRIME
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000143 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000144 * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C
145 *
Paul Bakker15566e42011-04-24 21:19:15 +0000146 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000147 */
Paul Bakker15566e42011-04-24 21:19:15 +0000148#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000149
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000150/**
Paul Bakker335db3f2011-04-25 15:28:35 +0000151 * \def POLARSSL_FS_IO
152 *
153 * Enable functions that use the filesystem.
154 */
155#define POLARSSL_FS_IO
156
157/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000158 * \def POLARSSL_NO_PLATFORM_ENTROPY
159 *
160 * Do not use built-in platform entropy functions.
161 * This is useful if your platform does not support
162 * standards like the /dev/urandom or Windows CryptoAPI.
163 *
164 * Uncomment this macro to disable the built-in platform entropy functions.
165#define POLARSSL_NO_PLATFORM_ENTROPY
166 */
167
168/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000169 * \def POLARSSL_PKCS1_V21
170 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000171 * Requires: POLARSSL_MD_C, POLARSSL_RSA_C
172 *
Paul Bakker9dcc3222011-03-08 14:16:06 +0000173 * Enable support for PKCS#1 v2.1 encoding.
174 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
175 */
176#define POLARSSL_PKCS1_V21
177
178/**
Paul Bakker0216cc12011-03-26 13:40:23 +0000179 * \def POLARSSL_RSA_NO_CRT
180 *
181 * Do not use the Chinese Remainder Theorem for the RSA private operation.
182 *
183 * Uncomment this macro to disable the use of CRT in RSA.
184 *
185#define POLARSSL_RSA_NO_CRT
186 */
Paul Bakker15566e42011-04-24 21:19:15 +0000187
188/**
189 * \def POLARSSL_SELF_TEST
190 *
191 * Enable the checkup functions (*_self_test).
192 */
193#define POLARSSL_SELF_TEST
Paul Bakker5c721f92011-07-27 16:51:09 +0000194
195/**
196 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
197 *
198 * If set, the X509 parser will not break-off when parsing an X509 certificate
199 * and encountering an unknown critical extension.
200 *
201 * Uncomment to prevent an error.
202 *
203#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
204 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000205/* \} name */
206
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000207/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000208 * \name SECTION: PolarSSL modules
209 *
210 * This section enables or disables entire modules in PolarSSL
211 * \{
212 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000213
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000214/**
215 * \def POLARSSL_AES_C
216 *
217 * Enable the AES block cipher.
218 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000219 * Module: library/aes.c
220 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000221 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000222 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000223 *
224 * This module enables the following ciphersuites:
225 * SSL_RSA_AES_128_SHA
226 * SSL_RSA_AES_256_SHA
227 * SSL_EDH_RSA_AES_256_SHA
228 */
Paul Bakker40e46942009-01-03 21:51:57 +0000229#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000230
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000231/**
232 * \def POLARSSL_ARC4_C
233 *
234 * Enable the ARCFOUR stream cipher.
235 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000236 * Module: library/arc4.c
237 * Caller: library/ssl_tls.c
238 *
239 * This module enables the following ciphersuites:
240 * SSL_RSA_RC4_128_MD5
241 * SSL_RSA_RC4_128_SHA
242 */
Paul Bakker40e46942009-01-03 21:51:57 +0000243#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000244
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000245/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000246 * \def POLARSSL_ASN1_PARSE_C
247 *
248 * Enable the generic ASN1 parser.
249 *
250 * Module: library/asn1.c
251 * Caller: library/x509parse.c
252 */
253#define POLARSSL_ASN1_PARSE_C
254
255/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000256 * \def POLARSSL_BASE64_C
257 *
258 * Enable the Base64 module.
259 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000260 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000261 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000262 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000263 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000264 */
Paul Bakker40e46942009-01-03 21:51:57 +0000265#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000266
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000267/**
268 * \def POLARSSL_BIGNUM_C
269 *
270 * Enable the multo-precision integer library.
271 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000272 * Module: library/bignum.c
273 * Caller: library/dhm.c
274 * library/rsa.c
275 * library/ssl_tls.c
276 * library/x509parse.c
277 *
278 * This module is required for RSA and DHM support.
279 */
Paul Bakker40e46942009-01-03 21:51:57 +0000280#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000281
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000282/**
283 * \def POLARSSL_CAMELLIA_C
284 *
285 * Enable the Camellia block cipher.
286 *
Paul Bakker38119b12009-01-10 23:31:23 +0000287 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000288 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000289 *
290 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000291 * SSL_RSA_CAMELLIA_128_SHA
292 * SSL_RSA_CAMELLIA_256_SHA
293 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000294 */
295#define POLARSSL_CAMELLIA_C
296
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000297/**
298 * \def POLARSSL_CERTS_C
299 *
300 * Enable the test certificates.
301 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000302 * Module: library/certs.c
303 * Caller:
304 *
305 * This module is used for testing (ssl_client/server).
306 */
Paul Bakker40e46942009-01-03 21:51:57 +0000307#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000308
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000309/**
310 * \def POLARSSL_CIPHER_C
311 *
312 * Enable the generic cipher layer.
313 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000314 * Module: library/cipher.c
315 * Caller:
316 *
317 * Uncomment to enable generic cipher wrappers.
318 */
319#define POLARSSL_CIPHER_C
320
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000321/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000322 * \def POLARSSL_CTR_DRBG_C
323 *
324 * Enable the CTR_DRBG AES-256-based random generator
325 *
326 * Module: library/ctr_drbg.c
327 * Caller:
328 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000329 * Requires: POLARSSL_AES_C
330 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000331 * This module provides the CTR_DRBG AES-256 random number generator.
332 */
333#define POLARSSL_CTR_DRBG_C
334
335/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000336 * \def POLARSSL_DEBUG_C
337 *
338 * Enable the debug functions.
339 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000340 * Module: library/debug.c
341 * Caller: library/ssl_cli.c
342 * library/ssl_srv.c
343 * library/ssl_tls.c
344 *
345 * This module provides debugging functions.
346 */
Paul Bakker40e46942009-01-03 21:51:57 +0000347#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000348
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000349/**
350 * \def POLARSSL_DES_C
351 *
352 * Enable the DES block cipher.
353 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000354 * Module: library/des.c
355 * Caller: library/ssl_tls.c
356 *
357 * This module enables the following ciphersuites:
358 * SSL_RSA_DES_168_SHA
359 * SSL_EDH_RSA_DES_168_SHA
360 */
Paul Bakker40e46942009-01-03 21:51:57 +0000361#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000362
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000363/**
364 * \def POLARSSL_DHM_C
365 *
366 * Enable the Diffie-Hellman-Merkle key exchange.
367 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000368 * Module: library/dhm.c
369 * Caller: library/ssl_cli.c
370 * library/ssl_srv.c
371 *
372 * This module enables the following ciphersuites:
373 * SSL_EDH_RSA_DES_168_SHA
374 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000375 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000376 */
Paul Bakker40e46942009-01-03 21:51:57 +0000377#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000378
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000379/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000380 * \def POLARSSL_ENTROPY_C
381 *
382 * Enable the platform-specific entropy code.
383 *
384 * Module: library/entropy.c
385 * Caller:
386 *
387 * Requires: POLARSSL_SHA4_C
388 *
389 * This module provides a generic entropy pool
390 */
391#define POLARSSL_ENTROPY_C
392
393/**
Paul Bakker9d781402011-05-09 16:17:09 +0000394 * \def POLARSSL_ERROR_C
395 *
396 * Enable error code to error string conversion.
397 *
398 * Module: library/error.c
399 * Caller:
400 *
401 * This module enables err_strerror().
402 */
403#define POLARSSL_ERROR_C
404
405/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000406 * \def POLARSSL_HAVEGE_C
407 *
408 * Enable the HAVEGE random generator.
409 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000410 * Module: library/havege.c
411 * Caller:
412 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000413 * Requires: POLARSSL_TIMING_C
414 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000415 * This module enables the HAVEGE random number generator.
416 */
Paul Bakker40e46942009-01-03 21:51:57 +0000417#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000418
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000419/**
420 * \def POLARSSL_MD_C
421 *
422 * Enable the generic message digest layer.
423 *
Paul Bakker17373852011-01-06 14:20:01 +0000424 * Module: library/md.c
425 * Caller:
426 *
427 * Uncomment to enable generic message digest wrappers.
428 */
429#define POLARSSL_MD_C
430
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000431/**
432 * \def POLARSSL_MD2_C
433 *
434 * Enable the MD2 hash algorithm
435 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000436 * Module: library/md2.c
437 * Caller: library/x509parse.c
438 *
439 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
440 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000441#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000442 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000443
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000444/**
445 * \def POLARSSL_MD4_C
446 *
447 * Enable the MD4 hash algorithm
448 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000449 * Module: library/md4.c
450 * Caller: library/x509parse.c
451 *
452 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
453 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000454#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000455 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000456
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000457/**
458 * \def POLARSSL_MD5_C
459 *
460 * Enable the MD5 hash algorithm
461 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000462 * Module: library/md5.c
463 * Caller: library/ssl_tls.c
464 * library/x509parse.c
465 *
466 * This module is required for SSL/TLS and X.509.
467 */
Paul Bakker40e46942009-01-03 21:51:57 +0000468#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000469
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000470/**
471 * \def POLARSSL_NET_C
472 *
473 * Enable the TCP/IP networking routines.
474 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000475 * Module: library/net.c
476 * Caller:
477 *
478 * This module provides TCP/IP networking routines.
479 */
Paul Bakker40e46942009-01-03 21:51:57 +0000480#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000481
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000482/**
483 * \def POLARSSL_PADLOCK_C
484 *
485 * Enable VIA Padlock support on x86.
486 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000487 * Module: library/padlock.c
488 * Caller: library/aes.c
489 *
490 * This modules adds support for the VIA PadLock on x86.
491 */
Paul Bakker40e46942009-01-03 21:51:57 +0000492#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000493
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000494/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000495 * \def POLARSSL_PEM_C
496 *
497 * Enable PEM decoding
498 *
499 * Module: library/pem.c
500 * Caller: library/x509parse.c
501 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000502 * Requires: POLARSSL_BASE64_C
503 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000504 * This modules adds support for decoding PEM files.
505 */
506#define POLARSSL_PEM_C
507
508/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000509 * \def POLARSSL_PKCS11_C
510 *
511 * Enable support for PKCS#11 smartcard support.
512 *
513 * Module: library/ssl_srv.c
514 * Caller: library/ssl_cli.c
515 * library/ssl_srv.c
516 *
517 * Requires: POLARSSL_SSL_TLS_C
518 *
519 * This module is required for SSL/TLS PKCS #11 smartcard support.
520 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
521#define POLARSSL_PKCS11_C
522 */
523
524/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000525 * \def POLARSSL_RSA_C
526 *
527 * Enable the RSA public-key cryptosystem.
528 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000529 * Module: library/rsa.c
530 * Caller: library/ssl_cli.c
531 * library/ssl_srv.c
532 * library/ssl_tls.c
533 * library/x509.c
534 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000535 * Requires: POLARSSL_BIGNUM_C
536 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000537 * This module is required for SSL/TLS and MD5-signed certificates.
538 */
Paul Bakker40e46942009-01-03 21:51:57 +0000539#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000540
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000541/**
542 * \def POLARSSL_SHA1_C
543 *
544 * Enable the SHA1 cryptographic hash algorithm.
545 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000546 * Module: library/sha1.c
547 * Caller: library/ssl_cli.c
548 * library/ssl_srv.c
549 * library/ssl_tls.c
550 * library/x509parse.c
551 *
552 * This module is required for SSL/TLS and SHA1-signed certificates.
553 */
Paul Bakker40e46942009-01-03 21:51:57 +0000554#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000555
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000556/**
557 * \def POLARSSL_SHA2_C
558 *
559 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
560 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000561 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000562 * Caller: library/md_wrap.c
563 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000564 *
565 * This module adds support for SHA-224 and SHA-256.
566 */
Paul Bakker40e46942009-01-03 21:51:57 +0000567#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000568
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000569/**
570 * \def POLARSSL_SHA4_C
571 *
572 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
573 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000574 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000575 * Caller: library/md_wrap.c
576 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000577 *
578 * This module adds support for SHA-384 and SHA-512.
579 */
Paul Bakker40e46942009-01-03 21:51:57 +0000580#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000581
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000582/**
583 * \def POLARSSL_SSL_CLI_C
584 *
585 * Enable the SSL/TLS client code.
586 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000587 * Module: library/ssl_cli.c
588 * Caller:
589 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000590 * Requires: POLARSSL_SSL_TLS_C
591 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000592 * This module is required for SSL/TLS client support.
593 */
Paul Bakker40e46942009-01-03 21:51:57 +0000594#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000595
596/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000597 * \def POLARSSL_SSL_SRV_C
598 *
599 * Enable the SSL/TLS server code.
600 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000601 * Module: library/ssl_srv.c
602 * Caller:
603 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000604 * Requires: POLARSSL_SSL_TLS_C
605 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000606 * This module is required for SSL/TLS server support.
607 */
Paul Bakker40e46942009-01-03 21:51:57 +0000608#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000609
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000610/**
611 * \def POLARSSL_SSL_TLS_C
612 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000613 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000614 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000615 * Module: library/ssl_tls.c
616 * Caller: library/ssl_cli.c
617 * library/ssl_srv.c
618 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000619 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
620 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000621 * This module is required for SSL/TLS.
622 */
Paul Bakker40e46942009-01-03 21:51:57 +0000623#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000624
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000625/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000626 * \def POLARSSL_TIMING_C
627 *
628 * Enable the portable timing interface.
629 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000630 * Module: library/timing.c
631 * Caller: library/havege.c
632 *
633 * This module is used by the HAVEGE random number generator.
634 */
Paul Bakker40e46942009-01-03 21:51:57 +0000635#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000636
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000637/**
638 * \def POLARSSL_VERSION_C
639 *
640 * Enable run-time version information.
641 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000642 * Module: library/version.c
643 *
644 * This module provides run-time version information.
645 */
646#define POLARSSL_VERSION_C
647
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000648/**
649 * \def POLARSSL_X509_PARSE_C
650 *
651 * Enable X.509 certificate parsing.
652 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000653 * Module: library/x509parse.c
654 * Caller: library/ssl_cli.c
655 * library/ssl_srv.c
656 * library/ssl_tls.c
657 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000658 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000659 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000660 * This module is required for X.509 certificate parsing.
661 */
Paul Bakker40e46942009-01-03 21:51:57 +0000662#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000663
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000664/**
665 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000666 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000667 * Enable the XTEA block cipher.
668 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000669 * Module: library/xtea.c
670 * Caller:
671 */
672#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000673/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000674
Paul Bakker5121ce52009-01-03 21:22:43 +0000675#endif /* config.h */