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 | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 143 | * |
| 144 | * Uncomment this macro to enable the NULL cipher and ciphersuites |
| 145 | #define POLARSSL_CIPHER_NULL_CIPHER |
| 146 | */ |
| 147 | |
| 148 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 149 | * \def POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 150 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 151 | * Enable weak ciphersuites in SSL / TLS |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 152 | * 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] | 153 | * channels with virtually no security at all! |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 154 | * |
| 155 | * This enables the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 156 | * TLS_RSA_WITH_DES_CBC_SHA |
| 157 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 158 | * |
| 159 | * Uncomment this macro to enable weak ciphersuites |
| 160 | #define POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 161 | */ |
| 162 | |
| 163 | /** |
Paul Bakker | 8fe40dc | 2013-02-02 12:43:08 +0100 | [diff] [blame] | 164 | * \def POLARSSL_ERROR_STRERROR_DUMMY |
| 165 | * |
| 166 | * Enable a dummy error function to make use of error_strerror() in |
| 167 | * third party libraries easier. |
| 168 | * |
| 169 | * Disable if you run into name conflicts and want to really remove the |
| 170 | * error_strerror() |
| 171 | */ |
| 172 | #define POLARSSL_ERROR_STRERROR_DUMMY |
| 173 | |
| 174 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 175 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 176 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 177 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 178 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 179 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 180 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 181 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 182 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 183 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 184 | * \def POLARSSL_FS_IO |
| 185 | * |
| 186 | * Enable functions that use the filesystem. |
| 187 | */ |
| 188 | #define POLARSSL_FS_IO |
| 189 | |
| 190 | /** |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 191 | * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 192 | * |
| 193 | * Do not add default entropy sources. These are the platform specific, |
| 194 | * hardclock and HAVEGE based poll functions. |
| 195 | * |
| 196 | * This is useful to have more control over the added entropy sources in an |
| 197 | * application. |
| 198 | * |
| 199 | * Uncomment this macro to prevent loading of default entropy functions. |
| 200 | #define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 201 | */ |
| 202 | |
| 203 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 204 | * \def POLARSSL_NO_PLATFORM_ENTROPY |
| 205 | * |
| 206 | * Do not use built-in platform entropy functions. |
| 207 | * This is useful if your platform does not support |
| 208 | * standards like the /dev/urandom or Windows CryptoAPI. |
| 209 | * |
| 210 | * Uncomment this macro to disable the built-in platform entropy functions. |
| 211 | #define POLARSSL_NO_PLATFORM_ENTROPY |
| 212 | */ |
| 213 | |
| 214 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 215 | * \def POLARSSL_PKCS1_V21 |
| 216 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 217 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 218 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 219 | * Enable support for PKCS#1 v2.1 encoding. |
| 220 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 221 | */ |
| 222 | #define POLARSSL_PKCS1_V21 |
| 223 | |
| 224 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 225 | * \def POLARSSL_RSA_NO_CRT |
| 226 | * |
| 227 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 228 | * |
| 229 | * Uncomment this macro to disable the use of CRT in RSA. |
| 230 | * |
| 231 | #define POLARSSL_RSA_NO_CRT |
| 232 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 233 | |
| 234 | /** |
| 235 | * \def POLARSSL_SELF_TEST |
| 236 | * |
| 237 | * Enable the checkup functions (*_self_test). |
| 238 | */ |
| 239 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 240 | |
| 241 | /** |
Paul Bakker | 40865c8 | 2013-01-31 17:13:13 +0100 | [diff] [blame] | 242 | * \def POLARSSL_SSL_ALL_ALERT_MESSAGES |
| 243 | * |
| 244 | * Enable sending of alert messages in case of encountered errors as per RFC. |
| 245 | * If you choose not to send the alert messages, PolarSSL can still communicate |
| 246 | * with other servers, only debugging of failures is harder. |
| 247 | * |
| 248 | * The advantage of not sending alert messages, is that no information is given |
| 249 | * about reasons for failures thus preventing adversaries of gaining intel. |
| 250 | * |
| 251 | * Enable sending of all alert messages |
| 252 | */ |
| 253 | #define POLARSSL_SSL_ALERT_MESSAGES |
| 254 | |
| 255 | /** |
Paul Bakker | d66f070 | 2013-01-31 16:57:45 +0100 | [diff] [blame] | 256 | * \def POLARSSL_SSL_DEBUG_ALL |
| 257 | * |
| 258 | * Enable the debug messages in SSL module for all issues. |
| 259 | * Debug messages have been disabled in some places to prevent timing |
| 260 | * attacks due to (unbalanced) debugging function calls. |
| 261 | * |
| 262 | * If you need all error reporting you should enable this during debugging, |
| 263 | * but remove this for production servers that should log as well. |
| 264 | * |
| 265 | * Uncomment this macro to report all debug messages on errors introducing |
| 266 | * a timing side-channel. |
| 267 | * |
| 268 | #define POLARSSL_SSL_DEBUG_ALL |
| 269 | */ |
| 270 | |
| 271 | /** |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 272 | * \def POLARSSL_SSL_HW_RECORD_ACCEL |
| 273 | * |
| 274 | * Enable hooking functions in SSL module for hardware acceleration of |
| 275 | * individual records. |
| 276 | * |
| 277 | * Uncomment this macro to enable hooking functions. |
| 278 | #define POLARSSL_SSL_HW_RECORD_ACCEL |
| 279 | */ |
| 280 | |
| 281 | /** |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 282 | * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 283 | * |
| 284 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 285 | * and encountering an unknown critical extension. |
| 286 | * |
| 287 | * Uncomment to prevent an error. |
| 288 | * |
| 289 | #define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 290 | */ |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 291 | |
| 292 | /** |
| 293 | * \def POLARSSL_ZLIB_SUPPORT |
| 294 | * |
| 295 | * If set, the SSL/TLS module uses ZLIB to support compression and |
| 296 | * decompression of packet data. |
| 297 | * |
| 298 | * Used in: library/ssl_tls.c |
| 299 | * library/ssl_cli.c |
| 300 | * library/ssl_srv.c |
| 301 | * |
| 302 | * This feature requires zlib library and headers to be present. |
| 303 | * |
| 304 | * Uncomment to enable use of ZLIB |
| 305 | #define POLARSSL_ZLIB_SUPPORT |
| 306 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 307 | /* \} name */ |
| 308 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 309 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 310 | * \name SECTION: PolarSSL modules |
| 311 | * |
| 312 | * This section enables or disables entire modules in PolarSSL |
| 313 | * \{ |
| 314 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 315 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 316 | /** |
| 317 | * \def POLARSSL_AES_C |
| 318 | * |
| 319 | * Enable the AES block cipher. |
| 320 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 321 | * Module: library/aes.c |
| 322 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 323 | * library/pem.c |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 324 | * library/ctr_drbg.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 325 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 326 | * This module enables the following ciphersuites (if other requisites are |
| 327 | * enabled as well): |
| 328 | * TLS_RSA_WITH_AES_128_CBC_SHA |
| 329 | * TLS_RSA_WITH_AES_256_CBC_SHA |
| 330 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 331 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 332 | * TLS_RSA_WITH_AES_128_CBC_SHA256 |
| 333 | * TLS_RSA_WITH_AES_256_CBC_SHA256 |
| 334 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 335 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 336 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 337 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 338 | * |
| 339 | * PEM uses AES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 340 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 341 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 342 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 343 | /** |
| 344 | * \def POLARSSL_ARC4_C |
| 345 | * |
| 346 | * Enable the ARCFOUR stream cipher. |
| 347 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 348 | * Module: library/arc4.c |
| 349 | * Caller: library/ssl_tls.c |
| 350 | * |
| 351 | * This module enables the following ciphersuites: |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 352 | * TLS_RSA_WITH_RC4_128_MD5 |
| 353 | * TLS_RSA_WITH_RC4_128_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 354 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 355 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 356 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 357 | /** |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 358 | * \def POLARSSL_ASN1_PARSE_C |
| 359 | * |
| 360 | * Enable the generic ASN1 parser. |
| 361 | * |
| 362 | * Module: library/asn1.c |
| 363 | * Caller: library/x509parse.c |
| 364 | */ |
| 365 | #define POLARSSL_ASN1_PARSE_C |
| 366 | |
| 367 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 368 | * \def POLARSSL_ASN1_WRITE_C |
| 369 | * |
| 370 | * Enable the generic ASN1 writer. |
| 371 | * |
| 372 | * Module: library/asn1write.c |
| 373 | */ |
| 374 | #define POLARSSL_ASN1_WRITE_C |
| 375 | |
| 376 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 377 | * \def POLARSSL_BASE64_C |
| 378 | * |
| 379 | * Enable the Base64 module. |
| 380 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 381 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 382 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 383 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 384 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 385 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 386 | #define POLARSSL_BASE64_C |
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_BIGNUM_C |
| 390 | * |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 391 | * Enable the multi-precision integer library. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 392 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 393 | * Module: library/bignum.c |
| 394 | * Caller: library/dhm.c |
| 395 | * library/rsa.c |
| 396 | * library/ssl_tls.c |
| 397 | * library/x509parse.c |
| 398 | * |
| 399 | * This module is required for RSA and DHM support. |
| 400 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 401 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 402 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 403 | /** |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 404 | * \def POLARSSL_BLOWFISH_C |
| 405 | * |
| 406 | * Enable the Blowfish block cipher. |
| 407 | * |
| 408 | * Module: library/blowfish.c |
| 409 | */ |
| 410 | #define POLARSSL_BLOWFISH_C |
| 411 | |
| 412 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 413 | * \def POLARSSL_CAMELLIA_C |
| 414 | * |
| 415 | * Enable the Camellia block cipher. |
| 416 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 417 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 418 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 419 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 420 | * This module enables the following ciphersuites (if other requisites are |
| 421 | * enabled as well): |
| 422 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 423 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 424 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 425 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 426 | * TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 427 | * TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 428 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 429 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 430 | */ |
| 431 | #define POLARSSL_CAMELLIA_C |
| 432 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 433 | /** |
| 434 | * \def POLARSSL_CERTS_C |
| 435 | * |
| 436 | * Enable the test certificates. |
| 437 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 438 | * Module: library/certs.c |
| 439 | * Caller: |
| 440 | * |
| 441 | * This module is used for testing (ssl_client/server). |
| 442 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 443 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 444 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 445 | /** |
| 446 | * \def POLARSSL_CIPHER_C |
| 447 | * |
| 448 | * Enable the generic cipher layer. |
| 449 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 450 | * Module: library/cipher.c |
| 451 | * Caller: |
| 452 | * |
| 453 | * Uncomment to enable generic cipher wrappers. |
| 454 | */ |
| 455 | #define POLARSSL_CIPHER_C |
| 456 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 457 | /** |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 458 | * \def POLARSSL_CTR_DRBG_C |
| 459 | * |
| 460 | * Enable the CTR_DRBG AES-256-based random generator |
| 461 | * |
| 462 | * Module: library/ctr_drbg.c |
| 463 | * Caller: |
| 464 | * |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 465 | * Requires: POLARSSL_AES_C |
| 466 | * |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 467 | * This module provides the CTR_DRBG AES-256 random number generator. |
| 468 | */ |
| 469 | #define POLARSSL_CTR_DRBG_C |
| 470 | |
| 471 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 472 | * \def POLARSSL_DEBUG_C |
| 473 | * |
| 474 | * Enable the debug functions. |
| 475 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 476 | * Module: library/debug.c |
| 477 | * Caller: library/ssl_cli.c |
| 478 | * library/ssl_srv.c |
| 479 | * library/ssl_tls.c |
| 480 | * |
| 481 | * This module provides debugging functions. |
| 482 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 483 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 484 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 485 | /** |
| 486 | * \def POLARSSL_DES_C |
| 487 | * |
| 488 | * Enable the DES block cipher. |
| 489 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 490 | * Module: library/des.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 491 | * Caller: library/pem.c |
| 492 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 493 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 494 | * This module enables the following ciphersuites (if other requisites are |
| 495 | * enabled as well): |
| 496 | * TLS_RSA_WITH_3DES_EDE_CBC_SHA |
| 497 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 498 | * |
| 499 | * PEM uses DES/3DES for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 500 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 501 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 502 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 503 | /** |
| 504 | * \def POLARSSL_DHM_C |
| 505 | * |
| 506 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 507 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 508 | * Module: library/dhm.c |
| 509 | * Caller: library/ssl_cli.c |
| 510 | * library/ssl_srv.c |
| 511 | * |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 512 | * This module enables the following ciphersuites (if other requisites are |
| 513 | * enabled as well): |
| 514 | * TLS_DHE_RSA_WITH_DES_CBC_SHA |
| 515 | * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
| 516 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
| 517 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
| 518 | * TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
| 519 | * TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
| 520 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA |
| 521 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA |
| 522 | * TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 |
| 523 | * TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 |
| 524 | * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
| 525 | * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 526 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 527 | #define POLARSSL_DHM_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 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 530 | * \def POLARSSL_ENTROPY_C |
| 531 | * |
| 532 | * Enable the platform-specific entropy code. |
| 533 | * |
| 534 | * Module: library/entropy.c |
| 535 | * Caller: |
| 536 | * |
| 537 | * Requires: POLARSSL_SHA4_C |
| 538 | * |
| 539 | * This module provides a generic entropy pool |
| 540 | */ |
| 541 | #define POLARSSL_ENTROPY_C |
| 542 | |
| 543 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 544 | * \def POLARSSL_ERROR_C |
| 545 | * |
| 546 | * Enable error code to error string conversion. |
| 547 | * |
| 548 | * Module: library/error.c |
| 549 | * Caller: |
| 550 | * |
| 551 | * This module enables err_strerror(). |
| 552 | */ |
| 553 | #define POLARSSL_ERROR_C |
| 554 | |
| 555 | /** |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 556 | * \def POLARSSL_GCM_C |
| 557 | * |
| 558 | * Enable the Galois/Counter Mode (GCM) for AES |
| 559 | * |
| 560 | * Module: library/gcm.c |
| 561 | * |
| 562 | * Requires: POLARSSL_AES_C |
Paul Bakker | 645ce3a | 2012-10-31 12:32:41 +0000 | [diff] [blame] | 563 | * |
| 564 | * This module enables the following ciphersuites (if other requisites are |
| 565 | * enabled as well): |
| 566 | * TLS_RSA_WITH_AES_128_GCM_SHA256 |
| 567 | * TLS_RSA_WITH_AES_256_GCM_SHA384 |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 568 | */ |
| 569 | #define POLARSSL_GCM_C |
| 570 | |
| 571 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 572 | * \def POLARSSL_HAVEGE_C |
| 573 | * |
| 574 | * Enable the HAVEGE random generator. |
| 575 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 576 | * Module: library/havege.c |
| 577 | * Caller: |
| 578 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 579 | * Requires: POLARSSL_TIMING_C |
| 580 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 581 | * This module enables the HAVEGE random number generator. |
| 582 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 583 | #define POLARSSL_HAVEGE_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 | /** |
| 586 | * \def POLARSSL_MD_C |
| 587 | * |
| 588 | * Enable the generic message digest layer. |
| 589 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 590 | * Module: library/md.c |
| 591 | * Caller: |
| 592 | * |
| 593 | * Uncomment to enable generic message digest wrappers. |
| 594 | */ |
| 595 | #define POLARSSL_MD_C |
| 596 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 597 | /** |
| 598 | * \def POLARSSL_MD2_C |
| 599 | * |
| 600 | * Enable the MD2 hash algorithm |
| 601 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 602 | * Module: library/md2.c |
| 603 | * Caller: library/x509parse.c |
| 604 | * |
| 605 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 606 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 607 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 608 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 609 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 610 | /** |
| 611 | * \def POLARSSL_MD4_C |
| 612 | * |
| 613 | * Enable the MD4 hash algorithm |
| 614 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 615 | * Module: library/md4.c |
| 616 | * Caller: library/x509parse.c |
| 617 | * |
| 618 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 619 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 620 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 621 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 622 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 623 | /** |
| 624 | * \def POLARSSL_MD5_C |
| 625 | * |
| 626 | * Enable the MD5 hash algorithm |
| 627 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 628 | * Module: library/md5.c |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 629 | * Caller: library/pem.c |
| 630 | * library/ssl_tls.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 631 | * library/x509parse.c |
| 632 | * |
| 633 | * This module is required for SSL/TLS and X.509. |
Paul Bakker | 6deb37e | 2013-02-19 13:17:08 +0100 | [diff] [blame] | 634 | * PEM uses MD5 for decrypting encrypted keys. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 635 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 636 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 637 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 638 | /** |
| 639 | * \def POLARSSL_NET_C |
| 640 | * |
| 641 | * Enable the TCP/IP networking routines. |
| 642 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 643 | * Module: library/net.c |
| 644 | * Caller: |
| 645 | * |
| 646 | * This module provides TCP/IP networking routines. |
| 647 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 648 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 649 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 650 | /** |
| 651 | * \def POLARSSL_PADLOCK_C |
| 652 | * |
| 653 | * Enable VIA Padlock support on x86. |
| 654 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 655 | * Module: library/padlock.c |
| 656 | * Caller: library/aes.c |
| 657 | * |
| 658 | * This modules adds support for the VIA PadLock on x86. |
| 659 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 660 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 661 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 662 | /** |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 663 | * \def POLARSSL_PBKDF2_C |
| 664 | * |
| 665 | * Enable PKCS#5 PBKDF2 key derivation function |
| 666 | * |
| 667 | * Module: library/pbkdf2.c |
| 668 | * |
| 669 | * Requires: POLARSSL_MD_C |
| 670 | * |
| 671 | * This module adds support for the PKCS#5 PBKDF2 key derivation function. |
| 672 | #define POLARSSL_PBKDF2_C |
| 673 | */ |
| 674 | |
| 675 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 676 | * \def POLARSSL_PEM_C |
| 677 | * |
| 678 | * Enable PEM decoding |
| 679 | * |
| 680 | * Module: library/pem.c |
| 681 | * Caller: library/x509parse.c |
| 682 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 683 | * Requires: POLARSSL_BASE64_C |
| 684 | * |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 685 | * This modules adds support for decoding PEM files. |
| 686 | */ |
| 687 | #define POLARSSL_PEM_C |
| 688 | |
| 689 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 690 | * \def POLARSSL_PKCS11_C |
| 691 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 692 | * Enable wrapper for PKCS#11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 693 | * |
| 694 | * Module: library/ssl_srv.c |
| 695 | * Caller: library/ssl_cli.c |
| 696 | * library/ssl_srv.c |
| 697 | * |
| 698 | * Requires: POLARSSL_SSL_TLS_C |
| 699 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame] | 700 | * This module enables SSL/TLS PKCS #11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 701 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
| 702 | #define POLARSSL_PKCS11_C |
| 703 | */ |
| 704 | |
| 705 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 706 | * \def POLARSSL_RSA_C |
| 707 | * |
| 708 | * Enable the RSA public-key cryptosystem. |
| 709 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 710 | * Module: library/rsa.c |
| 711 | * Caller: library/ssl_cli.c |
| 712 | * library/ssl_srv.c |
| 713 | * library/ssl_tls.c |
| 714 | * library/x509.c |
| 715 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 716 | * Requires: POLARSSL_BIGNUM_C |
| 717 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 718 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 719 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 720 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 721 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 722 | /** |
| 723 | * \def POLARSSL_SHA1_C |
| 724 | * |
| 725 | * Enable the SHA1 cryptographic hash algorithm. |
| 726 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 727 | * Module: library/sha1.c |
| 728 | * Caller: library/ssl_cli.c |
| 729 | * library/ssl_srv.c |
| 730 | * library/ssl_tls.c |
| 731 | * library/x509parse.c |
| 732 | * |
| 733 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 734 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 735 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 736 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 737 | /** |
| 738 | * \def POLARSSL_SHA2_C |
| 739 | * |
| 740 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 741 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 742 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 743 | * Caller: library/md_wrap.c |
| 744 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 745 | * |
| 746 | * This module adds support for SHA-224 and SHA-256. |
Paul Bakker | 769075d | 2012-11-24 11:26:46 +0100 | [diff] [blame] | 747 | * This module is required for the SSL/TLS 1.2 PRF function. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 748 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 749 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 750 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 751 | /** |
| 752 | * \def POLARSSL_SHA4_C |
| 753 | * |
| 754 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 755 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 756 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 757 | * Caller: library/md_wrap.c |
| 758 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 759 | * |
| 760 | * This module adds support for SHA-384 and SHA-512. |
| 761 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 762 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 763 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 764 | /** |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 765 | * \def POLARSSL_SSL_CACHE_C |
| 766 | * |
| 767 | * Enable simple SSL cache implementation. |
| 768 | * |
| 769 | * Module: library/ssl_cache.c |
| 770 | * Caller: |
| 771 | * |
| 772 | * Requires: POLARSSL_SSL_CACHE_C |
| 773 | */ |
| 774 | #define POLARSSL_SSL_CACHE_C |
| 775 | |
| 776 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 777 | * \def POLARSSL_SSL_CLI_C |
| 778 | * |
| 779 | * Enable the SSL/TLS client code. |
| 780 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 781 | * Module: library/ssl_cli.c |
| 782 | * Caller: |
| 783 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 784 | * Requires: POLARSSL_SSL_TLS_C |
| 785 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 786 | * This module is required for SSL/TLS client support. |
| 787 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 788 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 789 | |
Paul Bakker | 9a73632 | 2012-11-14 12:39:52 +0000 | [diff] [blame] | 790 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 791 | * \def POLARSSL_SSL_SRV_C |
| 792 | * |
| 793 | * Enable the SSL/TLS server code. |
| 794 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 795 | * Module: library/ssl_srv.c |
| 796 | * Caller: |
| 797 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 798 | * Requires: POLARSSL_SSL_TLS_C |
| 799 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 800 | * This module is required for SSL/TLS server support. |
| 801 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 802 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 803 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 804 | /** |
| 805 | * \def POLARSSL_SSL_TLS_C |
| 806 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 807 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 808 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 809 | * Module: library/ssl_tls.c |
| 810 | * Caller: library/ssl_cli.c |
| 811 | * library/ssl_srv.c |
| 812 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 813 | * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C |
| 814 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 815 | * This module is required for SSL/TLS. |
| 816 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 817 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 818 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 819 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 820 | * \def POLARSSL_TIMING_C |
| 821 | * |
| 822 | * Enable the portable timing interface. |
| 823 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 824 | * Module: library/timing.c |
| 825 | * Caller: library/havege.c |
| 826 | * |
| 827 | * This module is used by the HAVEGE random number generator. |
| 828 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 829 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 830 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 831 | /** |
| 832 | * \def POLARSSL_VERSION_C |
| 833 | * |
| 834 | * Enable run-time version information. |
| 835 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 836 | * Module: library/version.c |
| 837 | * |
| 838 | * This module provides run-time version information. |
| 839 | */ |
| 840 | #define POLARSSL_VERSION_C |
| 841 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 842 | /** |
| 843 | * \def POLARSSL_X509_PARSE_C |
| 844 | * |
| 845 | * Enable X.509 certificate parsing. |
| 846 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 847 | * Module: library/x509parse.c |
| 848 | * Caller: library/ssl_cli.c |
| 849 | * library/ssl_srv.c |
| 850 | * library/ssl_tls.c |
| 851 | * |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 852 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 853 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 854 | * This module is required for X.509 certificate parsing. |
| 855 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 856 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 857 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 858 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 859 | * \def POLARSSL_X509_WRITE_C |
| 860 | * |
| 861 | * Enable X.509 buffer writing. |
| 862 | * |
| 863 | * Module: library/x509write.c |
| 864 | * |
| 865 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 866 | * |
| 867 | * This module is required for X.509 certificate request writing. |
| 868 | */ |
| 869 | #define POLARSSL_X509_WRITE_C |
| 870 | |
| 871 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 872 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 873 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 874 | * Enable the XTEA block cipher. |
| 875 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 876 | * Module: library/xtea.c |
| 877 | * Caller: |
| 878 | */ |
| 879 | #define POLARSSL_XTEA_C |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 880 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 881 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 882 | #endif /* config.h */ |