Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file config.h |
| 3 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 4 | * \brief Configuration options (set of defines) |
| 5 | * |
Paul Bakker | 84f12b7 | 2010-07-18 10:13:04 +0000 | [diff] [blame] | 6 | * Copyright (C) 2006-2010, Brainspark B.V. |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 7 | * |
| 8 | * This file is part of PolarSSL (http://www.polarssl.org) |
Paul Bakker | 84f12b7 | 2010-07-18 10:13:04 +0000 | [diff] [blame] | 9 | * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 10 | * |
Paul Bakker | 77b385e | 2009-07-28 17:23:11 +0000 | [diff] [blame] | 11 | * All rights reserved. |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 12 | * |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 13 | * 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 Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 27 | * 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 Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 31 | #ifndef POLARSSL_CONFIG_H |
| 32 | #define POLARSSL_CONFIG_H |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 33 | |
| 34 | #ifndef _CRT_SECURE_NO_DEPRECATE |
| 35 | #define _CRT_SECURE_NO_DEPRECATE 1 |
| 36 | #endif |
| 37 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 38 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 39 | * \name SECTION: System support |
| 40 | * |
| 41 | * This section sets system specific settings. |
| 42 | * \{ |
| 43 | */ |
| 44 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 45 | /** |
| 46 | * \def POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 47 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 48 | * The system uses 8-bit wide native integers. |
| 49 | * |
| 50 | * Uncomment if native integers are 8-bit wide. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 51 | #define POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 52 | */ |
| 53 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 54 | /** |
| 55 | * \def POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 56 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 57 | * The system uses 16-bit wide native integers. |
| 58 | * |
| 59 | * Uncomment if native integers are 16-bit wide. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 60 | #define POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 61 | */ |
| 62 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 63 | /** |
| 64 | * \def POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 65 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 66 | * The compiler supports the use of long long. |
| 67 | * |
| 68 | * Uncomment if the compiler supports long long. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 69 | #define POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 70 | */ |
| 71 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 72 | /** |
| 73 | * \def POLARSSL_HAVE_ASM |
| 74 | * |
| 75 | * The compiler has support for asm() |
| 76 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 77 | * Uncomment to enable the use of assembly code. |
Paul Bakker | 68041ec | 2009-04-19 21:17:55 +0000 | [diff] [blame] | 78 | * |
| 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 Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 86 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 87 | #define POLARSSL_HAVE_ASM |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 88 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 89 | /** |
| 90 | * \def POLARSSL_HAVE_SSE2 |
| 91 | * |
| 92 | * CPI supports SSE2 instruction set. |
| 93 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 94 | * Uncomment if the CPU supports SSE2 (IA-32 specific). |
| 95 | * |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 96 | #define POLARSSL_HAVE_SSE2 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 97 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 98 | /* \} name */ |
| 99 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 100 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 101 | * \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 Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 107 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 108 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 109 | * \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 Bakker | b6ecaf5 | 2011-04-19 14:29:23 +0000 | [diff] [blame] | 119 | * \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 Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 133 | * \def POLARSSL_DEBUG_MSG |
| 134 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 135 | * Enable all SSL/TLS debugging messages. |
| 136 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 137 | #define POLARSSL_DEBUG_MSG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 138 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 139 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 140 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 141 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 142 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 143 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 144 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 145 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 146 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 147 | * \def POLARSSL_FS_IO |
| 148 | * |
| 149 | * Enable functions that use the filesystem. |
| 150 | */ |
| 151 | #define POLARSSL_FS_IO |
| 152 | |
| 153 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 154 | * \def POLARSSL_PKCS1_V21 |
| 155 | * |
| 156 | * Enable support for PKCS#1 v2.1 encoding. |
| 157 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 158 | */ |
| 159 | #define POLARSSL_PKCS1_V21 |
| 160 | |
| 161 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 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 Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 170 | |
| 171 | /** |
| 172 | * \def POLARSSL_SELF_TEST |
| 173 | * |
| 174 | * Enable the checkup functions (*_self_test). |
| 175 | */ |
| 176 | #define POLARSSL_SELF_TEST |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 177 | /* \} name */ |
| 178 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 179 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 180 | * \name SECTION: PolarSSL modules |
| 181 | * |
| 182 | * This section enables or disables entire modules in PolarSSL |
| 183 | * \{ |
| 184 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 185 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 186 | /** |
| 187 | * \def POLARSSL_AES_C |
| 188 | * |
| 189 | * Enable the AES block cipher. |
| 190 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 191 | * Module: library/aes.c |
| 192 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 193 | * library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 194 | * |
| 195 | * This module enables the following ciphersuites: |
| 196 | * SSL_RSA_AES_128_SHA |
| 197 | * SSL_RSA_AES_256_SHA |
| 198 | * SSL_EDH_RSA_AES_256_SHA |
| 199 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 200 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 201 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 202 | /** |
| 203 | * \def POLARSSL_ARC4_C |
| 204 | * |
| 205 | * Enable the ARCFOUR stream cipher. |
| 206 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 207 | * Module: library/arc4.c |
| 208 | * Caller: library/ssl_tls.c |
| 209 | * |
| 210 | * This module enables the following ciphersuites: |
| 211 | * SSL_RSA_RC4_128_MD5 |
| 212 | * SSL_RSA_RC4_128_SHA |
| 213 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 214 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 215 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 216 | /** |
| 217 | * \def POLARSSL_BASE64_C |
| 218 | * |
| 219 | * Enable the Base64 module. |
| 220 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 221 | * Module: library/base64.c |
| 222 | * Caller: library/x509parse.c |
| 223 | * |
| 224 | * This module is required for X.509 support. |
| 225 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 226 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 227 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 228 | /** |
| 229 | * \def POLARSSL_BIGNUM_C |
| 230 | * |
| 231 | * Enable the multo-precision integer library. |
| 232 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 233 | * Module: library/bignum.c |
| 234 | * Caller: library/dhm.c |
| 235 | * library/rsa.c |
| 236 | * library/ssl_tls.c |
| 237 | * library/x509parse.c |
| 238 | * |
| 239 | * This module is required for RSA and DHM support. |
| 240 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 241 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 242 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 243 | /** |
| 244 | * \def POLARSSL_CAMELLIA_C |
| 245 | * |
| 246 | * Enable the Camellia block cipher. |
| 247 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 248 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 249 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 250 | * |
| 251 | * This module enabled the following cipher suites: |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 252 | * SSL_RSA_CAMELLIA_128_SHA |
| 253 | * SSL_RSA_CAMELLIA_256_SHA |
| 254 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 255 | */ |
| 256 | #define POLARSSL_CAMELLIA_C |
| 257 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 258 | /** |
| 259 | * \def POLARSSL_CERTS_C |
| 260 | * |
| 261 | * Enable the test certificates. |
| 262 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 263 | * Module: library/certs.c |
| 264 | * Caller: |
| 265 | * |
| 266 | * This module is used for testing (ssl_client/server). |
| 267 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 268 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 269 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 270 | /** |
| 271 | * \def POLARSSL_CIPHER_C |
| 272 | * |
| 273 | * Enable the generic cipher layer. |
| 274 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 275 | * Module: library/cipher.c |
| 276 | * Caller: |
| 277 | * |
| 278 | * Uncomment to enable generic cipher wrappers. |
| 279 | */ |
| 280 | #define POLARSSL_CIPHER_C |
| 281 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 282 | /** |
| 283 | * \def POLARSSL_DEBUG_C |
| 284 | * |
| 285 | * Enable the debug functions. |
| 286 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 287 | * Module: library/debug.c |
| 288 | * Caller: library/ssl_cli.c |
| 289 | * library/ssl_srv.c |
| 290 | * library/ssl_tls.c |
| 291 | * |
| 292 | * This module provides debugging functions. |
| 293 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 294 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 295 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 296 | /** |
| 297 | * \def POLARSSL_DES_C |
| 298 | * |
| 299 | * Enable the DES block cipher. |
| 300 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 301 | * Module: library/des.c |
| 302 | * Caller: library/ssl_tls.c |
| 303 | * |
| 304 | * This module enables the following ciphersuites: |
| 305 | * SSL_RSA_DES_168_SHA |
| 306 | * SSL_EDH_RSA_DES_168_SHA |
| 307 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 308 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 309 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 310 | /** |
| 311 | * \def POLARSSL_DHM_C |
| 312 | * |
| 313 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 314 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 315 | * Module: library/dhm.c |
| 316 | * Caller: library/ssl_cli.c |
| 317 | * library/ssl_srv.c |
| 318 | * |
| 319 | * This module enables the following ciphersuites: |
| 320 | * SSL_EDH_RSA_DES_168_SHA |
| 321 | * SSL_EDH_RSA_AES_256_SHA |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 322 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 323 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 324 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 325 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 326 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 327 | * \def POLARSSL_ERROR_C |
| 328 | * |
| 329 | * Enable error code to error string conversion. |
| 330 | * |
| 331 | * Module: library/error.c |
| 332 | * Caller: |
| 333 | * |
| 334 | * This module enables err_strerror(). |
| 335 | */ |
| 336 | #define POLARSSL_ERROR_C |
| 337 | |
| 338 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 339 | * \def POLARSSL_HAVEGE_C |
| 340 | * |
| 341 | * Enable the HAVEGE random generator. |
| 342 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 343 | * Module: library/havege.c |
| 344 | * Caller: |
| 345 | * |
| 346 | * This module enables the HAVEGE random number generator. |
| 347 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 348 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 349 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 350 | /** |
| 351 | * \def POLARSSL_MD_C |
| 352 | * |
| 353 | * Enable the generic message digest layer. |
| 354 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 355 | * Module: library/md.c |
| 356 | * Caller: |
| 357 | * |
| 358 | * Uncomment to enable generic message digest wrappers. |
| 359 | */ |
| 360 | #define POLARSSL_MD_C |
| 361 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 362 | /** |
| 363 | * \def POLARSSL_MD2_C |
| 364 | * |
| 365 | * Enable the MD2 hash algorithm |
| 366 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 367 | * Module: library/md2.c |
| 368 | * Caller: library/x509parse.c |
| 369 | * |
| 370 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 371 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 372 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 373 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 374 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 375 | /** |
| 376 | * \def POLARSSL_MD4_C |
| 377 | * |
| 378 | * Enable the MD4 hash algorithm |
| 379 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 380 | * Module: library/md4.c |
| 381 | * Caller: library/x509parse.c |
| 382 | * |
| 383 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 384 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 385 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 386 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 387 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 388 | /** |
| 389 | * \def POLARSSL_MD5_C |
| 390 | * |
| 391 | * Enable the MD5 hash algorithm |
| 392 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 393 | * Module: library/md5.c |
| 394 | * Caller: library/ssl_tls.c |
| 395 | * library/x509parse.c |
| 396 | * |
| 397 | * This module is required for SSL/TLS and X.509. |
| 398 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 399 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 400 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 401 | /** |
| 402 | * \def POLARSSL_NET_C |
| 403 | * |
| 404 | * Enable the TCP/IP networking routines. |
| 405 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 406 | * Module: library/net.c |
| 407 | * Caller: |
| 408 | * |
| 409 | * This module provides TCP/IP networking routines. |
| 410 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 411 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 412 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 413 | /** |
| 414 | * \def POLARSSL_PADLOCK_C |
| 415 | * |
| 416 | * Enable VIA Padlock support on x86. |
| 417 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 418 | * Module: library/padlock.c |
| 419 | * Caller: library/aes.c |
| 420 | * |
| 421 | * This modules adds support for the VIA PadLock on x86. |
| 422 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 423 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 424 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 425 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 426 | * \def POLARSSL_PEM_C |
| 427 | * |
| 428 | * Enable PEM decoding |
| 429 | * |
| 430 | * Module: library/pem.c |
| 431 | * Caller: library/x509parse.c |
| 432 | * |
| 433 | * This modules adds support for decoding PEM files. |
| 434 | */ |
| 435 | #define POLARSSL_PEM_C |
| 436 | |
| 437 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 438 | * \def POLARSSL_RSA_C |
| 439 | * |
| 440 | * Enable the RSA public-key cryptosystem. |
| 441 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 442 | * Module: library/rsa.c |
| 443 | * Caller: library/ssl_cli.c |
| 444 | * library/ssl_srv.c |
| 445 | * library/ssl_tls.c |
| 446 | * library/x509.c |
| 447 | * |
| 448 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 449 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 450 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 451 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 452 | /** |
| 453 | * \def POLARSSL_SHA1_C |
| 454 | * |
| 455 | * Enable the SHA1 cryptographic hash algorithm. |
| 456 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 457 | * Module: library/sha1.c |
| 458 | * Caller: library/ssl_cli.c |
| 459 | * library/ssl_srv.c |
| 460 | * library/ssl_tls.c |
| 461 | * library/x509parse.c |
| 462 | * |
| 463 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 464 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 465 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 466 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 467 | /** |
| 468 | * \def POLARSSL_SHA2_C |
| 469 | * |
| 470 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 471 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 472 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 473 | * Caller: library/md_wrap.c |
| 474 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 475 | * |
| 476 | * This module adds support for SHA-224 and SHA-256. |
| 477 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 478 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 479 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 480 | /** |
| 481 | * \def POLARSSL_SHA4_C |
| 482 | * |
| 483 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 484 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 485 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 486 | * Caller: library/md_wrap.c |
| 487 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 488 | * |
| 489 | * This module adds support for SHA-384 and SHA-512. |
| 490 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 491 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 492 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 493 | /** |
| 494 | * \def POLARSSL_SSL_CLI_C |
| 495 | * |
| 496 | * Enable the SSL/TLS client code. |
| 497 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 498 | * Module: library/ssl_cli.c |
| 499 | * Caller: |
| 500 | * |
| 501 | * This module is required for SSL/TLS client support. |
| 502 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 503 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 504 | |
| 505 | /* |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 506 | * \def POLARSSL_SSL_SRV_C |
| 507 | * |
| 508 | * Enable the SSL/TLS server code. |
| 509 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 510 | * Module: library/ssl_srv.c |
| 511 | * Caller: |
| 512 | * |
| 513 | * This module is required for SSL/TLS server support. |
| 514 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 515 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 516 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 517 | /** |
| 518 | * \def POLARSSL_SSL_TLS_C |
| 519 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame^] | 520 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 521 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 522 | * Module: library/ssl_tls.c |
| 523 | * Caller: library/ssl_cli.c |
| 524 | * library/ssl_srv.c |
| 525 | * |
| 526 | * This module is required for SSL/TLS. |
| 527 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 528 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 529 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 530 | /** |
| 531 | * \def POLARSSL_PKCS11_C |
| 532 | * |
| 533 | * Enable support for PKCS#11 smartcard support. |
| 534 | * |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 535 | * Module: library/ssl_srv.c |
| 536 | * Caller: library/ssl_cli.c |
| 537 | * library/ssl_srv.c |
| 538 | * |
| 539 | * This module is required for SSL/TLS PKCS #11 smartcard support. |
| 540 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 541 | #define POLARSSL_PKCS11_C |
Paul Bakker | f917e42 | 2011-01-18 16:15:25 +0000 | [diff] [blame] | 542 | */ |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 543 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 544 | /** |
| 545 | * \def POLARSSL_TIMING_C |
| 546 | * |
| 547 | * Enable the portable timing interface. |
| 548 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 549 | * Module: library/timing.c |
| 550 | * Caller: library/havege.c |
| 551 | * |
| 552 | * This module is used by the HAVEGE random number generator. |
| 553 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 554 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 555 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 556 | /** |
| 557 | * \def POLARSSL_VERSION_C |
| 558 | * |
| 559 | * Enable run-time version information. |
| 560 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 561 | * Module: library/version.c |
| 562 | * |
| 563 | * This module provides run-time version information. |
| 564 | */ |
| 565 | #define POLARSSL_VERSION_C |
| 566 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 567 | /** |
| 568 | * \def POLARSSL_X509_PARSE_C |
| 569 | * |
| 570 | * Enable X.509 certificate parsing. |
| 571 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 572 | * Module: library/x509parse.c |
| 573 | * Caller: library/ssl_cli.c |
| 574 | * library/ssl_srv.c |
| 575 | * library/ssl_tls.c |
| 576 | * |
| 577 | * This module is required for X.509 certificate parsing. |
| 578 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 579 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 580 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 581 | /** |
| 582 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 583 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 584 | * Enable the XTEA block cipher. |
| 585 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 586 | * Module: library/xtea.c |
| 587 | * Caller: |
| 588 | */ |
| 589 | #define POLARSSL_XTEA_C |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 590 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 591 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 592 | #endif /* config.h */ |