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 | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame^] | 6 | * Copyright (C) 2006-2011, 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 | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 135 | * Requires: POLARSSL_DEBUG_C |
| 136 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 137 | * Enable all SSL/TLS debugging messages. |
| 138 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 139 | #define POLARSSL_DEBUG_MSG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 140 | |
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 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 143 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 144 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 145 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 146 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 147 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 148 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 149 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 150 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 151 | * \def POLARSSL_FS_IO |
| 152 | * |
| 153 | * Enable functions that use the filesystem. |
| 154 | */ |
| 155 | #define POLARSSL_FS_IO |
| 156 | |
| 157 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 158 | * \def POLARSSL_PKCS1_V21 |
| 159 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 160 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 161 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 162 | * Enable support for PKCS#1 v2.1 encoding. |
| 163 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 164 | */ |
| 165 | #define POLARSSL_PKCS1_V21 |
| 166 | |
| 167 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 168 | * \def POLARSSL_RSA_NO_CRT |
| 169 | * |
| 170 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 171 | * |
| 172 | * Uncomment this macro to disable the use of CRT in RSA. |
| 173 | * |
| 174 | #define POLARSSL_RSA_NO_CRT |
| 175 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 176 | |
| 177 | /** |
| 178 | * \def POLARSSL_SELF_TEST |
| 179 | * |
| 180 | * Enable the checkup functions (*_self_test). |
| 181 | */ |
| 182 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 183 | |
| 184 | /** |
| 185 | * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 186 | * |
| 187 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 188 | * and encountering an unknown critical extension. |
| 189 | * |
| 190 | * Uncomment to prevent an error. |
| 191 | * |
| 192 | #define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 193 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 194 | /* \} name */ |
| 195 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 196 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 197 | * \name SECTION: PolarSSL modules |
| 198 | * |
| 199 | * This section enables or disables entire modules in PolarSSL |
| 200 | * \{ |
| 201 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 202 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 203 | /** |
| 204 | * \def POLARSSL_AES_C |
| 205 | * |
| 206 | * Enable the AES block cipher. |
| 207 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 208 | * Module: library/aes.c |
| 209 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 210 | * library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 211 | * |
| 212 | * This module enables the following ciphersuites: |
| 213 | * SSL_RSA_AES_128_SHA |
| 214 | * SSL_RSA_AES_256_SHA |
| 215 | * SSL_EDH_RSA_AES_256_SHA |
| 216 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 217 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 218 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 219 | /** |
| 220 | * \def POLARSSL_ARC4_C |
| 221 | * |
| 222 | * Enable the ARCFOUR stream cipher. |
| 223 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 224 | * Module: library/arc4.c |
| 225 | * Caller: library/ssl_tls.c |
| 226 | * |
| 227 | * This module enables the following ciphersuites: |
| 228 | * SSL_RSA_RC4_128_MD5 |
| 229 | * SSL_RSA_RC4_128_SHA |
| 230 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 231 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 232 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 233 | /** |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame^] | 234 | * \def POLARSSL_ASN1_PARSE_C |
| 235 | * |
| 236 | * Enable the generic ASN1 parser. |
| 237 | * |
| 238 | * Module: library/asn1.c |
| 239 | * Caller: library/x509parse.c |
| 240 | */ |
| 241 | #define POLARSSL_ASN1_PARSE_C |
| 242 | |
| 243 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 244 | * \def POLARSSL_BASE64_C |
| 245 | * |
| 246 | * Enable the Base64 module. |
| 247 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 248 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 249 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 250 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 251 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 252 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 253 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 254 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 255 | /** |
| 256 | * \def POLARSSL_BIGNUM_C |
| 257 | * |
| 258 | * Enable the multo-precision integer library. |
| 259 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 260 | * Module: library/bignum.c |
| 261 | * Caller: library/dhm.c |
| 262 | * library/rsa.c |
| 263 | * library/ssl_tls.c |
| 264 | * library/x509parse.c |
| 265 | * |
| 266 | * This module is required for RSA and DHM support. |
| 267 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 268 | #define POLARSSL_BIGNUM_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_CAMELLIA_C |
| 272 | * |
| 273 | * Enable the Camellia block cipher. |
| 274 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 275 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 276 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 277 | * |
| 278 | * This module enabled the following cipher suites: |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 279 | * SSL_RSA_CAMELLIA_128_SHA |
| 280 | * SSL_RSA_CAMELLIA_256_SHA |
| 281 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 282 | */ |
| 283 | #define POLARSSL_CAMELLIA_C |
| 284 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 285 | /** |
| 286 | * \def POLARSSL_CERTS_C |
| 287 | * |
| 288 | * Enable the test certificates. |
| 289 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 290 | * Module: library/certs.c |
| 291 | * Caller: |
| 292 | * |
| 293 | * This module is used for testing (ssl_client/server). |
| 294 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 295 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 296 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 297 | /** |
| 298 | * \def POLARSSL_CIPHER_C |
| 299 | * |
| 300 | * Enable the generic cipher layer. |
| 301 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 302 | * Module: library/cipher.c |
| 303 | * Caller: |
| 304 | * |
| 305 | * Uncomment to enable generic cipher wrappers. |
| 306 | */ |
| 307 | #define POLARSSL_CIPHER_C |
| 308 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 309 | /** |
| 310 | * \def POLARSSL_DEBUG_C |
| 311 | * |
| 312 | * Enable the debug functions. |
| 313 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 314 | * Module: library/debug.c |
| 315 | * Caller: library/ssl_cli.c |
| 316 | * library/ssl_srv.c |
| 317 | * library/ssl_tls.c |
| 318 | * |
| 319 | * This module provides debugging functions. |
| 320 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 321 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 322 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 323 | /** |
| 324 | * \def POLARSSL_DES_C |
| 325 | * |
| 326 | * Enable the DES block cipher. |
| 327 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 328 | * Module: library/des.c |
| 329 | * Caller: library/ssl_tls.c |
| 330 | * |
| 331 | * This module enables the following ciphersuites: |
| 332 | * SSL_RSA_DES_168_SHA |
| 333 | * SSL_EDH_RSA_DES_168_SHA |
| 334 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 335 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 336 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 337 | /** |
| 338 | * \def POLARSSL_DHM_C |
| 339 | * |
| 340 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 341 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 342 | * Module: library/dhm.c |
| 343 | * Caller: library/ssl_cli.c |
| 344 | * library/ssl_srv.c |
| 345 | * |
| 346 | * This module enables the following ciphersuites: |
| 347 | * SSL_EDH_RSA_DES_168_SHA |
| 348 | * SSL_EDH_RSA_AES_256_SHA |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 349 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 350 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 351 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 352 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 353 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 354 | * \def POLARSSL_ERROR_C |
| 355 | * |
| 356 | * Enable error code to error string conversion. |
| 357 | * |
| 358 | * Module: library/error.c |
| 359 | * Caller: |
| 360 | * |
| 361 | * This module enables err_strerror(). |
| 362 | */ |
| 363 | #define POLARSSL_ERROR_C |
| 364 | |
| 365 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 366 | * \def POLARSSL_HAVEGE_C |
| 367 | * |
| 368 | * Enable the HAVEGE random generator. |
| 369 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 370 | * Module: library/havege.c |
| 371 | * Caller: |
| 372 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 373 | * Requires: POLARSSL_TIMING_C |
| 374 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 375 | * This module enables the HAVEGE random number generator. |
| 376 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 377 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 378 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 379 | /** |
| 380 | * \def POLARSSL_MD_C |
| 381 | * |
| 382 | * Enable the generic message digest layer. |
| 383 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 384 | * Module: library/md.c |
| 385 | * Caller: |
| 386 | * |
| 387 | * Uncomment to enable generic message digest wrappers. |
| 388 | */ |
| 389 | #define POLARSSL_MD_C |
| 390 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 391 | /** |
| 392 | * \def POLARSSL_MD2_C |
| 393 | * |
| 394 | * Enable the MD2 hash algorithm |
| 395 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 396 | * Module: library/md2.c |
| 397 | * Caller: library/x509parse.c |
| 398 | * |
| 399 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 400 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 401 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 402 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 403 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 404 | /** |
| 405 | * \def POLARSSL_MD4_C |
| 406 | * |
| 407 | * Enable the MD4 hash algorithm |
| 408 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 409 | * Module: library/md4.c |
| 410 | * Caller: library/x509parse.c |
| 411 | * |
| 412 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 413 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 414 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 415 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 416 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 417 | /** |
| 418 | * \def POLARSSL_MD5_C |
| 419 | * |
| 420 | * Enable the MD5 hash algorithm |
| 421 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 422 | * Module: library/md5.c |
| 423 | * Caller: library/ssl_tls.c |
| 424 | * library/x509parse.c |
| 425 | * |
| 426 | * This module is required for SSL/TLS and X.509. |
| 427 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 428 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 429 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 430 | /** |
| 431 | * \def POLARSSL_NET_C |
| 432 | * |
| 433 | * Enable the TCP/IP networking routines. |
| 434 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 435 | * Module: library/net.c |
| 436 | * Caller: |
| 437 | * |
| 438 | * This module provides TCP/IP networking routines. |
| 439 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 440 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 441 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 442 | /** |
| 443 | * \def POLARSSL_PADLOCK_C |
| 444 | * |
| 445 | * Enable VIA Padlock support on x86. |
| 446 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 447 | * Module: library/padlock.c |
| 448 | * Caller: library/aes.c |
| 449 | * |
| 450 | * This modules adds support for the VIA PadLock on x86. |
| 451 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 452 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 453 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 454 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 455 | * \def POLARSSL_PEM_C |
| 456 | * |
| 457 | * Enable PEM decoding |
| 458 | * |
| 459 | * Module: library/pem.c |
| 460 | * Caller: library/x509parse.c |
| 461 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 462 | * Requires: POLARSSL_BASE64_C |
| 463 | * |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 464 | * This modules adds support for decoding PEM files. |
| 465 | */ |
| 466 | #define POLARSSL_PEM_C |
| 467 | |
| 468 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 469 | * \def POLARSSL_PKCS11_C |
| 470 | * |
| 471 | * Enable support for PKCS#11 smartcard support. |
| 472 | * |
| 473 | * Module: library/ssl_srv.c |
| 474 | * Caller: library/ssl_cli.c |
| 475 | * library/ssl_srv.c |
| 476 | * |
| 477 | * Requires: POLARSSL_SSL_TLS_C |
| 478 | * |
| 479 | * This module is required for SSL/TLS PKCS #11 smartcard support. |
| 480 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
| 481 | #define POLARSSL_PKCS11_C |
| 482 | */ |
| 483 | |
| 484 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 485 | * \def POLARSSL_RSA_C |
| 486 | * |
| 487 | * Enable the RSA public-key cryptosystem. |
| 488 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 489 | * Module: library/rsa.c |
| 490 | * Caller: library/ssl_cli.c |
| 491 | * library/ssl_srv.c |
| 492 | * library/ssl_tls.c |
| 493 | * library/x509.c |
| 494 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 495 | * Requires: POLARSSL_BIGNUM_C |
| 496 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 497 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 498 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 499 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 500 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 501 | /** |
| 502 | * \def POLARSSL_SHA1_C |
| 503 | * |
| 504 | * Enable the SHA1 cryptographic hash algorithm. |
| 505 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 506 | * Module: library/sha1.c |
| 507 | * Caller: library/ssl_cli.c |
| 508 | * library/ssl_srv.c |
| 509 | * library/ssl_tls.c |
| 510 | * library/x509parse.c |
| 511 | * |
| 512 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 513 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 514 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 515 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 516 | /** |
| 517 | * \def POLARSSL_SHA2_C |
| 518 | * |
| 519 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 520 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 521 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 522 | * Caller: library/md_wrap.c |
| 523 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 524 | * |
| 525 | * This module adds support for SHA-224 and SHA-256. |
| 526 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 527 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 528 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 529 | /** |
| 530 | * \def POLARSSL_SHA4_C |
| 531 | * |
| 532 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 533 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 534 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 535 | * Caller: library/md_wrap.c |
| 536 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 537 | * |
| 538 | * This module adds support for SHA-384 and SHA-512. |
| 539 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 540 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 541 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 542 | /** |
| 543 | * \def POLARSSL_SSL_CLI_C |
| 544 | * |
| 545 | * Enable the SSL/TLS client code. |
| 546 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 547 | * Module: library/ssl_cli.c |
| 548 | * Caller: |
| 549 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 550 | * Requires: POLARSSL_SSL_TLS_C |
| 551 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 552 | * This module is required for SSL/TLS client support. |
| 553 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 554 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 555 | |
| 556 | /* |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 557 | * \def POLARSSL_SSL_SRV_C |
| 558 | * |
| 559 | * Enable the SSL/TLS server code. |
| 560 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 561 | * Module: library/ssl_srv.c |
| 562 | * Caller: |
| 563 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 564 | * Requires: POLARSSL_SSL_TLS_C |
| 565 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 566 | * This module is required for SSL/TLS server support. |
| 567 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 568 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 569 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 570 | /** |
| 571 | * \def POLARSSL_SSL_TLS_C |
| 572 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 573 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 574 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 575 | * Module: library/ssl_tls.c |
| 576 | * Caller: library/ssl_cli.c |
| 577 | * library/ssl_srv.c |
| 578 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 579 | * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C |
| 580 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 581 | * This module is required for SSL/TLS. |
| 582 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 583 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 584 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 585 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 586 | * \def POLARSSL_TIMING_C |
| 587 | * |
| 588 | * Enable the portable timing interface. |
| 589 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 590 | * Module: library/timing.c |
| 591 | * Caller: library/havege.c |
| 592 | * |
| 593 | * This module is used by the HAVEGE random number generator. |
| 594 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 595 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 596 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 597 | /** |
| 598 | * \def POLARSSL_VERSION_C |
| 599 | * |
| 600 | * Enable run-time version information. |
| 601 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 602 | * Module: library/version.c |
| 603 | * |
| 604 | * This module provides run-time version information. |
| 605 | */ |
| 606 | #define POLARSSL_VERSION_C |
| 607 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 608 | /** |
| 609 | * \def POLARSSL_X509_PARSE_C |
| 610 | * |
| 611 | * Enable X.509 certificate parsing. |
| 612 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 613 | * Module: library/x509parse.c |
| 614 | * Caller: library/ssl_cli.c |
| 615 | * library/ssl_srv.c |
| 616 | * library/ssl_tls.c |
| 617 | * |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame^] | 618 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 619 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 620 | * This module is required for X.509 certificate parsing. |
| 621 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 622 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 623 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 624 | /** |
| 625 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 626 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 627 | * Enable the XTEA block cipher. |
| 628 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 629 | * Module: library/xtea.c |
| 630 | * Caller: |
| 631 | */ |
| 632 | #define POLARSSL_XTEA_C |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 633 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 634 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 635 | #endif /* config.h */ |