blob: 110e3b4b5acd42cfb02d4909cf2f3efff1cddd24 [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/**
220 * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
221 *
222 * If set, the X509 parser will not break-off when parsing an X509 certificate
223 * and encountering an unknown critical extension.
224 *
225 * Uncomment to prevent an error.
226 *
227#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
228 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000229/* \} name */
230
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000231/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000232 * \name SECTION: PolarSSL modules
233 *
234 * This section enables or disables entire modules in PolarSSL
235 * \{
236 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000237
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000238/**
239 * \def POLARSSL_AES_C
240 *
241 * Enable the AES block cipher.
242 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000243 * Module: library/aes.c
244 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000245 * library/pem.c
Paul Bakker6083fd22011-12-03 21:45:14 +0000246 * library/ctr_drbg.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000247 *
248 * This module enables the following ciphersuites:
249 * SSL_RSA_AES_128_SHA
250 * SSL_RSA_AES_256_SHA
251 * SSL_EDH_RSA_AES_256_SHA
252 */
Paul Bakker40e46942009-01-03 21:51:57 +0000253#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000254
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000255/**
256 * \def POLARSSL_ARC4_C
257 *
258 * Enable the ARCFOUR stream cipher.
259 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000260 * Module: library/arc4.c
261 * Caller: library/ssl_tls.c
262 *
263 * This module enables the following ciphersuites:
264 * SSL_RSA_RC4_128_MD5
265 * SSL_RSA_RC4_128_SHA
266 */
Paul Bakker40e46942009-01-03 21:51:57 +0000267#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000268
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000269/**
Paul Bakkerefc30292011-11-10 14:43:23 +0000270 * \def POLARSSL_ASN1_PARSE_C
271 *
272 * Enable the generic ASN1 parser.
273 *
274 * Module: library/asn1.c
275 * Caller: library/x509parse.c
276 */
277#define POLARSSL_ASN1_PARSE_C
278
279/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000280 * \def POLARSSL_BASE64_C
281 *
282 * Enable the Base64 module.
283 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000284 * Module: library/base64.c
Paul Bakker5690efc2011-05-26 13:16:06 +0000285 * Caller: library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000286 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000287 * This module is required for PEM support (required by X.509).
Paul Bakker5121ce52009-01-03 21:22:43 +0000288 */
Paul Bakker40e46942009-01-03 21:51:57 +0000289#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000290
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000291/**
292 * \def POLARSSL_BIGNUM_C
293 *
Paul Bakker5aef1e12012-11-07 20:05:38 +0000294 * Enable the multi-precision integer library.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000295 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000296 * Module: library/bignum.c
297 * Caller: library/dhm.c
298 * library/rsa.c
299 * library/ssl_tls.c
300 * library/x509parse.c
301 *
302 * This module is required for RSA and DHM support.
303 */
Paul Bakker40e46942009-01-03 21:51:57 +0000304#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000305
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000306/**
307 * \def POLARSSL_CAMELLIA_C
308 *
309 * Enable the Camellia block cipher.
310 *
Paul Bakker38119b12009-01-10 23:31:23 +0000311 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000312 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000313 *
314 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000315 * SSL_RSA_CAMELLIA_128_SHA
316 * SSL_RSA_CAMELLIA_256_SHA
317 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000318 */
319#define POLARSSL_CAMELLIA_C
320
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000321/**
322 * \def POLARSSL_CERTS_C
323 *
324 * Enable the test certificates.
325 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000326 * Module: library/certs.c
327 * Caller:
328 *
329 * This module is used for testing (ssl_client/server).
330 */
Paul Bakker40e46942009-01-03 21:51:57 +0000331#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000332
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000333/**
334 * \def POLARSSL_CIPHER_C
335 *
336 * Enable the generic cipher layer.
337 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000338 * Module: library/cipher.c
339 * Caller:
340 *
341 * Uncomment to enable generic cipher wrappers.
342 */
343#define POLARSSL_CIPHER_C
344
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000345/**
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000346 * \def POLARSSL_CTR_DRBG_C
347 *
348 * Enable the CTR_DRBG AES-256-based random generator
349 *
350 * Module: library/ctr_drbg.c
351 * Caller:
352 *
Paul Bakker6083fd22011-12-03 21:45:14 +0000353 * Requires: POLARSSL_AES_C
354 *
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000355 * This module provides the CTR_DRBG AES-256 random number generator.
356 */
357#define POLARSSL_CTR_DRBG_C
358
359/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000360 * \def POLARSSL_DEBUG_C
361 *
362 * Enable the debug functions.
363 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000364 * Module: library/debug.c
365 * Caller: library/ssl_cli.c
366 * library/ssl_srv.c
367 * library/ssl_tls.c
368 *
369 * This module provides debugging functions.
370 */
Paul Bakker40e46942009-01-03 21:51:57 +0000371#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000372
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000373/**
374 * \def POLARSSL_DES_C
375 *
376 * Enable the DES block cipher.
377 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000378 * Module: library/des.c
379 * Caller: library/ssl_tls.c
380 *
381 * This module enables the following ciphersuites:
382 * SSL_RSA_DES_168_SHA
383 * SSL_EDH_RSA_DES_168_SHA
384 */
Paul Bakker40e46942009-01-03 21:51:57 +0000385#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000386
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000387/**
388 * \def POLARSSL_DHM_C
389 *
390 * Enable the Diffie-Hellman-Merkle key exchange.
391 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000392 * Module: library/dhm.c
393 * Caller: library/ssl_cli.c
394 * library/ssl_srv.c
395 *
396 * This module enables the following ciphersuites:
397 * SSL_EDH_RSA_DES_168_SHA
398 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000399 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000400 */
Paul Bakker40e46942009-01-03 21:51:57 +0000401#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000402
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000403/**
Paul Bakker6083fd22011-12-03 21:45:14 +0000404 * \def POLARSSL_ENTROPY_C
405 *
406 * Enable the platform-specific entropy code.
407 *
408 * Module: library/entropy.c
409 * Caller:
410 *
411 * Requires: POLARSSL_SHA4_C
412 *
413 * This module provides a generic entropy pool
414 */
415#define POLARSSL_ENTROPY_C
416
417/**
Paul Bakker9d781402011-05-09 16:17:09 +0000418 * \def POLARSSL_ERROR_C
419 *
420 * Enable error code to error string conversion.
421 *
422 * Module: library/error.c
423 * Caller:
424 *
425 * This module enables err_strerror().
426 */
427#define POLARSSL_ERROR_C
428
429/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000430 * \def POLARSSL_HAVEGE_C
431 *
432 * Enable the HAVEGE random generator.
433 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000434 * Module: library/havege.c
435 * Caller:
436 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000437 * Requires: POLARSSL_TIMING_C
438 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000439 * This module enables the HAVEGE random number generator.
440 */
Paul Bakker40e46942009-01-03 21:51:57 +0000441#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000442
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000443/**
444 * \def POLARSSL_MD_C
445 *
446 * Enable the generic message digest layer.
447 *
Paul Bakker17373852011-01-06 14:20:01 +0000448 * Module: library/md.c
449 * Caller:
450 *
451 * Uncomment to enable generic message digest wrappers.
452 */
453#define POLARSSL_MD_C
454
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000455/**
456 * \def POLARSSL_MD2_C
457 *
458 * Enable the MD2 hash algorithm
459 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000460 * Module: library/md2.c
461 * Caller: library/x509parse.c
462 *
463 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
464 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000465#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000466 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000467
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000468/**
469 * \def POLARSSL_MD4_C
470 *
471 * Enable the MD4 hash algorithm
472 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000473 * Module: library/md4.c
474 * Caller: library/x509parse.c
475 *
476 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
477 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000478#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000479 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000480
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000481/**
482 * \def POLARSSL_MD5_C
483 *
484 * Enable the MD5 hash algorithm
485 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000486 * Module: library/md5.c
487 * Caller: library/ssl_tls.c
488 * library/x509parse.c
489 *
490 * This module is required for SSL/TLS and X.509.
491 */
Paul Bakker40e46942009-01-03 21:51:57 +0000492#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000493
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000494/**
495 * \def POLARSSL_NET_C
496 *
497 * Enable the TCP/IP networking routines.
498 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000499 * Module: library/net.c
500 * Caller:
501 *
502 * This module provides TCP/IP networking routines.
503 */
Paul Bakker40e46942009-01-03 21:51:57 +0000504#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000505
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000506/**
507 * \def POLARSSL_PADLOCK_C
508 *
509 * Enable VIA Padlock support on x86.
510 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000511 * Module: library/padlock.c
512 * Caller: library/aes.c
513 *
514 * This modules adds support for the VIA PadLock on x86.
515 */
Paul Bakker40e46942009-01-03 21:51:57 +0000516#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000517
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000518/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000519 * \def POLARSSL_PEM_C
520 *
521 * Enable PEM decoding
522 *
523 * Module: library/pem.c
524 * Caller: library/x509parse.c
525 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000526 * Requires: POLARSSL_BASE64_C
527 *
Paul Bakker96743fc2011-02-12 14:30:57 +0000528 * This modules adds support for decoding PEM files.
529 */
530#define POLARSSL_PEM_C
531
532/**
Paul Bakker5690efc2011-05-26 13:16:06 +0000533 * \def POLARSSL_PKCS11_C
534 *
535 * Enable support for PKCS#11 smartcard support.
536 *
537 * Module: library/ssl_srv.c
538 * Caller: library/ssl_cli.c
539 * library/ssl_srv.c
540 *
541 * Requires: POLARSSL_SSL_TLS_C
542 *
543 * This module is required for SSL/TLS PKCS #11 smartcard support.
544 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
545#define POLARSSL_PKCS11_C
546 */
547
548/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000549 * \def POLARSSL_RSA_C
550 *
551 * Enable the RSA public-key cryptosystem.
552 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000553 * Module: library/rsa.c
554 * Caller: library/ssl_cli.c
555 * library/ssl_srv.c
556 * library/ssl_tls.c
557 * library/x509.c
558 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000559 * Requires: POLARSSL_BIGNUM_C
560 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000561 * This module is required for SSL/TLS and MD5-signed certificates.
562 */
Paul Bakker40e46942009-01-03 21:51:57 +0000563#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000564
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000565/**
566 * \def POLARSSL_SHA1_C
567 *
568 * Enable the SHA1 cryptographic hash algorithm.
569 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000570 * Module: library/sha1.c
571 * Caller: library/ssl_cli.c
572 * library/ssl_srv.c
573 * library/ssl_tls.c
574 * library/x509parse.c
575 *
576 * This module is required for SSL/TLS and SHA1-signed certificates.
577 */
Paul Bakker40e46942009-01-03 21:51:57 +0000578#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000579
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000580/**
581 * \def POLARSSL_SHA2_C
582 *
583 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
584 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000585 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000586 * Caller: library/md_wrap.c
587 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000588 *
589 * This module adds support for SHA-224 and SHA-256.
590 */
Paul Bakker40e46942009-01-03 21:51:57 +0000591#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000592
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000593/**
594 * \def POLARSSL_SHA4_C
595 *
596 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
597 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000598 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000599 * Caller: library/md_wrap.c
600 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000601 *
602 * This module adds support for SHA-384 and SHA-512.
603 */
Paul Bakker40e46942009-01-03 21:51:57 +0000604#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000605
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000606/**
607 * \def POLARSSL_SSL_CLI_C
608 *
609 * Enable the SSL/TLS client code.
610 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000611 * Module: library/ssl_cli.c
612 * Caller:
613 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000614 * Requires: POLARSSL_SSL_TLS_C
615 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000616 * This module is required for SSL/TLS client support.
617 */
Paul Bakker40e46942009-01-03 21:51:57 +0000618#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000619
Paul Bakker089b70d2012-11-07 19:57:39 +0000620/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000621 * \def POLARSSL_SSL_SRV_C
622 *
623 * Enable the SSL/TLS server code.
624 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000625 * Module: library/ssl_srv.c
626 * Caller:
627 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000628 * Requires: POLARSSL_SSL_TLS_C
629 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000630 * This module is required for SSL/TLS server support.
631 */
Paul Bakker40e46942009-01-03 21:51:57 +0000632#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000633
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000634/**
635 * \def POLARSSL_SSL_TLS_C
636 *
Paul Bakkere29ab062011-05-18 13:26:54 +0000637 * Enable the generic SSL/TLS code.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000638 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000639 * Module: library/ssl_tls.c
640 * Caller: library/ssl_cli.c
641 * library/ssl_srv.c
642 *
Paul Bakker5690efc2011-05-26 13:16:06 +0000643 * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C
644 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000645 * This module is required for SSL/TLS.
646 */
Paul Bakker40e46942009-01-03 21:51:57 +0000647#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000648
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000649/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000650 * \def POLARSSL_TIMING_C
651 *
652 * Enable the portable timing interface.
653 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000654 * Module: library/timing.c
655 * Caller: library/havege.c
656 *
657 * This module is used by the HAVEGE random number generator.
658 */
Paul Bakker40e46942009-01-03 21:51:57 +0000659#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000660
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000661/**
662 * \def POLARSSL_VERSION_C
663 *
664 * Enable run-time version information.
665 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000666 * Module: library/version.c
667 *
668 * This module provides run-time version information.
669 */
670#define POLARSSL_VERSION_C
671
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000672/**
673 * \def POLARSSL_X509_PARSE_C
674 *
675 * Enable X.509 certificate parsing.
676 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000677 * Module: library/x509parse.c
678 * Caller: library/ssl_cli.c
679 * library/ssl_srv.c
680 * library/ssl_tls.c
681 *
Paul Bakkerefc30292011-11-10 14:43:23 +0000682 * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C
Paul Bakker5690efc2011-05-26 13:16:06 +0000683 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000684 * This module is required for X.509 certificate parsing.
685 */
Paul Bakker40e46942009-01-03 21:51:57 +0000686#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000687
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000688/**
689 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000690 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000691 * Enable the XTEA block cipher.
692 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000693 * Module: library/xtea.c
694 * Caller:
695 */
696#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000697/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000698
Paul Bakker5121ce52009-01-03 21:22:43 +0000699#endif /* config.h */