blob: bb9e6806de8ad025cc8b89a1ec402dfd334d944f [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 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/**
232 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
233 *
234 * If set, the X509 parser will not break-off when parsing an X509 certificate
235 * and encountering an unknown critical extension.
236 *
237 * Uncomment to prevent an error.
238 *
239#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
240 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000241/* \} name */
242
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000243/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000244 * \name SECTION: PolarSSL modules
245 *
246 * This section enables or disables entire modules in PolarSSL
247 * \{
248 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000249
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000250/**
251 * \def POLARSSL_AES_C
252 *
253 * Enable the AES block cipher.
254 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000255 * Module: library/aes.c
256 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000257 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000258 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000259 *
260 * This module enables the following ciphersuites:
261 * SSL_RSA_AES_128_SHA
262 * SSL_RSA_AES_256_SHA
263 * SSL_EDH_RSA_AES_256_SHA
264 */
Paul Bakker40e46942009-01-03 21:51:57 +0000265#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000266
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000267/**
268 * \def POLARSSL_ARC4_C
269 *
270 * Enable the ARCFOUR stream cipher.
271 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000272 * Module: library/arc4.c
273 * Caller: library/ssl_tls.c
274 *
275 * This module enables the following ciphersuites:
276 * SSL_RSA_RC4_128_MD5
277 * SSL_RSA_RC4_128_SHA
278 */
Paul Bakker40e46942009-01-03 21:51:57 +0000279#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000280
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000281/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000282 * \def POLARSSL_ASN1_PARSE_C
283 *
284 * Enable the generic ASN1 parser.
285 *
286 * Module: library/asn1.c
287 * Caller: library/x509parse.c
288 */
289#define POLARSSL_ASN1_PARSE_C
290
291/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000292 * \def POLARSSL_BASE64_C
293 *
294 * Enable the Base64 module.
295 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000296 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000297 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000298 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000299 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000300 */
Paul Bakker40e46942009-01-03 21:51:57 +0000301#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000302
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000303/**
304 * \def POLARSSL_BIGNUM_C
305 *
306 * Enable the multo-precision integer library.
307 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000308 * Module: library/bignum.c
309 * Caller: library/dhm.c
310 * library/rsa.c
311 * library/ssl_tls.c
312 * library/x509parse.c
313 *
314 * This module is required for RSA and DHM support.
315 */
Paul Bakker40e46942009-01-03 21:51:57 +0000316#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000317
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000318/**
319 * \def POLARSSL_CAMELLIA_C
320 *
321 * Enable the Camellia block cipher.
322 *
Paul Bakker38119b12009-01-10 23:31:23 +0000323 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000324 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000325 *
326 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000327 * SSL_RSA_CAMELLIA_128_SHA
328 * SSL_RSA_CAMELLIA_256_SHA
329 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000330 */
331#define POLARSSL_CAMELLIA_C
332
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000333/**
334 * \def POLARSSL_CERTS_C
335 *
336 * Enable the test certificates.
337 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000338 * Module: library/certs.c
339 * Caller:
340 *
341 * This module is used for testing (ssl_client/server).
342 */
Paul Bakker40e46942009-01-03 21:51:57 +0000343#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000344
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000345/**
346 * \def POLARSSL_CIPHER_C
347 *
348 * Enable the generic cipher layer.
349 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000350 * Module: library/cipher.c
351 * Caller:
352 *
353 * Uncomment to enable generic cipher wrappers.
354 */
355#define POLARSSL_CIPHER_C
356
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000357/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000358 * \def POLARSSL_CTR_DRBG_C
359 *
360 * Enable the CTR_DRBG AES-256-based random generator
361 *
362 * Module: library/ctr_drbg.c
363 * Caller:
364 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000365 * Requires: POLARSSL_AES_C
366 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000367 * This module provides the CTR_DRBG AES-256 random number generator.
368 */
369#define POLARSSL_CTR_DRBG_C
370
371/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000372 * \def POLARSSL_DEBUG_C
373 *
374 * Enable the debug functions.
375 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000376 * Module: library/debug.c
377 * Caller: library/ssl_cli.c
378 * library/ssl_srv.c
379 * library/ssl_tls.c
380 *
381 * This module provides debugging functions.
382 */
Paul Bakker40e46942009-01-03 21:51:57 +0000383#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000384
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000385/**
386 * \def POLARSSL_DES_C
387 *
388 * Enable the DES block cipher.
389 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000390 * Module: library/des.c
391 * Caller: library/ssl_tls.c
392 *
393 * This module enables the following ciphersuites:
394 * SSL_RSA_DES_168_SHA
395 * SSL_EDH_RSA_DES_168_SHA
396 */
Paul Bakker40e46942009-01-03 21:51:57 +0000397#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000398
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000399/**
400 * \def POLARSSL_DHM_C
401 *
402 * Enable the Diffie-Hellman-Merkle key exchange.
403 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000404 * Module: library/dhm.c
405 * Caller: library/ssl_cli.c
406 * library/ssl_srv.c
407 *
408 * This module enables the following ciphersuites:
409 * SSL_EDH_RSA_DES_168_SHA
410 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000411 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000412 */
Paul Bakker40e46942009-01-03 21:51:57 +0000413#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000414
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000415/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000416 * \def POLARSSL_ENTROPY_C
417 *
418 * Enable the platform-specific entropy code.
419 *
420 * Module: library/entropy.c
421 * Caller:
422 *
423 * Requires: POLARSSL_SHA4_C
424 *
425 * This module provides a generic entropy pool
426 */
427#define POLARSSL_ENTROPY_C
428
429/**
Paul Bakker9d781402011-05-09 16:17:09 +0000430 * \def POLARSSL_ERROR_C
431 *
432 * Enable error code to error string conversion.
433 *
434 * Module: library/error.c
435 * Caller:
436 *
437 * This module enables err_strerror().
438 */
439#define POLARSSL_ERROR_C
440
441/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000442 * \def POLARSSL_HAVEGE_C
443 *
444 * Enable the HAVEGE random generator.
445 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000446 * Module: library/havege.c
447 * Caller:
448 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000449 * Requires: POLARSSL_TIMING_C
450 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000451 * This module enables the HAVEGE random number generator.
452 */
Paul Bakker40e46942009-01-03 21:51:57 +0000453#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000454
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000455/**
456 * \def POLARSSL_MD_C
457 *
458 * Enable the generic message digest layer.
459 *
Paul Bakker17373852011-01-06 14:20:01 +0000460 * Module: library/md.c
461 * Caller:
462 *
463 * Uncomment to enable generic message digest wrappers.
464 */
465#define POLARSSL_MD_C
466
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000467/**
468 * \def POLARSSL_MD2_C
469 *
470 * Enable the MD2 hash algorithm
471 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000472 * Module: library/md2.c
473 * Caller: library/x509parse.c
474 *
475 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
476 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000477#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000478 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000479
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000480/**
481 * \def POLARSSL_MD4_C
482 *
483 * Enable the MD4 hash algorithm
484 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000485 * Module: library/md4.c
486 * Caller: library/x509parse.c
487 *
488 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
489 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000490#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000491 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000492
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000493/**
494 * \def POLARSSL_MD5_C
495 *
496 * Enable the MD5 hash algorithm
497 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000498 * Module: library/md5.c
499 * Caller: library/ssl_tls.c
500 * library/x509parse.c
501 *
502 * This module is required for SSL/TLS and X.509.
503 */
Paul Bakker40e46942009-01-03 21:51:57 +0000504#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000505
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000506/**
507 * \def POLARSSL_NET_C
508 *
509 * Enable the TCP/IP networking routines.
510 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000511 * Module: library/net.c
512 * Caller:
513 *
514 * This module provides TCP/IP networking routines.
515 */
Paul Bakker40e46942009-01-03 21:51:57 +0000516#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000517
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000518/**
519 * \def POLARSSL_PADLOCK_C
520 *
521 * Enable VIA Padlock support on x86.
522 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000523 * Module: library/padlock.c
524 * Caller: library/aes.c
525 *
526 * This modules adds support for the VIA PadLock on x86.
527 */
Paul Bakker40e46942009-01-03 21:51:57 +0000528#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000529
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000530/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000531 * \def POLARSSL_PEM_C
532 *
533 * Enable PEM decoding
534 *
535 * Module: library/pem.c
536 * Caller: library/x509parse.c
537 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000538 * Requires: POLARSSL_BASE64_C
539 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000540 * This modules adds support for decoding PEM files.
541 */
542#define POLARSSL_PEM_C
543
544/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000545 * \def POLARSSL_PKCS11_C
546 *
547 * Enable support for PKCS#11 smartcard support.
548 *
549 * Module: library/ssl_srv.c
550 * Caller: library/ssl_cli.c
551 * library/ssl_srv.c
552 *
553 * Requires: POLARSSL_SSL_TLS_C
554 *
555 * This module is required for SSL/TLS PKCS #11 smartcard support.
556 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
557#define POLARSSL_PKCS11_C
558 */
559
560/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000561 * \def POLARSSL_RSA_C
562 *
563 * Enable the RSA public-key cryptosystem.
564 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000565 * Module: library/rsa.c
566 * Caller: library/ssl_cli.c
567 * library/ssl_srv.c
568 * library/ssl_tls.c
569 * library/x509.c
570 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000571 * Requires: POLARSSL_BIGNUM_C
572 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000573 * This module is required for SSL/TLS and MD5-signed certificates.
574 */
Paul Bakker40e46942009-01-03 21:51:57 +0000575#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000576
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000577/**
578 * \def POLARSSL_SHA1_C
579 *
580 * Enable the SHA1 cryptographic hash algorithm.
581 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000582 * Module: library/sha1.c
583 * Caller: library/ssl_cli.c
584 * library/ssl_srv.c
585 * library/ssl_tls.c
586 * library/x509parse.c
587 *
588 * This module is required for SSL/TLS and SHA1-signed certificates.
589 */
Paul Bakker40e46942009-01-03 21:51:57 +0000590#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000591
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000592/**
593 * \def POLARSSL_SHA2_C
594 *
595 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
596 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000597 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000598 * Caller: library/md_wrap.c
599 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000600 *
601 * This module adds support for SHA-224 and SHA-256.
602 */
Paul Bakker40e46942009-01-03 21:51:57 +0000603#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000604
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000605/**
606 * \def POLARSSL_SHA4_C
607 *
608 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
609 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000610 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000611 * Caller: library/md_wrap.c
612 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000613 *
614 * This module adds support for SHA-384 and SHA-512.
615 */
Paul Bakker40e46942009-01-03 21:51:57 +0000616#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000617
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000618/**
619 * \def POLARSSL_SSL_CLI_C
620 *
621 * Enable the SSL/TLS client code.
622 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000623 * Module: library/ssl_cli.c
624 * Caller:
625 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000626 * Requires: POLARSSL_SSL_TLS_C
627 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000628 * This module is required for SSL/TLS client support.
629 */
Paul Bakker40e46942009-01-03 21:51:57 +0000630#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000631
632/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000633 * \def POLARSSL_SSL_SRV_C
634 *
635 * Enable the SSL/TLS server code.
636 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000637 * Module: library/ssl_srv.c
638 * Caller:
639 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000640 * Requires: POLARSSL_SSL_TLS_C
641 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000642 * This module is required for SSL/TLS server support.
643 */
Paul Bakker40e46942009-01-03 21:51:57 +0000644#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000645
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000646/**
647 * \def POLARSSL_SSL_TLS_C
648 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000649 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000650 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000651 * Module: library/ssl_tls.c
652 * Caller: library/ssl_cli.c
653 * library/ssl_srv.c
654 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000655 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
656 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000657 * This module is required for SSL/TLS.
658 */
Paul Bakker40e46942009-01-03 21:51:57 +0000659#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000660
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000661/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000662 * \def POLARSSL_TIMING_C
663 *
664 * Enable the portable timing interface.
665 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000666 * Module: library/timing.c
667 * Caller: library/havege.c
668 *
669 * This module is used by the HAVEGE random number generator.
670 */
Paul Bakker40e46942009-01-03 21:51:57 +0000671#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000672
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000673/**
674 * \def POLARSSL_VERSION_C
675 *
676 * Enable run-time version information.
677 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000678 * Module: library/version.c
679 *
680 * This module provides run-time version information.
681 */
682#define POLARSSL_VERSION_C
683
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000684/**
685 * \def POLARSSL_X509_PARSE_C
686 *
687 * Enable X.509 certificate parsing.
688 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000689 * Module: library/x509parse.c
690 * Caller: library/ssl_cli.c
691 * library/ssl_srv.c
692 * library/ssl_tls.c
693 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000694 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000695 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000696 * This module is required for X.509 certificate parsing.
697 */
Paul Bakker40e46942009-01-03 21:51:57 +0000698#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000699
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000700/**
701 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000702 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000703 * Enable the XTEA block cipher.
704 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000705 * Module: library/xtea.c
706 * Caller:
707 */
708#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000709/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000710
Paul Bakker5121ce52009-01-03 21:22:43 +0000711#endif /* config.h */