blob: f248bdc84f51cb0b732b726f74ba88bbbdcd392d [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 Bakker0a62cd12011-01-21 11:00:08 +0000146/* \} name */
147
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000148/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000149 * \name SECTION: PolarSSL modules
150 *
151 * This section enables or disables entire modules in PolarSSL
152 * \{
153 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000154
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000155/**
156 * \def POLARSSL_AES_C
157 *
158 * Enable the AES block cipher.
159 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000160 * Module: library/aes.c
161 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000162 * library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000163 *
164 * This module enables the following ciphersuites:
165 * SSL_RSA_AES_128_SHA
166 * SSL_RSA_AES_256_SHA
167 * SSL_EDH_RSA_AES_256_SHA
168 */
Paul Bakker40e46942009-01-03 21:51:57 +0000169#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000170
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000171/**
172 * \def POLARSSL_ARC4_C
173 *
174 * Enable the ARCFOUR stream cipher.
175 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000176 * Module: library/arc4.c
177 * Caller: library/ssl_tls.c
178 *
179 * This module enables the following ciphersuites:
180 * SSL_RSA_RC4_128_MD5
181 * SSL_RSA_RC4_128_SHA
182 */
Paul Bakker40e46942009-01-03 21:51:57 +0000183#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000184
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000185/**
186 * \def POLARSSL_BASE64_C
187 *
188 * Enable the Base64 module.
189 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000190 * Module: library/base64.c
191 * Caller: library/x509parse.c
192 *
193 * This module is required for X.509 support.
194 */
Paul Bakker40e46942009-01-03 21:51:57 +0000195#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000196
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000197/**
198 * \def POLARSSL_BIGNUM_C
199 *
200 * Enable the multo-precision integer library.
201 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000202 * Module: library/bignum.c
203 * Caller: library/dhm.c
204 * library/rsa.c
205 * library/ssl_tls.c
206 * library/x509parse.c
207 *
208 * This module is required for RSA and DHM support.
209 */
Paul Bakker40e46942009-01-03 21:51:57 +0000210#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000211
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000212/**
213 * \def POLARSSL_CAMELLIA_C
214 *
215 * Enable the Camellia block cipher.
216 *
Paul Bakker38119b12009-01-10 23:31:23 +0000217 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000218 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000219 *
220 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000221 * SSL_RSA_CAMELLIA_128_SHA
222 * SSL_RSA_CAMELLIA_256_SHA
223 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000224 */
225#define POLARSSL_CAMELLIA_C
226
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000227/**
228 * \def POLARSSL_CERTS_C
229 *
230 * Enable the test certificates.
231 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000232 * Module: library/certs.c
233 * Caller:
234 *
235 * This module is used for testing (ssl_client/server).
236 */
Paul Bakker40e46942009-01-03 21:51:57 +0000237#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000238
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000239/**
240 * \def POLARSSL_CIPHER_C
241 *
242 * Enable the generic cipher layer.
243 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000244 * Module: library/cipher.c
245 * Caller:
246 *
247 * Uncomment to enable generic cipher wrappers.
248 */
249#define POLARSSL_CIPHER_C
250
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000251/**
252 * \def POLARSSL_DEBUG_C
253 *
254 * Enable the debug functions.
255 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000256 * Module: library/debug.c
257 * Caller: library/ssl_cli.c
258 * library/ssl_srv.c
259 * library/ssl_tls.c
260 *
261 * This module provides debugging functions.
262 */
Paul Bakker40e46942009-01-03 21:51:57 +0000263#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000264
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000265/**
266 * \def POLARSSL_DES_C
267 *
268 * Enable the DES block cipher.
269 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000270 * Module: library/des.c
271 * Caller: library/ssl_tls.c
272 *
273 * This module enables the following ciphersuites:
274 * SSL_RSA_DES_168_SHA
275 * SSL_EDH_RSA_DES_168_SHA
276 */
Paul Bakker40e46942009-01-03 21:51:57 +0000277#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000278
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000279/**
280 * \def POLARSSL_DHM_C
281 *
282 * Enable the Diffie-Hellman-Merkle key exchange.
283 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000284 * Module: library/dhm.c
285 * Caller: library/ssl_cli.c
286 * library/ssl_srv.c
287 *
288 * This module enables the following ciphersuites:
289 * SSL_EDH_RSA_DES_168_SHA
290 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000291 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000292 */
Paul Bakker40e46942009-01-03 21:51:57 +0000293#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000294
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000295/**
296 * \def POLARSSL_HAVEGE_C
297 *
298 * Enable the HAVEGE random generator.
299 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000300 * Module: library/havege.c
301 * Caller:
302 *
303 * This module enables the HAVEGE random number generator.
304 */
Paul Bakker40e46942009-01-03 21:51:57 +0000305#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000306
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000307/**
308 * \def POLARSSL_MD_C
309 *
310 * Enable the generic message digest layer.
311 *
Paul Bakker17373852011-01-06 14:20:01 +0000312 * Module: library/md.c
313 * Caller:
314 *
315 * Uncomment to enable generic message digest wrappers.
316 */
317#define POLARSSL_MD_C
318
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000319/**
320 * \def POLARSSL_MD2_C
321 *
322 * Enable the MD2 hash algorithm
323 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000324 * Module: library/md2.c
325 * Caller: library/x509parse.c
326 *
327 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
328 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000329#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000330 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000331
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000332/**
333 * \def POLARSSL_MD4_C
334 *
335 * Enable the MD4 hash algorithm
336 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000337 * Module: library/md4.c
338 * Caller: library/x509parse.c
339 *
340 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
341 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000342#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000343 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000344
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000345/**
346 * \def POLARSSL_MD5_C
347 *
348 * Enable the MD5 hash algorithm
349 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000350 * Module: library/md5.c
351 * Caller: library/ssl_tls.c
352 * library/x509parse.c
353 *
354 * This module is required for SSL/TLS and X.509.
355 */
Paul Bakker40e46942009-01-03 21:51:57 +0000356#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000357
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000358/**
359 * \def POLARSSL_NET_C
360 *
361 * Enable the TCP/IP networking routines.
362 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000363 * Module: library/net.c
364 * Caller:
365 *
366 * This module provides TCP/IP networking routines.
367 */
Paul Bakker40e46942009-01-03 21:51:57 +0000368#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000369
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000370/**
371 * \def POLARSSL_PADLOCK_C
372 *
373 * Enable VIA Padlock support on x86.
374 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000375 * Module: library/padlock.c
376 * Caller: library/aes.c
377 *
378 * This modules adds support for the VIA PadLock on x86.
379 */
Paul Bakker40e46942009-01-03 21:51:57 +0000380#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000381
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000382/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000383 * \def POLARSSL_PEM_C
384 *
385 * Enable PEM decoding
386 *
387 * Module: library/pem.c
388 * Caller: library/x509parse.c
389 *
390 * This modules adds support for decoding PEM files.
391 */
392#define POLARSSL_PEM_C
393
394/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000395 * \def POLARSSL_RSA_C
396 *
397 * Enable the RSA public-key cryptosystem.
398 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000399 * Module: library/rsa.c
400 * Caller: library/ssl_cli.c
401 * library/ssl_srv.c
402 * library/ssl_tls.c
403 * library/x509.c
404 *
405 * This module is required for SSL/TLS and MD5-signed certificates.
406 */
Paul Bakker40e46942009-01-03 21:51:57 +0000407#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000408
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000409/**
410 * \def POLARSSL_SHA1_C
411 *
412 * Enable the SHA1 cryptographic hash algorithm.
413 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000414 * Module: library/sha1.c
415 * Caller: library/ssl_cli.c
416 * library/ssl_srv.c
417 * library/ssl_tls.c
418 * library/x509parse.c
419 *
420 * This module is required for SSL/TLS and SHA1-signed certificates.
421 */
Paul Bakker40e46942009-01-03 21:51:57 +0000422#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000423
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000424/**
425 * \def POLARSSL_SHA2_C
426 *
427 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
428 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000429 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000430 * Caller: library/md_wrap.c
431 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000432 *
433 * This module adds support for SHA-224 and SHA-256.
434 */
Paul Bakker40e46942009-01-03 21:51:57 +0000435#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000436
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000437/**
438 * \def POLARSSL_SHA4_C
439 *
440 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
441 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000442 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000443 * Caller: library/md_wrap.c
444 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000445 *
446 * This module adds support for SHA-384 and SHA-512.
447 */
Paul Bakker40e46942009-01-03 21:51:57 +0000448#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000449
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000450/**
451 * \def POLARSSL_SSL_CLI_C
452 *
453 * Enable the SSL/TLS client code.
454 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000455 * Module: library/ssl_cli.c
456 * Caller:
457 *
458 * This module is required for SSL/TLS client support.
459 */
Paul Bakker40e46942009-01-03 21:51:57 +0000460#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000461
462/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000463 * \def POLARSSL_SSL_SRV_C
464 *
465 * Enable the SSL/TLS server code.
466 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000467 * Module: library/ssl_srv.c
468 * Caller:
469 *
470 * This module is required for SSL/TLS server support.
471 */
Paul Bakker40e46942009-01-03 21:51:57 +0000472#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000473
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000474/**
475 * \def POLARSSL_SSL_TLS_C
476 *
477 * Enable the generic SSL/RLS code.
478 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000479 * Module: library/ssl_tls.c
480 * Caller: library/ssl_cli.c
481 * library/ssl_srv.c
482 *
483 * This module is required for SSL/TLS.
484 */
Paul Bakker40e46942009-01-03 21:51:57 +0000485#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000486
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000487/**
488 * \def POLARSSL_PKCS11_C
489 *
490 * Enable support for PKCS#11 smartcard support.
491 *
Paul Bakker43b7e352011-01-18 15:27:19 +0000492 * Module: library/ssl_srv.c
493 * Caller: library/ssl_cli.c
494 * library/ssl_srv.c
495 *
496 * This module is required for SSL/TLS PKCS #11 smartcard support.
497 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
Paul Bakker43b7e352011-01-18 15:27:19 +0000498#define POLARSSL_PKCS11_C
Paul Bakkerf917e422011-01-18 16:15:25 +0000499 */
Paul Bakker43b7e352011-01-18 15:27:19 +0000500
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000501/**
502 * \def POLARSSL_TIMING_C
503 *
504 * Enable the portable timing interface.
505 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000506 * Module: library/timing.c
507 * Caller: library/havege.c
508 *
509 * This module is used by the HAVEGE random number generator.
510 */
Paul Bakker40e46942009-01-03 21:51:57 +0000511#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000512
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000513/**
514 * \def POLARSSL_VERSION_C
515 *
516 * Enable run-time version information.
517 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000518 * Module: library/version.c
519 *
520 * This module provides run-time version information.
521 */
522#define POLARSSL_VERSION_C
523
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000524/**
525 * \def POLARSSL_X509_PARSE_C
526 *
527 * Enable X.509 certificate parsing.
528 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000529 * Module: library/x509parse.c
530 * Caller: library/ssl_cli.c
531 * library/ssl_srv.c
532 * library/ssl_tls.c
533 *
534 * This module is required for X.509 certificate parsing.
535 */
Paul Bakker40e46942009-01-03 21:51:57 +0000536#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000537
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000538/**
539 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000540 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000541 * Enable the XTEA block cipher.
542 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000543 * Module: library/xtea.c
544 * Caller:
545 */
546#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000547/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000548
Paul Bakker5121ce52009-01-03 21:22:43 +0000549#endif /* config.h */