blob: 79071a393f39348d6a7938f80fbe44ffc345b17d [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/**
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000109 * \def POLARSSL_CIPHER_MODE_CFB
110 *
111 * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
112 */
113#define POLARSSL_CIPHER_MODE_CFB
114
115/**
116 * \def POLARSSL_CIPHER_MODE_CTR
117 *
118 * Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
119 */
120#define POLARSSL_CIPHER_MODE_CTR
121
122/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000123 * \def POLARSSL_DEBUG_MSG
124 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000125 * Enable all SSL/TLS debugging messages.
126 */
Paul Bakker40e46942009-01-03 21:51:57 +0000127#define POLARSSL_DEBUG_MSG
Paul Bakker5121ce52009-01-03 21:22:43 +0000128
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000129/**
130 * \def POLARSSL_SELF_TEST
131 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000132 * Enable the checkup functions (*_self_test).
133 */
Paul Bakker40e46942009-01-03 21:51:57 +0000134#define POLARSSL_SELF_TEST
Paul Bakker5121ce52009-01-03 21:22:43 +0000135
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000136/**
Paul Bakker9dcc3222011-03-08 14:16:06 +0000137 * \def POLARSSL_PKCS1_V21
138 *
139 * Enable support for PKCS#1 v2.1 encoding.
140 * This enables support for RSAES-OAEP and RSASSA-PSS operations.
141 */
142#define POLARSSL_PKCS1_V21
143
144/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000145 * \def POLARSSL_GENPRIME
146 *
Paul Bakkerb6ecaf52011-04-19 14:29:23 +0000147 * Enable the RSA prime-number generation code.
Paul Bakker5121ce52009-01-03 21:22:43 +0000148 */
Paul Bakker40e46942009-01-03 21:51:57 +0000149#define POLARSSL_GENPRIME
Paul Bakker5121ce52009-01-03 21:22:43 +0000150
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000151/**
152 * \def POLARSSL_AES_ROM_TABLES
153 *
154 * Store the AES tables in ROM.
155 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000156 * Uncomment this macro to store the AES tables in ROM.
157 *
Paul Bakker40e46942009-01-03 21:51:57 +0000158#define POLARSSL_AES_ROM_TABLES
Paul Bakker5121ce52009-01-03 21:22:43 +0000159 */
Paul Bakker0216cc12011-03-26 13:40:23 +0000160
161/**
162 * \def POLARSSL_RSA_NO_CRT
163 *
164 * Do not use the Chinese Remainder Theorem for the RSA private operation.
165 *
166 * Uncomment this macro to disable the use of CRT in RSA.
167 *
168#define POLARSSL_RSA_NO_CRT
169 */
Paul Bakker0a62cd12011-01-21 11:00:08 +0000170/* \} name */
171
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000172/**
Paul Bakker0a62cd12011-01-21 11:00:08 +0000173 * \name SECTION: PolarSSL modules
174 *
175 * This section enables or disables entire modules in PolarSSL
176 * \{
177 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000178
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000179/**
180 * \def POLARSSL_AES_C
181 *
182 * Enable the AES block cipher.
183 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000184 * Module: library/aes.c
185 * Caller: library/ssl_tls.c
Paul Bakker96743fc2011-02-12 14:30:57 +0000186 * library/pem.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000187 *
188 * This module enables the following ciphersuites:
189 * SSL_RSA_AES_128_SHA
190 * SSL_RSA_AES_256_SHA
191 * SSL_EDH_RSA_AES_256_SHA
192 */
Paul Bakker40e46942009-01-03 21:51:57 +0000193#define POLARSSL_AES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000194
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000195/**
196 * \def POLARSSL_ARC4_C
197 *
198 * Enable the ARCFOUR stream cipher.
199 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000200 * Module: library/arc4.c
201 * Caller: library/ssl_tls.c
202 *
203 * This module enables the following ciphersuites:
204 * SSL_RSA_RC4_128_MD5
205 * SSL_RSA_RC4_128_SHA
206 */
Paul Bakker40e46942009-01-03 21:51:57 +0000207#define POLARSSL_ARC4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000208
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000209/**
210 * \def POLARSSL_BASE64_C
211 *
212 * Enable the Base64 module.
213 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000214 * Module: library/base64.c
215 * Caller: library/x509parse.c
216 *
217 * This module is required for X.509 support.
218 */
Paul Bakker40e46942009-01-03 21:51:57 +0000219#define POLARSSL_BASE64_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000220
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000221/**
222 * \def POLARSSL_BIGNUM_C
223 *
224 * Enable the multo-precision integer library.
225 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000226 * Module: library/bignum.c
227 * Caller: library/dhm.c
228 * library/rsa.c
229 * library/ssl_tls.c
230 * library/x509parse.c
231 *
232 * This module is required for RSA and DHM support.
233 */
Paul Bakker40e46942009-01-03 21:51:57 +0000234#define POLARSSL_BIGNUM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000235
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000236/**
237 * \def POLARSSL_CAMELLIA_C
238 *
239 * Enable the Camellia block cipher.
240 *
Paul Bakker38119b12009-01-10 23:31:23 +0000241 * Module: library/camellia.c
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000242 * Caller: library/ssl_tls.c
Paul Bakker38119b12009-01-10 23:31:23 +0000243 *
244 * This module enabled the following cipher suites:
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000245 * SSL_RSA_CAMELLIA_128_SHA
246 * SSL_RSA_CAMELLIA_256_SHA
247 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker38119b12009-01-10 23:31:23 +0000248 */
249#define POLARSSL_CAMELLIA_C
250
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000251/**
252 * \def POLARSSL_CERTS_C
253 *
254 * Enable the test certificates.
255 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000256 * Module: library/certs.c
257 * Caller:
258 *
259 * This module is used for testing (ssl_client/server).
260 */
Paul Bakker40e46942009-01-03 21:51:57 +0000261#define POLARSSL_CERTS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000262
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000263/**
264 * \def POLARSSL_CIPHER_C
265 *
266 * Enable the generic cipher layer.
267 *
Paul Bakker8123e9d2011-01-06 15:37:30 +0000268 * Module: library/cipher.c
269 * Caller:
270 *
271 * Uncomment to enable generic cipher wrappers.
272 */
273#define POLARSSL_CIPHER_C
274
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000275/**
276 * \def POLARSSL_DEBUG_C
277 *
278 * Enable the debug functions.
279 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000280 * Module: library/debug.c
281 * Caller: library/ssl_cli.c
282 * library/ssl_srv.c
283 * library/ssl_tls.c
284 *
285 * This module provides debugging functions.
286 */
Paul Bakker40e46942009-01-03 21:51:57 +0000287#define POLARSSL_DEBUG_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000288
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000289/**
290 * \def POLARSSL_DES_C
291 *
292 * Enable the DES block cipher.
293 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000294 * Module: library/des.c
295 * Caller: library/ssl_tls.c
296 *
297 * This module enables the following ciphersuites:
298 * SSL_RSA_DES_168_SHA
299 * SSL_EDH_RSA_DES_168_SHA
300 */
Paul Bakker40e46942009-01-03 21:51:57 +0000301#define POLARSSL_DES_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000302
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000303/**
304 * \def POLARSSL_DHM_C
305 *
306 * Enable the Diffie-Hellman-Merkle key exchange.
307 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000308 * Module: library/dhm.c
309 * Caller: library/ssl_cli.c
310 * library/ssl_srv.c
311 *
312 * This module enables the following ciphersuites:
313 * SSL_EDH_RSA_DES_168_SHA
314 * SSL_EDH_RSA_AES_256_SHA
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000315 * SSL_EDH_RSA_CAMELLIA_256_SHA
Paul Bakker5121ce52009-01-03 21:22:43 +0000316 */
Paul Bakker40e46942009-01-03 21:51:57 +0000317#define POLARSSL_DHM_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000318
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000319/**
320 * \def POLARSSL_HAVEGE_C
321 *
322 * Enable the HAVEGE random generator.
323 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000324 * Module: library/havege.c
325 * Caller:
326 *
327 * This module enables the HAVEGE random number generator.
328 */
Paul Bakker40e46942009-01-03 21:51:57 +0000329#define POLARSSL_HAVEGE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000330
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000331/**
332 * \def POLARSSL_MD_C
333 *
334 * Enable the generic message digest layer.
335 *
Paul Bakker17373852011-01-06 14:20:01 +0000336 * Module: library/md.c
337 * Caller:
338 *
339 * Uncomment to enable generic message digest wrappers.
340 */
341#define POLARSSL_MD_C
342
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000343/**
344 * \def POLARSSL_MD2_C
345 *
346 * Enable the MD2 hash algorithm
347 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000348 * Module: library/md2.c
349 * Caller: library/x509parse.c
350 *
351 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
352 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000353#define POLARSSL_MD2_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000354 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000355
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000356/**
357 * \def POLARSSL_MD4_C
358 *
359 * Enable the MD4 hash algorithm
360 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000361 * Module: library/md4.c
362 * Caller: library/x509parse.c
363 *
364 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
365 *
Paul Bakker13e2dfe2009-07-28 07:18:38 +0000366#define POLARSSL_MD4_C
Paul Bakker6506aff2009-07-28 20:52:02 +0000367 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000368
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000369/**
370 * \def POLARSSL_MD5_C
371 *
372 * Enable the MD5 hash algorithm
373 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000374 * Module: library/md5.c
375 * Caller: library/ssl_tls.c
376 * library/x509parse.c
377 *
378 * This module is required for SSL/TLS and X.509.
379 */
Paul Bakker40e46942009-01-03 21:51:57 +0000380#define POLARSSL_MD5_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000381
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000382/**
383 * \def POLARSSL_NET_C
384 *
385 * Enable the TCP/IP networking routines.
386 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000387 * Module: library/net.c
388 * Caller:
389 *
390 * This module provides TCP/IP networking routines.
391 */
Paul Bakker40e46942009-01-03 21:51:57 +0000392#define POLARSSL_NET_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000393
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000394/**
395 * \def POLARSSL_PADLOCK_C
396 *
397 * Enable VIA Padlock support on x86.
398 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000399 * Module: library/padlock.c
400 * Caller: library/aes.c
401 *
402 * This modules adds support for the VIA PadLock on x86.
403 */
Paul Bakker40e46942009-01-03 21:51:57 +0000404#define POLARSSL_PADLOCK_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000405
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000406/**
Paul Bakker96743fc2011-02-12 14:30:57 +0000407 * \def POLARSSL_PEM_C
408 *
409 * Enable PEM decoding
410 *
411 * Module: library/pem.c
412 * Caller: library/x509parse.c
413 *
414 * This modules adds support for decoding PEM files.
415 */
416#define POLARSSL_PEM_C
417
418/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000419 * \def POLARSSL_RSA_C
420 *
421 * Enable the RSA public-key cryptosystem.
422 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000423 * Module: library/rsa.c
424 * Caller: library/ssl_cli.c
425 * library/ssl_srv.c
426 * library/ssl_tls.c
427 * library/x509.c
428 *
429 * This module is required for SSL/TLS and MD5-signed certificates.
430 */
Paul Bakker40e46942009-01-03 21:51:57 +0000431#define POLARSSL_RSA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000432
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000433/**
434 * \def POLARSSL_SHA1_C
435 *
436 * Enable the SHA1 cryptographic hash algorithm.
437 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000438 * Module: library/sha1.c
439 * Caller: library/ssl_cli.c
440 * library/ssl_srv.c
441 * library/ssl_tls.c
442 * library/x509parse.c
443 *
444 * This module is required for SSL/TLS and SHA1-signed certificates.
445 */
Paul Bakker40e46942009-01-03 21:51:57 +0000446#define POLARSSL_SHA1_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000447
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000448/**
449 * \def POLARSSL_SHA2_C
450 *
451 * Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
452 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000453 * Module: library/sha2.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000454 * Caller: library/md_wrap.c
455 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000456 *
457 * This module adds support for SHA-224 and SHA-256.
458 */
Paul Bakker40e46942009-01-03 21:51:57 +0000459#define POLARSSL_SHA2_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000460
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000461/**
462 * \def POLARSSL_SHA4_C
463 *
464 * Enable the SHA-384 and SHA-512 cryptographic hash algorithms.
465 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000466 * Module: library/sha4.c
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000467 * Caller: library/md_wrap.c
468 * library/x509parse.c
Paul Bakker5121ce52009-01-03 21:22:43 +0000469 *
470 * This module adds support for SHA-384 and SHA-512.
471 */
Paul Bakker40e46942009-01-03 21:51:57 +0000472#define POLARSSL_SHA4_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000473
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000474/**
475 * \def POLARSSL_SSL_CLI_C
476 *
477 * Enable the SSL/TLS client code.
478 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000479 * Module: library/ssl_cli.c
480 * Caller:
481 *
482 * This module is required for SSL/TLS client support.
483 */
Paul Bakker40e46942009-01-03 21:51:57 +0000484#define POLARSSL_SSL_CLI_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000485
486/*
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000487 * \def POLARSSL_SSL_SRV_C
488 *
489 * Enable the SSL/TLS server code.
490 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000491 * Module: library/ssl_srv.c
492 * Caller:
493 *
494 * This module is required for SSL/TLS server support.
495 */
Paul Bakker40e46942009-01-03 21:51:57 +0000496#define POLARSSL_SSL_SRV_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000497
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000498/**
499 * \def POLARSSL_SSL_TLS_C
500 *
501 * Enable the generic SSL/RLS code.
502 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000503 * Module: library/ssl_tls.c
504 * Caller: library/ssl_cli.c
505 * library/ssl_srv.c
506 *
507 * This module is required for SSL/TLS.
508 */
Paul Bakker40e46942009-01-03 21:51:57 +0000509#define POLARSSL_SSL_TLS_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000510
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000511/**
512 * \def POLARSSL_PKCS11_C
513 *
514 * Enable support for PKCS#11 smartcard support.
515 *
Paul Bakker43b7e352011-01-18 15:27:19 +0000516 * Module: library/ssl_srv.c
517 * Caller: library/ssl_cli.c
518 * library/ssl_srv.c
519 *
520 * This module is required for SSL/TLS PKCS #11 smartcard support.
521 * Requires the presence of the PKCS#11 helper library (libpkcs11-helper)
Paul Bakker43b7e352011-01-18 15:27:19 +0000522#define POLARSSL_PKCS11_C
Paul Bakkerf917e422011-01-18 16:15:25 +0000523 */
Paul Bakker43b7e352011-01-18 15:27:19 +0000524
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000525/**
526 * \def POLARSSL_TIMING_C
527 *
528 * Enable the portable timing interface.
529 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000530 * Module: library/timing.c
531 * Caller: library/havege.c
532 *
533 * This module is used by the HAVEGE random number generator.
534 */
Paul Bakker40e46942009-01-03 21:51:57 +0000535#define POLARSSL_TIMING_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000536
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000537/**
538 * \def POLARSSL_VERSION_C
539 *
540 * Enable run-time version information.
541 *
Paul Bakker0a62cd12011-01-21 11:00:08 +0000542 * Module: library/version.c
543 *
544 * This module provides run-time version information.
545 */
546#define POLARSSL_VERSION_C
547
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000548/**
549 * \def POLARSSL_X509_PARSE_C
550 *
551 * Enable X.509 certificate parsing.
552 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000553 * Module: library/x509parse.c
554 * Caller: library/ssl_cli.c
555 * library/ssl_srv.c
556 * library/ssl_tls.c
557 *
558 * This module is required for X.509 certificate parsing.
559 */
Paul Bakker40e46942009-01-03 21:51:57 +0000560#define POLARSSL_X509_PARSE_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000561
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000562/**
563 * \def POLARSSL_XTEA_C
Paul Bakker5121ce52009-01-03 21:22:43 +0000564 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000565 * Enable the XTEA block cipher.
566 *
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000567 * Module: library/xtea.c
568 * Caller:
569 */
570#define POLARSSL_XTEA_C
Paul Bakker0a62cd12011-01-21 11:00:08 +0000571/* \} name */
Paul Bakker7a7c78f2009-01-04 18:15:48 +0000572
Paul Bakker5121ce52009-01-03 21:22:43 +0000573#endif /* config.h */