blob: 1cf5b500cd25b940e4a0b29734d5508350b84bd3 [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 Bakker84f12b72010-07-18 10:13:04 +00006 * Copyright (C) 2006-2010, 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
34#ifndef _CRT_SECURE_NO_DEPRECATE
35#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/**
109 * \def POLARSSL_DEBUG_MSG
110 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000111 * Enable all SSL/TLS debugging messages.
112 */
Paul Bakker40e46942009-01-03 21:51:57 +0000113#define POLARSSL_DEBUG_MSG
Paul Bakker5121ce52009-01-03 21:22:43 +0000114
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000115/**
116 * \def POLARSSL_SELF_TEST
117 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000118 * Enable the checkup functions (*_self_test).
119 */
Paul Bakker40e46942009-01-03 21:51:57 +0000120#define POLARSSL_SELF_TEST
Paul Bakker5121ce52009-01-03 21:22:43 +0000121
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000122/**
123 * \def POLARSSL_GENPRIME
124 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000125 * Enable the prime-number generation code.
126 */
Paul Bakker40e46942009-01-03 21:51:57 +0000127#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000128
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000129/**
130 * \def POLARSSL_AES_ROM_TABLES
131 *
132 * Store the AES tables in ROM.
133 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000134 * Uncomment this macro to store the AES tables in ROM.
135 *
Paul Bakker40e46942009-01-03 21:51:57 +0000136#define POLARSSL_AES_ROM_TABLES
Paul Bakker5121ce52009-01-03 21:22:43 +0000137 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000138/* \} name */
139
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000140/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000141 * \name SECTION: PolarSSL modules
142 *
143 * This section enables or disables entire modules in PolarSSL
144 * \{
145 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000146
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000147/**
148 * \def POLARSSL_AES_C
149 *
150 * Enable the AES block cipher.
151 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000152 * Module: library/aes.c
153 * Caller: library/ssl_tls.c
154 *
155 * This module enables the following ciphersuites:
156 * SSL_RSA_AES_128_SHA
157 * SSL_RSA_AES_256_SHA
158 * SSL_EDH_RSA_AES_256_SHA
159 */
Paul Bakker40e46942009-01-03 21:51:57 +0000160#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000161
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000162/**
163 * \def POLARSSL_ARC4_C
164 *
165 * Enable the ARCFOUR stream cipher.
166 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000167 * Module: library/arc4.c
168 * Caller: library/ssl_tls.c
169 *
170 * This module enables the following ciphersuites:
171 * SSL_RSA_RC4_128_MD5
172 * SSL_RSA_RC4_128_SHA
173 */
Paul Bakker40e46942009-01-03 21:51:57 +0000174#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000175
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000176/**
177 * \def POLARSSL_BASE64_C
178 *
179 * Enable the Base64 module.
180 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000181 * Module: library/base64.c
182 * Caller: library/x509parse.c
183 *
184 * This module is required for X.509 support.
185 */
Paul Bakker40e46942009-01-03 21:51:57 +0000186#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000187
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000188/**
189 * \def POLARSSL_BIGNUM_C
190 *
191 * Enable the multo-precision integer library.
192 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000193 * Module: library/bignum.c
194 * Caller: library/dhm.c
195 * library/rsa.c
196 * library/ssl_tls.c
197 * library/x509parse.c
198 *
199 * This module is required for RSA and DHM support.
200 */
Paul Bakker40e46942009-01-03 21:51:57 +0000201#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000202
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000203/**
204 * \def POLARSSL_CAMELLIA_C
205 *
206 * Enable the Camellia block cipher.
207 *
Paul Bakker38119b12009-01-10 23:31:23 +0000208 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000209 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000210 *
211 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000212 * SSL_RSA_CAMELLIA_128_SHA
213 * SSL_RSA_CAMELLIA_256_SHA
214 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000215 */
216#define POLARSSL_CAMELLIA_C
217
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000218/**
219 * \def POLARSSL_CERTS_C
220 *
221 * Enable the test certificates.
222 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000223 * Module: library/certs.c
224 * Caller:
225 *
226 * This module is used for testing (ssl_client/server).
227 */
Paul Bakker40e46942009-01-03 21:51:57 +0000228#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000229
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000230/**
231 * \def POLARSSL_CIPHER_C
232 *
233 * Enable the generic cipher layer.
234 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000235 * Module: library/cipher.c
236 * Caller:
237 *
238 * Uncomment to enable generic cipher wrappers.
239 */
240#define POLARSSL_CIPHER_C
241
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000242/**
243 * \def POLARSSL_DEBUG_C
244 *
245 * Enable the debug functions.
246 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000247 * Module: library/debug.c
248 * Caller: library/ssl_cli.c
249 * library/ssl_srv.c
250 * library/ssl_tls.c
251 *
252 * This module provides debugging functions.
253 */
Paul Bakker40e46942009-01-03 21:51:57 +0000254#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000255
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000256/**
257 * \def POLARSSL_DES_C
258 *
259 * Enable the DES block cipher.
260 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000261 * Module: library/des.c
262 * Caller: library/ssl_tls.c
263 *
264 * This module enables the following ciphersuites:
265 * SSL_RSA_DES_168_SHA
266 * SSL_EDH_RSA_DES_168_SHA
267 */
Paul Bakker40e46942009-01-03 21:51:57 +0000268#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000269
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000270/**
271 * \def POLARSSL_DHM_C
272 *
273 * Enable the Diffie-Hellman-Merkle key exchange.
274 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000275 * Module: library/dhm.c
276 * Caller: library/ssl_cli.c
277 * library/ssl_srv.c
278 *
279 * This module enables the following ciphersuites:
280 * SSL_EDH_RSA_DES_168_SHA
281 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000282 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000283 */
Paul Bakker40e46942009-01-03 21:51:57 +0000284#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000285
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000286/**
287 * \def POLARSSL_HAVEGE_C
288 *
289 * Enable the HAVEGE random generator.
290 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000291 * Module: library/havege.c
292 * Caller:
293 *
294 * This module enables the HAVEGE random number generator.
295 */
Paul Bakker40e46942009-01-03 21:51:57 +0000296#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000297
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000298/**
299 * \def POLARSSL_MD_C
300 *
301 * Enable the generic message digest layer.
302 *
Paul Bakker17373852011-01-06 14:20:01 +0000303 * Module: library/md.c
304 * Caller:
305 *
306 * Uncomment to enable generic message digest wrappers.
307 */
308#define POLARSSL_MD_C
309
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000310/**
311 * \def POLARSSL_MD2_C
312 *
313 * Enable the MD2 hash algorithm
314 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000315 * Module: library/md2.c
316 * Caller: library/x509parse.c
317 *
318 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
319 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000320#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000321 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000322
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000323/**
324 * \def POLARSSL_MD4_C
325 *
326 * Enable the MD4 hash algorithm
327 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000328 * Module: library/md4.c
329 * Caller: library/x509parse.c
330 *
331 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
332 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000333#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000334 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000335
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000336/**
337 * \def POLARSSL_MD5_C
338 *
339 * Enable the MD5 hash algorithm
340 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000341 * Module: library/md5.c
342 * Caller: library/ssl_tls.c
343 * library/x509parse.c
344 *
345 * This module is required for SSL/TLS and X.509.
346 */
Paul Bakker40e46942009-01-03 21:51:57 +0000347#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000348
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000349/**
350 * \def POLARSSL_NET_C
351 *
352 * Enable the TCP/IP networking routines.
353 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000354 * Module: library/net.c
355 * Caller:
356 *
357 * This module provides TCP/IP networking routines.
358 */
Paul Bakker40e46942009-01-03 21:51:57 +0000359#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000360
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000361/**
362 * \def POLARSSL_PADLOCK_C
363 *
364 * Enable VIA Padlock support on x86.
365 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000366 * Module: library/padlock.c
367 * Caller: library/aes.c
368 *
369 * This modules adds support for the VIA PadLock on x86.
370 */
Paul Bakker40e46942009-01-03 21:51:57 +0000371#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000372
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000373/**
374 * \def POLARSSL_RSA_C
375 *
376 * Enable the RSA public-key cryptosystem.
377 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000378 * Module: library/rsa.c
379 * Caller: library/ssl_cli.c
380 * library/ssl_srv.c
381 * library/ssl_tls.c
382 * library/x509.c
383 *
384 * This module is required for SSL/TLS and MD5-signed certificates.
385 */
Paul Bakker40e46942009-01-03 21:51:57 +0000386#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000387
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000388/**
389 * \def POLARSSL_SHA1_C
390 *
391 * Enable the SHA1 cryptographic hash algorithm.
392 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000393 * Module: library/sha1.c
394 * Caller: library/ssl_cli.c
395 * library/ssl_srv.c
396 * library/ssl_tls.c
397 * library/x509parse.c
398 *
399 * This module is required for SSL/TLS and SHA1-signed certificates.
400 */
Paul Bakker40e46942009-01-03 21:51:57 +0000401#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000402
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000403/**
404 * \def POLARSSL_SHA2_C
405 *
406 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
407 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000408 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000409 * Caller: library/md_wrap.c
410 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000411 *
412 * This module adds support for SHA-224 and SHA-256.
413 */
Paul Bakker40e46942009-01-03 21:51:57 +0000414#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000415
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000416/**
417 * \def POLARSSL_SHA4_C
418 *
419 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
420 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000421 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000422 * Caller: library/md_wrap.c
423 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000424 *
425 * This module adds support for SHA-384 and SHA-512.
426 */
Paul Bakker40e46942009-01-03 21:51:57 +0000427#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000428
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000429/**
430 * \def POLARSSL_SSL_CLI_C
431 *
432 * Enable the SSL/TLS client code.
433 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000434 * Module: library/ssl_cli.c
435 * Caller:
436 *
437 * This module is required for SSL/TLS client support.
438 */
Paul Bakker40e46942009-01-03 21:51:57 +0000439#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000440
441/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000442 * \def POLARSSL_SSL_SRV_C
443 *
444 * Enable the SSL/TLS server code.
445 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000446 * Module: library/ssl_srv.c
447 * Caller:
448 *
449 * This module is required for SSL/TLS server support.
450 */
Paul Bakker40e46942009-01-03 21:51:57 +0000451#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000452
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000453/**
454 * \def POLARSSL_SSL_TLS_C
455 *
456 * Enable the generic SSL/RLS code.
457 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000458 * Module: library/ssl_tls.c
459 * Caller: library/ssl_cli.c
460 * library/ssl_srv.c
461 *
462 * This module is required for SSL/TLS.
463 */
Paul Bakker40e46942009-01-03 21:51:57 +0000464#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000465
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000466/**
467 * \def POLARSSL_PKCS11_C
468 *
469 * Enable support for PKCS#11 smartcard support.
470 *
Paul Bakker43b7e352011-01-18 15:27:19 +0000471 * Module: library/ssl_srv.c
472 * Caller: library/ssl_cli.c
473 * library/ssl_srv.c
474 *
475 * This module is required for SSL/TLS PKCS #11 smartcard support.
476 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
Paul Bakker43b7e352011-01-18 15:27:19 +0000477#define POLARSSL_PKCS11_C
Paul Bakkerf917e422011-01-18 16:15:25 +0000478 */
Paul Bakker43b7e352011-01-18 15:27:19 +0000479
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000480/**
481 * \def POLARSSL_TIMING_C
482 *
483 * Enable the portable timing interface.
484 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000485 * Module: library/timing.c
486 * Caller: library/havege.c
487 *
488 * This module is used by the HAVEGE random number generator.
489 */
Paul Bakker40e46942009-01-03 21:51:57 +0000490#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000491
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000492/**
493 * \def POLARSSL_VERSION_C
494 *
495 * Enable run-time version information.
496 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000497 * Module: library/version.c
498 *
499 * This module provides run-time version information.
500 */
501#define POLARSSL_VERSION_C
502
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000503/**
504 * \def POLARSSL_X509_PARSE_C
505 *
506 * Enable X.509 certificate parsing.
507 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000508 * Module: library/x509parse.c
509 * Caller: library/ssl_cli.c
510 * library/ssl_srv.c
511 * library/ssl_tls.c
512 *
513 * This module is required for X.509 certificate parsing.
514 */
Paul Bakker40e46942009-01-03 21:51:57 +0000515#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000516
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000517/**
518 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000519 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000520 * Enable the XTEA block cipher.
521 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000522 * Module: library/xtea.c
523 * Caller:
524 */
525#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000526/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000527
Paul Bakker5121ce52009-01-03 21:22:43 +0000528#endif /* config.h */