blob: 09807fa77e05b0ae9e768c935816922f200ed8a9 [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/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000123 * \def POLARSSL_PKCS1_V21
124 *
125 * Enable support for PKCS#1 v2.1 encoding.
126 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
127 */
128#define POLARSSL_PKCS1_V21
129
130/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000131 * \def POLARSSL_GENPRIME
132 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000133 * Enable the prime-number generation code.
134 */
Paul Bakker40e46942009-01-03 21:51:57 +0000135#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000136
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000137/**
138 * \def POLARSSL_AES_ROM_TABLES
139 *
140 * Store the AES tables in ROM.
141 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000142 * Uncomment this macro to store the AES tables in ROM.
143 *
Paul Bakker40e46942009-01-03 21:51:57 +0000144#define POLARSSL_AES_ROM_TABLES
Paul Bakker5121ce52009-01-03 21:22:43 +0000145 */
Paul Bakker0216cc12011-03-26 13:40:23 +0000146
147/**
148 * \def POLARSSL_RSA_NO_CRT
149 *
150 * Do not use the Chinese Remainder Theorem for the RSA private operation.
151 *
152 * Uncomment this macro to disable the use of CRT in RSA.
153 *
154#define POLARSSL_RSA_NO_CRT
155 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000156/* \} name */
157
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000158/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000159 * \name SECTION: PolarSSL modules
160 *
161 * This section enables or disables entire modules in PolarSSL
162 * \{
163 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000164
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000165/**
166 * \def POLARSSL_AES_C
167 *
168 * Enable the AES block cipher.
169 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000170 * Module: library/aes.c
171 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000172 * library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000173 *
174 * This module enables the following ciphersuites:
175 * SSL_RSA_AES_128_SHA
176 * SSL_RSA_AES_256_SHA
177 * SSL_EDH_RSA_AES_256_SHA
178 */
Paul Bakker40e46942009-01-03 21:51:57 +0000179#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000180
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000181/**
182 * \def POLARSSL_ARC4_C
183 *
184 * Enable the ARCFOUR stream cipher.
185 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000186 * Module: library/arc4.c
187 * Caller: library/ssl_tls.c
188 *
189 * This module enables the following ciphersuites:
190 * SSL_RSA_RC4_128_MD5
191 * SSL_RSA_RC4_128_SHA
192 */
Paul Bakker40e46942009-01-03 21:51:57 +0000193#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000194
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000195/**
196 * \def POLARSSL_BASE64_C
197 *
198 * Enable the Base64 module.
199 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000200 * Module: library/base64.c
201 * Caller: library/x509parse.c
202 *
203 * This module is required for X.509 support.
204 */
Paul Bakker40e46942009-01-03 21:51:57 +0000205#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000206
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000207/**
208 * \def POLARSSL_BIGNUM_C
209 *
210 * Enable the multo-precision integer library.
211 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000212 * Module: library/bignum.c
213 * Caller: library/dhm.c
214 * library/rsa.c
215 * library/ssl_tls.c
216 * library/x509parse.c
217 *
218 * This module is required for RSA and DHM support.
219 */
Paul Bakker40e46942009-01-03 21:51:57 +0000220#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000221
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000222/**
223 * \def POLARSSL_CAMELLIA_C
224 *
225 * Enable the Camellia block cipher.
226 *
Paul Bakker38119b12009-01-10 23:31:23 +0000227 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000228 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000229 *
230 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000231 * SSL_RSA_CAMELLIA_128_SHA
232 * SSL_RSA_CAMELLIA_256_SHA
233 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000234 */
235#define POLARSSL_CAMELLIA_C
236
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000237/**
238 * \def POLARSSL_CERTS_C
239 *
240 * Enable the test certificates.
241 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000242 * Module: library/certs.c
243 * Caller:
244 *
245 * This module is used for testing (ssl_client/server).
246 */
Paul Bakker40e46942009-01-03 21:51:57 +0000247#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000248
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000249/**
250 * \def POLARSSL_CIPHER_C
251 *
252 * Enable the generic cipher layer.
253 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000254 * Module: library/cipher.c
255 * Caller:
256 *
257 * Uncomment to enable generic cipher wrappers.
258 */
259#define POLARSSL_CIPHER_C
260
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000261/**
262 * \def POLARSSL_DEBUG_C
263 *
264 * Enable the debug functions.
265 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000266 * Module: library/debug.c
267 * Caller: library/ssl_cli.c
268 * library/ssl_srv.c
269 * library/ssl_tls.c
270 *
271 * This module provides debugging functions.
272 */
Paul Bakker40e46942009-01-03 21:51:57 +0000273#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000274
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000275/**
276 * \def POLARSSL_DES_C
277 *
278 * Enable the DES block cipher.
279 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000280 * Module: library/des.c
281 * Caller: library/ssl_tls.c
282 *
283 * This module enables the following ciphersuites:
284 * SSL_RSA_DES_168_SHA
285 * SSL_EDH_RSA_DES_168_SHA
286 */
Paul Bakker40e46942009-01-03 21:51:57 +0000287#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000288
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000289/**
290 * \def POLARSSL_DHM_C
291 *
292 * Enable the Diffie-Hellman-Merkle key exchange.
293 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000294 * Module: library/dhm.c
295 * Caller: library/ssl_cli.c
296 * library/ssl_srv.c
297 *
298 * This module enables the following ciphersuites:
299 * SSL_EDH_RSA_DES_168_SHA
300 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000301 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000302 */
Paul Bakker40e46942009-01-03 21:51:57 +0000303#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000304
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000305/**
306 * \def POLARSSL_HAVEGE_C
307 *
308 * Enable the HAVEGE random generator.
309 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000310 * Module: library/havege.c
311 * Caller:
312 *
313 * This module enables the HAVEGE random number generator.
314 */
Paul Bakker40e46942009-01-03 21:51:57 +0000315#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000316
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000317/**
318 * \def POLARSSL_MD_C
319 *
320 * Enable the generic message digest layer.
321 *
Paul Bakker17373852011-01-06 14:20:01 +0000322 * Module: library/md.c
323 * Caller:
324 *
325 * Uncomment to enable generic message digest wrappers.
326 */
327#define POLARSSL_MD_C
328
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000329/**
330 * \def POLARSSL_MD2_C
331 *
332 * Enable the MD2 hash algorithm
333 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000334 * Module: library/md2.c
335 * Caller: library/x509parse.c
336 *
337 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
338 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000339#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000340 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000341
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000342/**
343 * \def POLARSSL_MD4_C
344 *
345 * Enable the MD4 hash algorithm
346 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000347 * Module: library/md4.c
348 * Caller: library/x509parse.c
349 *
350 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
351 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000352#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000353 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000354
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000355/**
356 * \def POLARSSL_MD5_C
357 *
358 * Enable the MD5 hash algorithm
359 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000360 * Module: library/md5.c
361 * Caller: library/ssl_tls.c
362 * library/x509parse.c
363 *
364 * This module is required for SSL/TLS and X.509.
365 */
Paul Bakker40e46942009-01-03 21:51:57 +0000366#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000367
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000368/**
369 * \def POLARSSL_NET_C
370 *
371 * Enable the TCP/IP networking routines.
372 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000373 * Module: library/net.c
374 * Caller:
375 *
376 * This module provides TCP/IP networking routines.
377 */
Paul Bakker40e46942009-01-03 21:51:57 +0000378#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000379
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000380/**
381 * \def POLARSSL_PADLOCK_C
382 *
383 * Enable VIA Padlock support on x86.
384 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000385 * Module: library/padlock.c
386 * Caller: library/aes.c
387 *
388 * This modules adds support for the VIA PadLock on x86.
389 */
Paul Bakker40e46942009-01-03 21:51:57 +0000390#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000391
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000392/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000393 * \def POLARSSL_PEM_C
394 *
395 * Enable PEM decoding
396 *
397 * Module: library/pem.c
398 * Caller: library/x509parse.c
399 *
400 * This modules adds support for decoding PEM files.
401 */
402#define POLARSSL_PEM_C
403
404/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000405 * \def POLARSSL_RSA_C
406 *
407 * Enable the RSA public-key cryptosystem.
408 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000409 * Module: library/rsa.c
410 * Caller: library/ssl_cli.c
411 * library/ssl_srv.c
412 * library/ssl_tls.c
413 * library/x509.c
414 *
415 * This module is required for SSL/TLS and MD5-signed certificates.
416 */
Paul Bakker40e46942009-01-03 21:51:57 +0000417#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000418
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000419/**
420 * \def POLARSSL_SHA1_C
421 *
422 * Enable the SHA1 cryptographic hash algorithm.
423 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000424 * Module: library/sha1.c
425 * Caller: library/ssl_cli.c
426 * library/ssl_srv.c
427 * library/ssl_tls.c
428 * library/x509parse.c
429 *
430 * This module is required for SSL/TLS and SHA1-signed certificates.
431 */
Paul Bakker40e46942009-01-03 21:51:57 +0000432#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000433
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000434/**
435 * \def POLARSSL_SHA2_C
436 *
437 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
438 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000439 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000440 * Caller: library/md_wrap.c
441 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000442 *
443 * This module adds support for SHA-224 and SHA-256.
444 */
Paul Bakker40e46942009-01-03 21:51:57 +0000445#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000446
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000447/**
448 * \def POLARSSL_SHA4_C
449 *
450 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
451 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000452 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000453 * Caller: library/md_wrap.c
454 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000455 *
456 * This module adds support for SHA-384 and SHA-512.
457 */
Paul Bakker40e46942009-01-03 21:51:57 +0000458#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000459
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000460/**
461 * \def POLARSSL_SSL_CLI_C
462 *
463 * Enable the SSL/TLS client code.
464 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000465 * Module: library/ssl_cli.c
466 * Caller:
467 *
468 * This module is required for SSL/TLS client support.
469 */
Paul Bakker40e46942009-01-03 21:51:57 +0000470#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000471
472/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000473 * \def POLARSSL_SSL_SRV_C
474 *
475 * Enable the SSL/TLS server code.
476 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000477 * Module: library/ssl_srv.c
478 * Caller:
479 *
480 * This module is required for SSL/TLS server support.
481 */
Paul Bakker40e46942009-01-03 21:51:57 +0000482#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000483
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000484/**
485 * \def POLARSSL_SSL_TLS_C
486 *
487 * Enable the generic SSL/RLS code.
488 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000489 * Module: library/ssl_tls.c
490 * Caller: library/ssl_cli.c
491 * library/ssl_srv.c
492 *
493 * This module is required for SSL/TLS.
494 */
Paul Bakker40e46942009-01-03 21:51:57 +0000495#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000496
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000497/**
498 * \def POLARSSL_PKCS11_C
499 *
500 * Enable support for PKCS#11 smartcard support.
501 *
Paul Bakker43b7e352011-01-18 15:27:19 +0000502 * Module: library/ssl_srv.c
503 * Caller: library/ssl_cli.c
504 * library/ssl_srv.c
505 *
506 * This module is required for SSL/TLS PKCS #11 smartcard support.
507 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
Paul Bakker43b7e352011-01-18 15:27:19 +0000508#define POLARSSL_PKCS11_C
Paul Bakkerf917e422011-01-18 16:15:25 +0000509 */
Paul Bakker43b7e352011-01-18 15:27:19 +0000510
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000511/**
512 * \def POLARSSL_TIMING_C
513 *
514 * Enable the portable timing interface.
515 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000516 * Module: library/timing.c
517 * Caller: library/havege.c
518 *
519 * This module is used by the HAVEGE random number generator.
520 */
Paul Bakker40e46942009-01-03 21:51:57 +0000521#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000522
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000523/**
524 * \def POLARSSL_VERSION_C
525 *
526 * Enable run-time version information.
527 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000528 * Module: library/version.c
529 *
530 * This module provides run-time version information.
531 */
532#define POLARSSL_VERSION_C
533
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000534/**
535 * \def POLARSSL_X509_PARSE_C
536 *
537 * Enable X.509 certificate parsing.
538 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000539 * Module: library/x509parse.c
540 * Caller: library/ssl_cli.c
541 * library/ssl_srv.c
542 * library/ssl_tls.c
543 *
544 * This module is required for X.509 certificate parsing.
545 */
Paul Bakker40e46942009-01-03 21:51:57 +0000546#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000547
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000548/**
549 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000550 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000551 * Enable the XTEA block cipher.
552 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000553 * Module: library/xtea.c
554 * Caller:
555 */
556#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000557/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000558
Paul Bakker5121ce52009-01-03 21:22:43 +0000559#endif /* config.h */