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 | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 6 | * Copyright (C) 2006-2012, 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 | |
Paul Bakker | cce9d77 | 2011-11-18 14:26:47 +0000 | [diff] [blame] | 34 | #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 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 | /** |
Paul Bakker | 62261d6 | 2012-10-02 12:19:31 +0000 | [diff] [blame] | 64 | * \def POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 65 | * |
Paul Bakker | 62261d6 | 2012-10-02 12:19:31 +0000 | [diff] [blame] | 66 | * The compiler supports the 'long long' type. |
| 67 | * (Only used on 32-bit platforms) |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 68 | */ |
Paul Bakker | 62261d6 | 2012-10-02 12:19:31 +0000 | [diff] [blame] | 69 | #define POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 70 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 71 | /** |
| 72 | * \def POLARSSL_HAVE_ASM |
| 73 | * |
| 74 | * The compiler has support for asm() |
| 75 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 76 | * Uncomment to enable the use of assembly code. |
Paul Bakker | 68041ec | 2009-04-19 21:17:55 +0000 | [diff] [blame] | 77 | * |
| 78 | * Requires support for asm() in compiler. |
| 79 | * |
| 80 | * Used in: |
| 81 | * library/timing.c |
| 82 | * library/padlock.c |
| 83 | * include/polarssl/bn_mul.h |
| 84 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 85 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 86 | #define POLARSSL_HAVE_ASM |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 87 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 88 | /** |
| 89 | * \def POLARSSL_HAVE_SSE2 |
| 90 | * |
Paul Bakker | e23c315 | 2012-10-01 14:42:47 +0000 | [diff] [blame] | 91 | * CPU supports SSE2 instruction set. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 92 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 93 | * Uncomment if the CPU supports SSE2 (IA-32 specific). |
| 94 | * |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 95 | #define POLARSSL_HAVE_SSE2 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 96 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 97 | /* \} name */ |
| 98 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 99 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 100 | * \name SECTION: PolarSSL feature support |
| 101 | * |
| 102 | * This section sets support for features that are or are not needed |
| 103 | * within the modules that are enabled. |
| 104 | * \{ |
| 105 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 106 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 107 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 108 | * \def POLARSSL_AES_ROM_TABLES |
| 109 | * |
| 110 | * Store the AES tables in ROM. |
| 111 | * |
| 112 | * Uncomment this macro to store the AES tables in ROM. |
| 113 | * |
| 114 | #define POLARSSL_AES_ROM_TABLES |
| 115 | */ |
| 116 | |
| 117 | /** |
Paul Bakker | b6ecaf5 | 2011-04-19 14:29:23 +0000 | [diff] [blame] | 118 | * \def POLARSSL_CIPHER_MODE_CFB |
| 119 | * |
| 120 | * Enable Cipher Feedback mode (CFB) for symmetric ciphers. |
| 121 | */ |
| 122 | #define POLARSSL_CIPHER_MODE_CFB |
| 123 | |
| 124 | /** |
| 125 | * \def POLARSSL_CIPHER_MODE_CTR |
| 126 | * |
| 127 | * Enable Counter Block Cipher mode (CTR) for symmetric ciphers. |
| 128 | */ |
| 129 | #define POLARSSL_CIPHER_MODE_CTR |
| 130 | |
| 131 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 132 | * \def POLARSSL_CIPHER_NULL_CIPHER |
| 133 | * |
| 134 | * Enable NULL cipher. |
| 135 | * Warning: Only do so when you know what you are doing. This allows for |
| 136 | * encryption or channels without any security! |
| 137 | * |
| 138 | * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable |
| 139 | * the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 140 | * TLS_RSA_WITH_NULL_MD5 |
| 141 | * TLS_RSA_WITH_NULL_SHA |
| 142 | * TLS_RSA_WITH_NULL_SHA256 |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 143 | * TLS_ECDHE_RSA_WITH_NULL_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 144 | * |
| 145 | * Uncomment this macro to enable the NULL cipher and ciphersuites |
| 146 | #define POLARSSL_CIPHER_NULL_CIPHER |
| 147 | */ |
| 148 | |
| 149 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 150 | * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 151 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 152 | * Enable weak ciphersuites in SSL / TLS |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 153 | * Warning: Only do so when you know what you are doing. This allows for |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 154 | * channels with virtually no security at all! |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 155 | * |
| 156 | * This enables the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 157 | * TLS_RSA_WITH_DES_CBC_SHA |
| 158 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 159 | * |
| 160 | * Uncomment this macro to enable weak ciphersuites |
| 161 | #define POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 162 | */ |
| 163 | |
| 164 | /** |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 165 | * \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED |
| 166 | * |
| 167 | * Enable the PSK based ciphersuite modes in SSL / TLS |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 168 | * |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 169 | * This enables the following ciphersuites (if other requisites are |
| 170 | * enabled as well): |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 171 | * TLS_PSK_WITH_RC4_128_SHA |
| 172 | * TLS_PSK_WITH_3DES_EDE_CBC_SHA |
| 173 | * TLS_PSK_WITH_AES_128_CBC_SHA |
| 174 | * TLS_PSK_WITH_AES_256_CBC_SHA |
| 175 | */ |
| 176 | #define POLARSSL_KEY_EXCHANGE_PSK_ENABLED |
| 177 | |
| 178 | /** |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 179 | * \def POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED |
| 180 | * |
| 181 | * Enable the DHE-PSK based ciphersuite modes in SSL / TLS |
| 182 | * |
| 183 | * Requires: POLARSSL_DHM_C |
| 184 | * |
| 185 | * This enables the following ciphersuites (if other requisites are |
| 186 | * enabled as well): |
| 187 | * TLS_DHE_PSK_WITH_RC4_128_SHA |
| 188 | * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA |
| 189 | * TLS_DHE_PSK_WITH_AES_128_CBC_SHA |
| 190 | * TLS_DHE_PSK_WITH_AES_256_CBC_SHA |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 191 | */ |
Paul Bakker | 48f7a5d | 2013-04-19 14:30:58 +0200 | [diff] [blame^] | 192 | #define POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 193 | |
| 194 | /** |
| 195 | * \def POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED |
| 196 | * |
| 197 | * Enable the RSA-PSK based ciphersuite modes in SSL / TLS |
| 198 | * |
| 199 | * Requires: POLARSSL_RSA_C, POLARSSL_X509_PARSE_C |
| 200 | * |
| 201 | * This enables the following ciphersuites (if other requisites are |
| 202 | * enabled as well): |
| 203 | * TLS_RSA_PSK_WITH_RC4_128_SHA |
| 204 | * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA |
| 205 | * TLS_RSA_PSK_WITH_AES_128_CBC_SHA |
| 206 | * TLS_RSA_PSK_WITH_AES_256_CBC_SHA |
| 207 | #define POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED |
| 208 | */ |
| 209 | |
| 210 | /** |
| 211 | * \def POLARSSL_KEY_EXCHANGE_RSA_ENABLED |
| 212 | * |
| 213 | * Enable the RSA-only based ciphersuite modes in SSL / TLS |
| 214 | * |
| 215 | * Requires: POLARSSL_RSA_C, POLARSSL_X509_PARSE_C |
| 216 | * |
| 217 | * This enables the following ciphersuites (if other requisites are |
| 218 | * enabled as well): |
| 219 | * TLS_RSA_WITH_AES_128_CBC_SHA |
| 220 | * TLS_RSA_WITH_AES_256_CBC_SHA |
| 221 | * TLS_RSA_WITH_AES_128_CBC_SHA256 |
| 222 | * TLS_RSA_WITH_AES_256_CBC_SHA256 |
| 223 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 224 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
| 225 | * TLS_RSA_WITH_RC4_128_MD5 |
| 226 | * TLS_RSA_WITH_RC4_128_SHA |
| 227 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 228 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 229 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 230 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 231 | * TLS_RSA_WITH_3DES_EDE_CBC_SHA |
| 232 | */ |
| 233 | #define POLARSSL_KEY_EXCHANGE_RSA_ENABLED |
| 234 | |
| 235 | /** |
| 236 | * \def POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED |
| 237 | * |
| 238 | * Enable the DHE-RSA based ciphersuite modes in SSL / TLS |
| 239 | * |
| 240 | * Requires: POLARSSL_DHM_C, POLARSSL_RSA_C, POLARSSL_X509_PARSE_C |
| 241 | * |
| 242 | * This enables the following ciphersuites (if other requisites are |
| 243 | * enabled as well): |
| 244 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 245 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 246 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 247 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 248 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 249 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 250 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 251 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 252 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 253 | */ |
| 254 | #define POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED |
| 255 | |
| 256 | /** |
| 257 | * \def POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED |
| 258 | * |
| 259 | * Enable the ECDHE-RSA based ciphersuite modes in SSL / TLS |
| 260 | * |
| 261 | * Requires: POLARSSL_ECDH_C, POLARSSL_RSA_C, POLARSSL_X509_PARSE_C |
| 262 | * |
| 263 | * This enables the following ciphersuites (if other requisites are |
| 264 | * enabled as well): |
| 265 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 266 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
| 267 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
| 268 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 269 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 |
| 270 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 |
| 271 | * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 |
| 272 | * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
| 273 | * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 274 | * TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 |
| 275 | */ |
| 276 | #define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED |
| 277 | |
| 278 | /** |
Paul Bakker | 8fe40dc | 2013-02-02 12:43:08 +0100 | [diff] [blame] | 279 | * \def POLARSSL_ERROR_STRERROR_DUMMY |
| 280 | * |
| 281 | * Enable a dummy error function to make use of error_strerror() in |
| 282 | * third party libraries easier. |
| 283 | * |
| 284 | * Disable if you run into name conflicts and want to really remove the |
| 285 | * error_strerror() |
| 286 | */ |
| 287 | #define POLARSSL_ERROR_STRERROR_DUMMY |
| 288 | |
| 289 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 290 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 291 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 292 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 293 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 294 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 295 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 296 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 297 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 298 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 299 | * \def POLARSSL_FS_IO |
| 300 | * |
| 301 | * Enable functions that use the filesystem. |
| 302 | */ |
| 303 | #define POLARSSL_FS_IO |
| 304 | |
| 305 | /** |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 306 | * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 307 | * |
| 308 | * Do not add default entropy sources. These are the platform specific, |
| 309 | * hardclock and HAVEGE based poll functions. |
| 310 | * |
| 311 | * This is useful to have more control over the added entropy sources in an |
| 312 | * application. |
| 313 | * |
| 314 | * Uncomment this macro to prevent loading of default entropy functions. |
| 315 | #define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 316 | */ |
| 317 | |
| 318 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 319 | * \def POLARSSL_NO_PLATFORM_ENTROPY |
| 320 | * |
| 321 | * Do not use built-in platform entropy functions. |
| 322 | * This is useful if your platform does not support |
| 323 | * standards like the /dev/urandom or Windows CryptoAPI. |
| 324 | * |
| 325 | * Uncomment this macro to disable the built-in platform entropy functions. |
| 326 | #define POLARSSL_NO_PLATFORM_ENTROPY |
| 327 | */ |
| 328 | |
| 329 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 330 | * \def POLARSSL_PKCS1_V21 |
| 331 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 332 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 333 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 334 | * Enable support for PKCS#1 v2.1 encoding. |
| 335 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 336 | */ |
| 337 | #define POLARSSL_PKCS1_V21 |
| 338 | |
| 339 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 340 | * \def POLARSSL_RSA_NO_CRT |
| 341 | * |
| 342 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 343 | * |
| 344 | * Uncomment this macro to disable the use of CRT in RSA. |
| 345 | * |
| 346 | #define POLARSSL_RSA_NO_CRT |
| 347 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 348 | |
| 349 | /** |
| 350 | * \def POLARSSL_SELF_TEST |
| 351 | * |
| 352 | * Enable the checkup functions (*_self_test). |
| 353 | */ |
| 354 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 355 | |
| 356 | /** |
Paul Bakker | 40865c8 | 2013-01-31 17:13:13 +0100 | [diff] [blame] | 357 | * \def POLARSSL_SSL_ALL_ALERT_MESSAGES |
| 358 | * |
| 359 | * Enable sending of alert messages in case of encountered errors as per RFC. |
| 360 | * If you choose not to send the alert messages, PolarSSL can still communicate |
| 361 | * with other servers, only debugging of failures is harder. |
| 362 | * |
| 363 | * The advantage of not sending alert messages, is that no information is given |
| 364 | * about reasons for failures thus preventing adversaries of gaining intel. |
| 365 | * |
| 366 | * Enable sending of all alert messages |
| 367 | */ |
| 368 | #define POLARSSL_SSL_ALERT_MESSAGES |
| 369 | |
| 370 | /** |
Paul Bakker | d66f070 | 2013-01-31 16:57:45 +0100 | [diff] [blame] | 371 | * \def POLARSSL_SSL_DEBUG_ALL |
| 372 | * |
| 373 | * Enable the debug messages in SSL module for all issues. |
| 374 | * Debug messages have been disabled in some places to prevent timing |
| 375 | * attacks due to (unbalanced) debugging function calls. |
| 376 | * |
| 377 | * If you need all error reporting you should enable this during debugging, |
| 378 | * but remove this for production servers that should log as well. |
| 379 | * |
| 380 | * Uncomment this macro to report all debug messages on errors introducing |
| 381 | * a timing side-channel. |
| 382 | * |
| 383 | #define POLARSSL_SSL_DEBUG_ALL |
| 384 | */ |
| 385 | |
| 386 | /** |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 387 | * \def POLARSSL_SSL_HW_RECORD_ACCEL |
| 388 | * |
| 389 | * Enable hooking functions in SSL module for hardware acceleration of |
| 390 | * individual records. |
| 391 | * |
| 392 | * Uncomment this macro to enable hooking functions. |
| 393 | #define POLARSSL_SSL_HW_RECORD_ACCEL |
| 394 | */ |
| 395 | |
| 396 | /** |
Paul Bakker | 78a8c71 | 2013-03-06 17:01:52 +0100 | [diff] [blame] | 397 | * \def POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO |
| 398 | * |
| 399 | * Enable support for receiving and parsing SSLv2 Client Hello messages for the |
| 400 | * SSL Server module (POLARSSL_SSL_SRV_C) |
| 401 | * |
| 402 | * Comment this macro to disable support for SSLv2 Client Hello messages. |
| 403 | */ |
| 404 | #define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO |
| 405 | |
| 406 | /** |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 407 | * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 408 | * |
| 409 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 410 | * and encountering an unknown critical extension. |
| 411 | * |
| 412 | * Uncomment to prevent an error. |
| 413 | * |
| 414 | #define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 415 | */ |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 416 | |
| 417 | /** |
| 418 | * \def POLARSSL_ZLIB_SUPPORT |
| 419 | * |
| 420 | * If set, the SSL/TLS module uses ZLIB to support compression and |
| 421 | * decompression of packet data. |
| 422 | * |
| 423 | * Used in: library/ssl_tls.c |
| 424 | * library/ssl_cli.c |
| 425 | * library/ssl_srv.c |
| 426 | * |
| 427 | * This feature requires zlib library and headers to be present. |
| 428 | * |
| 429 | * Uncomment to enable use of ZLIB |
| 430 | #define POLARSSL_ZLIB_SUPPORT |
| 431 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 432 | /* \} name */ |
| 433 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 434 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 435 | * \name SECTION: PolarSSL modules |
| 436 | * |
| 437 | * This section enables or disables entire modules in PolarSSL |
| 438 | * \{ |
| 439 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 440 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 441 | /** |
| 442 | * \def POLARSSL_AES_C |
| 443 | * |
| 444 | * Enable the AES block cipher. |
| 445 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 446 | * Module: library/aes.c |
| 447 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 448 | * library/pem.c |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 449 | * library/ctr_drbg.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 450 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 451 | * This module enables the following ciphersuites (if other requisites are |
| 452 | * enabled as well): |
| 453 | * TLS_RSA_WITH_AES_128_CBC_SHA |
| 454 | * TLS_RSA_WITH_AES_256_CBC_SHA |
| 455 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 456 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 457 | * TLS_RSA_WITH_AES_128_CBC_SHA256 |
| 458 | * TLS_RSA_WITH_AES_256_CBC_SHA256 |
| 459 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 460 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 461 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 462 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 463 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 464 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 465 | * TLS_PSK_WITH_AES_128_CBC_SHA |
| 466 | * TLS_PSK_WITH_AES_256_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 467 | * |
| 468 | * PEM uses AES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 469 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 470 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 471 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 472 | /** |
| 473 | * \def POLARSSL_ARC4_C |
| 474 | * |
| 475 | * Enable the ARCFOUR stream cipher. |
| 476 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 477 | * Module: library/arc4.c |
| 478 | * Caller: library/ssl_tls.c |
| 479 | * |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 480 | * This module enables the following ciphersuites (if other requisites are |
| 481 | * enabled as well): |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 482 | * TLS_RSA_WITH_RC4_128_MD5 |
| 483 | * TLS_RSA_WITH_RC4_128_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 484 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 485 | * TLS_PSK_WITH_RC4_128_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 486 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 487 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 488 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 489 | /** |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 490 | * \def POLARSSL_ASN1_PARSE_C |
| 491 | * |
| 492 | * Enable the generic ASN1 parser. |
| 493 | * |
| 494 | * Module: library/asn1.c |
| 495 | * Caller: library/x509parse.c |
| 496 | */ |
| 497 | #define POLARSSL_ASN1_PARSE_C |
| 498 | |
| 499 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 500 | * \def POLARSSL_ASN1_WRITE_C |
| 501 | * |
| 502 | * Enable the generic ASN1 writer. |
| 503 | * |
| 504 | * Module: library/asn1write.c |
| 505 | */ |
| 506 | #define POLARSSL_ASN1_WRITE_C |
| 507 | |
| 508 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 509 | * \def POLARSSL_BASE64_C |
| 510 | * |
| 511 | * Enable the Base64 module. |
| 512 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 513 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 514 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 515 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 516 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 517 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 518 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 519 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 520 | /** |
| 521 | * \def POLARSSL_BIGNUM_C |
| 522 | * |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 523 | * Enable the multi-precision integer library. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 524 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 525 | * Module: library/bignum.c |
| 526 | * Caller: library/dhm.c |
| 527 | * library/rsa.c |
| 528 | * library/ssl_tls.c |
| 529 | * library/x509parse.c |
| 530 | * |
| 531 | * This module is required for RSA and DHM support. |
| 532 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 533 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 534 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 535 | /** |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 536 | * \def POLARSSL_BLOWFISH_C |
| 537 | * |
| 538 | * Enable the Blowfish block cipher. |
| 539 | * |
| 540 | * Module: library/blowfish.c |
| 541 | */ |
| 542 | #define POLARSSL_BLOWFISH_C |
| 543 | |
| 544 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 545 | * \def POLARSSL_CAMELLIA_C |
| 546 | * |
| 547 | * Enable the Camellia block cipher. |
| 548 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 549 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 550 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 551 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 552 | * This module enables the following ciphersuites (if other requisites are |
| 553 | * enabled as well): |
| 554 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 555 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 556 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 557 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 558 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 559 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 560 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 561 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 562 | */ |
| 563 | #define POLARSSL_CAMELLIA_C |
| 564 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 565 | /** |
| 566 | * \def POLARSSL_CERTS_C |
| 567 | * |
| 568 | * Enable the test certificates. |
| 569 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 570 | * Module: library/certs.c |
| 571 | * Caller: |
| 572 | * |
| 573 | * This module is used for testing (ssl_client/server). |
| 574 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 575 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 576 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 577 | /** |
| 578 | * \def POLARSSL_CIPHER_C |
| 579 | * |
| 580 | * Enable the generic cipher layer. |
| 581 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 582 | * Module: library/cipher.c |
| 583 | * Caller: |
| 584 | * |
| 585 | * Uncomment to enable generic cipher wrappers. |
| 586 | */ |
| 587 | #define POLARSSL_CIPHER_C |
| 588 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 589 | /** |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 590 | * \def POLARSSL_CTR_DRBG_C |
| 591 | * |
| 592 | * Enable the CTR_DRBG AES-256-based random generator |
| 593 | * |
| 594 | * Module: library/ctr_drbg.c |
| 595 | * Caller: |
| 596 | * |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 597 | * Requires: POLARSSL_AES_C |
| 598 | * |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 599 | * This module provides the CTR_DRBG AES-256 random number generator. |
| 600 | */ |
| 601 | #define POLARSSL_CTR_DRBG_C |
| 602 | |
| 603 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 604 | * \def POLARSSL_DEBUG_C |
| 605 | * |
| 606 | * Enable the debug functions. |
| 607 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 608 | * Module: library/debug.c |
| 609 | * Caller: library/ssl_cli.c |
| 610 | * library/ssl_srv.c |
| 611 | * library/ssl_tls.c |
| 612 | * |
| 613 | * This module provides debugging functions. |
| 614 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 615 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 616 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 617 | /** |
| 618 | * \def POLARSSL_DES_C |
| 619 | * |
| 620 | * Enable the DES block cipher. |
| 621 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 622 | * Module: library/des.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 623 | * Caller: library/pem.c |
| 624 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 625 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 626 | * This module enables the following ciphersuites (if other requisites are |
| 627 | * enabled as well): |
| 628 | * TLS_RSA_WITH_3DES_EDE_CBC_SHA |
| 629 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 630 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | d4a56ec | 2013-04-16 18:05:29 +0200 | [diff] [blame] | 631 | * TLS_PSK_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 632 | * |
| 633 | * PEM uses DES/3DES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 634 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 635 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 636 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 637 | /** |
| 638 | * \def POLARSSL_DHM_C |
| 639 | * |
| 640 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 641 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 642 | * Module: library/dhm.c |
| 643 | * Caller: library/ssl_cli.c |
| 644 | * library/ssl_srv.c |
| 645 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 646 | * This module enables the following ciphersuites (if other requisites are |
| 647 | * enabled as well): |
| 648 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
| 649 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 650 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 651 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 652 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 653 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 654 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 655 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 656 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 657 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 658 | * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
| 659 | * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 660 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 661 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 662 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 663 | /** |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 664 | * \def POLARSSL_ECDH_C |
| 665 | * |
| 666 | * Enable the elliptic curve Diffie-Hellman library. |
| 667 | * |
| 668 | * Module: library/ecdh.c |
Paul Bakker | 41c83d3 | 2013-03-20 14:39:14 +0100 | [diff] [blame] | 669 | * Caller: library/ssl_cli.c |
| 670 | * library/ssl_srv.c |
| 671 | * |
| 672 | * This module enables the following ciphersuites (if other requisites are |
| 673 | * enabled as well): |
| 674 | * TLS_ECDHE_RSA_WITH_NULL_SHA |
| 675 | * TLS_ECDHE_RSA_WITH_RC4_128_SHA |
| 676 | * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 677 | * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
| 678 | * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 679 | * |
| 680 | * Requires: POLARSSL_ECP_C |
| 681 | */ |
| 682 | #define POLARSSL_ECDH_C |
| 683 | |
| 684 | /** |
| 685 | * \def POLARSSL_ECDSA_C |
| 686 | * |
| 687 | * Enable the elliptic curve DSA library. |
| 688 | * |
| 689 | * Module: library/ecdsa.c |
| 690 | * Caller: |
| 691 | * |
| 692 | * Requires: POLARSSL_ECP_C |
| 693 | */ |
| 694 | #define POLARSSL_ECDSA_C |
| 695 | |
| 696 | /** |
| 697 | * \def POLARSSL_ECP_C |
| 698 | * |
| 699 | * Enable the elliptic curve over GF(p) library. |
| 700 | * |
| 701 | * Module: library/ecp.c |
| 702 | * Caller: library/ecdh.c |
| 703 | * library/ecdsa.c |
| 704 | * |
| 705 | * Requires: POLARSSL_BIGNUM_C |
| 706 | */ |
| 707 | #define POLARSSL_ECP_C |
| 708 | |
| 709 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 710 | * \def POLARSSL_ENTROPY_C |
| 711 | * |
| 712 | * Enable the platform-specific entropy code. |
| 713 | * |
| 714 | * Module: library/entropy.c |
| 715 | * Caller: |
| 716 | * |
| 717 | * Requires: POLARSSL_SHA4_C |
| 718 | * |
| 719 | * This module provides a generic entropy pool |
| 720 | */ |
| 721 | #define POLARSSL_ENTROPY_C |
| 722 | |
| 723 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 724 | * \def POLARSSL_ERROR_C |
| 725 | * |
| 726 | * Enable error code to error string conversion. |
| 727 | * |
| 728 | * Module: library/error.c |
| 729 | * Caller: |
| 730 | * |
| 731 | * This module enables err_strerror(). |
| 732 | */ |
| 733 | #define POLARSSL_ERROR_C |
| 734 | |
| 735 | /** |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 736 | * \def POLARSSL_GCM_C |
| 737 | * |
| 738 | * Enable the Galois/Counter Mode (GCM) for AES |
| 739 | * |
| 740 | * Module: library/gcm.c |
| 741 | * |
| 742 | * Requires: POLARSSL_AES_C |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 743 | * |
| 744 | * This module enables the following ciphersuites (if other requisites are |
| 745 | * enabled as well): |
| 746 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 747 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 748 | */ |
| 749 | #define POLARSSL_GCM_C |
| 750 | |
| 751 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 752 | * \def POLARSSL_HAVEGE_C |
| 753 | * |
| 754 | * Enable the HAVEGE random generator. |
| 755 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 756 | * Module: library/havege.c |
| 757 | * Caller: |
| 758 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 759 | * Requires: POLARSSL_TIMING_C |
| 760 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 761 | * This module enables the HAVEGE random number generator. |
| 762 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 763 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 764 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 765 | /** |
| 766 | * \def POLARSSL_MD_C |
| 767 | * |
| 768 | * Enable the generic message digest layer. |
| 769 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 770 | * Module: library/md.c |
| 771 | * Caller: |
| 772 | * |
| 773 | * Uncomment to enable generic message digest wrappers. |
| 774 | */ |
| 775 | #define POLARSSL_MD_C |
| 776 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 777 | /** |
| 778 | * \def POLARSSL_MD2_C |
| 779 | * |
| 780 | * Enable the MD2 hash algorithm |
| 781 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 782 | * Module: library/md2.c |
| 783 | * Caller: library/x509parse.c |
| 784 | * |
| 785 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 786 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 787 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 788 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 789 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 790 | /** |
| 791 | * \def POLARSSL_MD4_C |
| 792 | * |
| 793 | * Enable the MD4 hash algorithm |
| 794 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 795 | * Module: library/md4.c |
| 796 | * Caller: library/x509parse.c |
| 797 | * |
| 798 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 799 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 800 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 801 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 802 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 803 | /** |
| 804 | * \def POLARSSL_MD5_C |
| 805 | * |
| 806 | * Enable the MD5 hash algorithm |
| 807 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 808 | * Module: library/md5.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 809 | * Caller: library/pem.c |
| 810 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 811 | * library/x509parse.c |
| 812 | * |
| 813 | * This module is required for SSL/TLS and X.509. |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 814 | * PEM uses MD5 for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 815 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 816 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 817 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 818 | /** |
| 819 | * \def POLARSSL_NET_C |
| 820 | * |
| 821 | * Enable the TCP/IP networking routines. |
| 822 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 823 | * Module: library/net.c |
| 824 | * Caller: |
| 825 | * |
| 826 | * This module provides TCP/IP networking routines. |
| 827 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 828 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 829 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 830 | /** |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 831 | * \def POLARSSL_OID_C |
| 832 | * |
| 833 | * Enable the OID database |
| 834 | * |
| 835 | * Module: library/oid.c |
| 836 | * Caller: library/rsa.c |
| 837 | * library/x509parse.c |
| 838 | * library/x509write.c |
| 839 | * |
| 840 | * This modules translates between OIDs and internal values. |
| 841 | */ |
| 842 | #define POLARSSL_OID_C |
| 843 | |
| 844 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 845 | * \def POLARSSL_PADLOCK_C |
| 846 | * |
| 847 | * Enable VIA Padlock support on x86. |
| 848 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 849 | * Module: library/padlock.c |
| 850 | * Caller: library/aes.c |
| 851 | * |
| 852 | * This modules adds support for the VIA PadLock on x86. |
| 853 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 854 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 855 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 856 | /** |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 857 | * \def POLARSSL_PBKDF2_C |
| 858 | * |
| 859 | * Enable PKCS#5 PBKDF2 key derivation function |
| 860 | * |
| 861 | * Module: library/pbkdf2.c |
| 862 | * |
| 863 | * Requires: POLARSSL_MD_C |
| 864 | * |
| 865 | * This module adds support for the PKCS#5 PBKDF2 key derivation function. |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 866 | */ |
Paul Bakker | 370e90c | 2013-04-08 15:19:43 +0200 | [diff] [blame] | 867 | #define POLARSSL_PBKDF2_C |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 868 | |
| 869 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 870 | * \def POLARSSL_PEM_C |
| 871 | * |
| 872 | * Enable PEM decoding |
| 873 | * |
| 874 | * Module: library/pem.c |
| 875 | * Caller: library/x509parse.c |
| 876 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 877 | * Requires: POLARSSL_BASE64_C |
| 878 | * |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 879 | * This modules adds support for decoding PEM files. |
| 880 | */ |
| 881 | #define POLARSSL_PEM_C |
| 882 | |
| 883 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 884 | * \def POLARSSL_PKCS11_C |
| 885 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 886 | * Enable wrapper for PKCS#11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 887 | * |
| 888 | * Module: library/ssl_srv.c |
| 889 | * Caller: library/ssl_cli.c |
| 890 | * library/ssl_srv.c |
| 891 | * |
| 892 | * Requires: POLARSSL_SSL_TLS_C |
| 893 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 894 | * This module enables SSL/TLS PKCS #11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 895 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
| 896 | #define POLARSSL_PKCS11_C |
| 897 | */ |
| 898 | |
| 899 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 900 | * \def POLARSSL_RSA_C |
| 901 | * |
| 902 | * Enable the RSA public-key cryptosystem. |
| 903 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 904 | * Module: library/rsa.c |
| 905 | * Caller: library/ssl_cli.c |
| 906 | * library/ssl_srv.c |
| 907 | * library/ssl_tls.c |
| 908 | * library/x509.c |
| 909 | * |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 910 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 911 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 912 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 913 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 914 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 915 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 916 | /** |
| 917 | * \def POLARSSL_SHA1_C |
| 918 | * |
| 919 | * Enable the SHA1 cryptographic hash algorithm. |
| 920 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 921 | * Module: library/sha1.c |
| 922 | * Caller: library/ssl_cli.c |
| 923 | * library/ssl_srv.c |
| 924 | * library/ssl_tls.c |
| 925 | * library/x509parse.c |
| 926 | * |
| 927 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 928 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 929 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 930 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 931 | /** |
| 932 | * \def POLARSSL_SHA2_C |
| 933 | * |
| 934 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 935 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 936 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 937 | * Caller: library/md_wrap.c |
| 938 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 939 | * |
| 940 | * This module adds support for SHA-224 and SHA-256. |
Paul Bakker | 769075d | 2012-11-24 11:26:46 +0100 | [diff] [blame] | 941 | * This module is required for the SSL/TLS 1.2 PRF function. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 942 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 943 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 944 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 945 | /** |
| 946 | * \def POLARSSL_SHA4_C |
| 947 | * |
| 948 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 949 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 950 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 951 | * Caller: library/md_wrap.c |
| 952 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 953 | * |
| 954 | * This module adds support for SHA-384 and SHA-512. |
| 955 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 956 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 957 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 958 | /** |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 959 | * \def POLARSSL_SSL_CACHE_C |
| 960 | * |
| 961 | * Enable simple SSL cache implementation. |
| 962 | * |
| 963 | * Module: library/ssl_cache.c |
| 964 | * Caller: |
| 965 | * |
| 966 | * Requires: POLARSSL_SSL_CACHE_C |
| 967 | */ |
| 968 | #define POLARSSL_SSL_CACHE_C |
| 969 | |
| 970 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 971 | * \def POLARSSL_SSL_CLI_C |
| 972 | * |
| 973 | * Enable the SSL/TLS client code. |
| 974 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 975 | * Module: library/ssl_cli.c |
| 976 | * Caller: |
| 977 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 978 | * Requires: POLARSSL_SSL_TLS_C |
| 979 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 980 | * This module is required for SSL/TLS client support. |
| 981 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 982 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 983 | |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 984 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 985 | * \def POLARSSL_SSL_SRV_C |
| 986 | * |
| 987 | * Enable the SSL/TLS server code. |
| 988 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 989 | * Module: library/ssl_srv.c |
| 990 | * Caller: |
| 991 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 992 | * Requires: POLARSSL_SSL_TLS_C |
| 993 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 994 | * This module is required for SSL/TLS server support. |
| 995 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 996 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 997 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 998 | /** |
| 999 | * \def POLARSSL_SSL_TLS_C |
| 1000 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 1001 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1002 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1003 | * Module: library/ssl_tls.c |
| 1004 | * Caller: library/ssl_cli.c |
| 1005 | * library/ssl_srv.c |
| 1006 | * |
Paul Bakker | 7ad00f9 | 2013-04-18 23:05:25 +0200 | [diff] [blame] | 1007 | * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1008 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1009 | * This module is required for SSL/TLS. |
| 1010 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1011 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1012 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1013 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1014 | * \def POLARSSL_TIMING_C |
| 1015 | * |
| 1016 | * Enable the portable timing interface. |
| 1017 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1018 | * Module: library/timing.c |
| 1019 | * Caller: library/havege.c |
| 1020 | * |
| 1021 | * This module is used by the HAVEGE random number generator. |
| 1022 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1023 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1024 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1025 | /** |
| 1026 | * \def POLARSSL_VERSION_C |
| 1027 | * |
| 1028 | * Enable run-time version information. |
| 1029 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 1030 | * Module: library/version.c |
| 1031 | * |
| 1032 | * This module provides run-time version information. |
| 1033 | */ |
| 1034 | #define POLARSSL_VERSION_C |
| 1035 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1036 | /** |
| 1037 | * \def POLARSSL_X509_PARSE_C |
| 1038 | * |
| 1039 | * Enable X.509 certificate parsing. |
| 1040 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1041 | * Module: library/x509parse.c |
| 1042 | * Caller: library/ssl_cli.c |
| 1043 | * library/ssl_srv.c |
| 1044 | * library/ssl_tls.c |
| 1045 | * |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 1046 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_OID_C, |
| 1047 | * POLARSSL_RSA_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 1048 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1049 | * This module is required for X.509 certificate parsing. |
| 1050 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 1051 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1052 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1053 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1054 | * \def POLARSSL_X509_WRITE_C |
| 1055 | * |
| 1056 | * Enable X.509 buffer writing. |
| 1057 | * |
| 1058 | * Module: library/x509write.c |
| 1059 | * |
Paul Bakker | c70b982 | 2013-04-07 22:00:46 +0200 | [diff] [blame] | 1060 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_OID_C, POLARSSL_RSA_C |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1061 | * |
| 1062 | * This module is required for X.509 certificate request writing. |
| 1063 | */ |
| 1064 | #define POLARSSL_X509_WRITE_C |
| 1065 | |
| 1066 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1067 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1068 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 1069 | * Enable the XTEA block cipher. |
| 1070 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 1071 | * Module: library/xtea.c |
| 1072 | * Caller: |
| 1073 | */ |
| 1074 | #define POLARSSL_XTEA_C |
Manuel Pégourié-Gonnard | 39d2adb | 2012-10-31 09:26:55 +0100 | [diff] [blame] | 1075 | |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 1076 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 1077 | |
Paul Bakker | 7ad00f9 | 2013-04-18 23:05:25 +0200 | [diff] [blame] | 1078 | /* |
| 1079 | * Sanity checks on defines and dependencies |
| 1080 | */ |
| 1081 | #if defined(POLARSSL_DHM_C) && !defined(POLARSSL_BIGNUM_C) |
| 1082 | #error "POLARSSL_DHM_C defined, but not all prerequisites" |
| 1083 | #endif |
| 1084 | |
| 1085 | #if defined(POLARSSL_CTR_DRBG_C) && !defined(POLARSSL_AES_C) |
| 1086 | #error "POLARSSL_CTR_DRBG_C defined, but not all prerequisites" |
| 1087 | #endif |
| 1088 | |
| 1089 | #if defined(POLARSSL_ECDH_C) && !defined(POLARSSL_ECP_C) |
| 1090 | #error "POLARSSL_ECDH_C defined, but not all prerequisites" |
| 1091 | #endif |
| 1092 | |
| 1093 | #if defined(POLARSSL_ECDSA_C) && !defined(POLARSSL_ECP_C) |
| 1094 | #error "POLARSSL_ECDSA_C defined, but not all prerequisites" |
| 1095 | #endif |
| 1096 | |
| 1097 | #if defined(POLARSSL_ECP_C) && !defined(POLARSSL_BIGNUM_C) |
| 1098 | #error "POLARSSL_ECP_C defined, but not all prerequisites" |
| 1099 | #endif |
| 1100 | |
| 1101 | #if defined(POLARSSL_ENTROPY_C) && !defined(POLARSSL_SHA4_C) |
| 1102 | #error "POLARSSL_ENTROPY_C defined, but not all prerequisites" |
| 1103 | #endif |
| 1104 | |
| 1105 | #if defined(POLARSSL_GCM_C) && !defined(POLARSSL_AES_C) |
| 1106 | #error "POLARSSL_GCM_C defined, but not all prerequisites" |
| 1107 | #endif |
| 1108 | |
Paul Bakker | e07f41d | 2013-04-19 09:08:57 +0200 | [diff] [blame] | 1109 | #if defined(POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED) && !defined(POLARSSL_DHM_C) |
| 1110 | #error "POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED defined, but not all prerequisites" |
| 1111 | #endif |
| 1112 | |
| 1113 | #if defined(POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED) && \ |
| 1114 | ( !defined(POLARSSL_DHM_C) || !defined(POLARSSL_RSA_C) || \ |
| 1115 | !defined(POLARSSL_X509_PARSE_C) ) |
| 1116 | #error "POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED defined, but not all prerequisites" |
| 1117 | #endif |
| 1118 | |
| 1119 | #if defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED) && \ |
| 1120 | ( !defined(POLARSSL_ECDH_C) || !defined(POLARSSL_RSA_C) || \ |
| 1121 | !defined(POLARSSL_X509_PARSE_C) ) |
| 1122 | #error "POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED defined, but not all prerequisites" |
| 1123 | #endif |
| 1124 | |
| 1125 | #if defined(POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED) && \ |
| 1126 | ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_X509_PARSE_C) ) |
| 1127 | #error "POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED defined, but not all prerequisites" |
| 1128 | #endif |
| 1129 | |
| 1130 | #if defined(POLARSSL_KEY_EXCHANGE_RSA_ENABLED) && \ |
| 1131 | ( !defined(POLARSSL_RSA_C) || !defined(POLARSSL_X509_PARSE_C) ) |
| 1132 | #error "POLARSSL_KEY_EXCHANGE_RSA_ENABLED defined, but not all prerequisites" |
| 1133 | #endif |
| 1134 | |
Paul Bakker | 7ad00f9 | 2013-04-18 23:05:25 +0200 | [diff] [blame] | 1135 | #if defined(POLARSSL_PBKDF2_C) && !defined(POLARSSL_MD_C) |
| 1136 | #error "POLARSSL_PBKDF2_C defined, but not all prerequisites" |
| 1137 | #endif |
| 1138 | |
| 1139 | #if defined(POLARSSL_PEM_C) && !defined(POLARSSL_PEM_C) |
| 1140 | #error "POLARSSL_PEM_C defined, but not all prerequisites" |
| 1141 | #endif |
| 1142 | |
| 1143 | #if defined(POLARSSL_PKCS11_C) && !defined(POLARSSL_SSL_TLS_C) |
| 1144 | #error "POLARSSL_PKCS11_C defined, but not all prerequisites" |
| 1145 | #endif |
| 1146 | |
| 1147 | #if defined(POLARSSL_RSA_C) && ( !defined(POLARSSL_BIGNUM_C) || \ |
| 1148 | !defined(POLARSSL_OID_C) ) |
| 1149 | #error "POLARSSL_RSA_C defined, but not all prerequisites" |
| 1150 | #endif |
| 1151 | |
| 1152 | #if defined(POLARSSL_SSL_CLI_C) && !defined(POLARSSL_SSL_TLS_C) |
| 1153 | #error "POLARSSL_SSL_CLI_C defined, but not all prerequisites" |
| 1154 | #endif |
| 1155 | |
| 1156 | #if defined(POLARSSL_SSL_TLS_C) && ( !defined(POLARSSL_MD5_C) || \ |
| 1157 | !defined(POLARSSL_SHA1_C) ) |
| 1158 | #error "POLARSSL_SSL_TLS_C defined, but not all prerequisites" |
| 1159 | #endif |
| 1160 | |
| 1161 | #if defined(POLARSSL_SSL_SRV_C) && !defined(POLARSSL_SSL_TLS_C) |
| 1162 | #error "POLARSSL_SSL_SRV_C defined, but not all prerequisites" |
| 1163 | #endif |
| 1164 | |
| 1165 | #if defined(POLARSSL_X509_PARSE_C) && ( !defined(POLARSSL_BIGNUM_C) || \ |
| 1166 | !defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_PARSE_C) || \ |
| 1167 | !defined(POLARSSL_RSA_C) ) |
| 1168 | #error "POLARSSL_X509_PARSE_C defined, but not all prerequisites" |
| 1169 | #endif |
| 1170 | |
| 1171 | #if defined(POLARSSL_X509_WRITE_C) && ( !defined(POLARSSL_BIGNUM_C) || \ |
| 1172 | !defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_WRITE_C) || \ |
| 1173 | !defined(POLARSSL_RSA_C) ) |
| 1174 | #error "POLARSSL_X509_WRITE_C defined, but not all prerequisites" |
| 1175 | #endif |
| 1176 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1177 | #endif /* config.h */ |