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 | /** |
| 64 | * \def POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 65 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 66 | * The compiler supports the use of long long. |
| 67 | * |
| 68 | * Uncomment if the compiler supports long long. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 69 | #define POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 70 | */ |
| 71 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 72 | /** |
| 73 | * \def POLARSSL_HAVE_ASM |
| 74 | * |
| 75 | * The compiler has support for asm() |
| 76 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 77 | * Uncomment to enable the use of assembly code. |
Paul Bakker | 68041ec | 2009-04-19 21:17:55 +0000 | [diff] [blame] | 78 | * |
| 79 | * Requires support for asm() in compiler. |
| 80 | * |
| 81 | * Used in: |
| 82 | * library/timing.c |
| 83 | * library/padlock.c |
| 84 | * include/polarssl/bn_mul.h |
| 85 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 86 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 87 | #define POLARSSL_HAVE_ASM |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 88 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 89 | /** |
| 90 | * \def POLARSSL_HAVE_SSE2 |
| 91 | * |
| 92 | * CPI supports SSE2 instruction set. |
| 93 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 94 | * Uncomment if the CPU supports SSE2 (IA-32 specific). |
| 95 | * |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 96 | #define POLARSSL_HAVE_SSE2 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 97 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 98 | /* \} name */ |
| 99 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 100 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 101 | * \name SECTION: PolarSSL feature support |
| 102 | * |
| 103 | * This section sets support for features that are or are not needed |
| 104 | * within the modules that are enabled. |
| 105 | * \{ |
| 106 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 107 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 108 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 109 | * \def POLARSSL_AES_ROM_TABLES |
| 110 | * |
| 111 | * Store the AES tables in ROM. |
| 112 | * |
| 113 | * Uncomment this macro to store the AES tables in ROM. |
| 114 | * |
| 115 | #define POLARSSL_AES_ROM_TABLES |
| 116 | */ |
| 117 | |
| 118 | /** |
Paul Bakker | b6ecaf5 | 2011-04-19 14:29:23 +0000 | [diff] [blame] | 119 | * \def POLARSSL_CIPHER_MODE_CFB |
| 120 | * |
| 121 | * Enable Cipher Feedback mode (CFB) for symmetric ciphers. |
| 122 | */ |
| 123 | #define POLARSSL_CIPHER_MODE_CFB |
| 124 | |
| 125 | /** |
| 126 | * \def POLARSSL_CIPHER_MODE_CTR |
| 127 | * |
| 128 | * Enable Counter Block Cipher mode (CTR) for symmetric ciphers. |
| 129 | */ |
| 130 | #define POLARSSL_CIPHER_MODE_CTR |
| 131 | |
| 132 | /** |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 133 | * \def POLARSSL_CIPHER_NULL_CIPHER |
| 134 | * |
| 135 | * Enable NULL cipher. |
| 136 | * Warning: Only do so when you know what you are doing. This allows for |
| 137 | * encryption or channels without any security! |
| 138 | * |
| 139 | * Requires POLARSSL_ENABLE_WEAK_CIPHERSUITES as well to enable |
| 140 | * the following ciphersuites: |
| 141 | * SSL_RSA_NULL_MD5 |
| 142 | * SSL_RSA_NULL_SHA |
| 143 | * SSL_RSA_NULL_SHA256 |
| 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 | * |
| 152 | * Enable weak ciphersuites in SSL / TLS (like RC4_40) |
| 153 | * Warning: Only do so when you know what you are doing. This allows for |
| 154 | * channels without virtually no security at all! |
| 155 | * |
| 156 | * This enables the following ciphersuites: |
| 157 | * SSL_RSA_DES_SHA |
| 158 | * SSL_EDH_RSA_DES_SHA |
| 159 | * |
| 160 | * Uncomment this macro to enable weak ciphersuites |
| 161 | #define POLARSSL_ENABLE_WEAK_CIPHERSUITES |
| 162 | */ |
| 163 | |
| 164 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 165 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 166 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 167 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 168 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 169 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 170 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 171 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 172 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 173 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 174 | * \def POLARSSL_FS_IO |
| 175 | * |
| 176 | * Enable functions that use the filesystem. |
| 177 | */ |
| 178 | #define POLARSSL_FS_IO |
| 179 | |
| 180 | /** |
Paul Bakker | 43655f4 | 2011-12-15 20:11:16 +0000 | [diff] [blame] | 181 | * \def POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 182 | * |
| 183 | * Do not add default entropy sources. These are the platform specific, |
| 184 | * hardclock and HAVEGE based poll functions. |
| 185 | * |
| 186 | * This is useful to have more control over the added entropy sources in an |
| 187 | * application. |
| 188 | * |
| 189 | * Uncomment this macro to prevent loading of default entropy functions. |
| 190 | #define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES |
| 191 | */ |
| 192 | |
| 193 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 194 | * \def POLARSSL_NO_PLATFORM_ENTROPY |
| 195 | * |
| 196 | * Do not use built-in platform entropy functions. |
| 197 | * This is useful if your platform does not support |
| 198 | * standards like the /dev/urandom or Windows CryptoAPI. |
| 199 | * |
| 200 | * Uncomment this macro to disable the built-in platform entropy functions. |
| 201 | #define POLARSSL_NO_PLATFORM_ENTROPY |
| 202 | */ |
| 203 | |
| 204 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 205 | * \def POLARSSL_PKCS1_V21 |
| 206 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 207 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 208 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 209 | * Enable support for PKCS#1 v2.1 encoding. |
| 210 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 211 | */ |
| 212 | #define POLARSSL_PKCS1_V21 |
| 213 | |
| 214 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 215 | * \def POLARSSL_RSA_NO_CRT |
| 216 | * |
| 217 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 218 | * |
| 219 | * Uncomment this macro to disable the use of CRT in RSA. |
| 220 | * |
| 221 | #define POLARSSL_RSA_NO_CRT |
| 222 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 223 | |
| 224 | /** |
| 225 | * \def POLARSSL_SELF_TEST |
| 226 | * |
| 227 | * Enable the checkup functions (*_self_test). |
| 228 | */ |
| 229 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 230 | |
| 231 | /** |
Paul Bakker | 05ef835 | 2012-05-08 09:17:57 +0000 | [diff] [blame] | 232 | * \def POLARSSL_SSL_HW_RECORD_ACCEL |
| 233 | * |
| 234 | * Enable hooking functions in SSL module for hardware acceleration of |
| 235 | * individual records. |
| 236 | * |
| 237 | * Uncomment this macro to enable hooking functions. |
| 238 | #define POLARSSL_SSL_HW_RECORD_ACCEL |
| 239 | */ |
| 240 | |
| 241 | /** |
Paul Bakker | 5c721f9 | 2011-07-27 16:51:09 +0000 | [diff] [blame] | 242 | * \def POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 243 | * |
| 244 | * If set, the X509 parser will not break-off when parsing an X509 certificate |
| 245 | * and encountering an unknown critical extension. |
| 246 | * |
| 247 | * Uncomment to prevent an error. |
| 248 | * |
| 249 | #define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION |
| 250 | */ |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 251 | |
| 252 | /** |
| 253 | * \def POLARSSL_ZLIB_SUPPORT |
| 254 | * |
| 255 | * If set, the SSL/TLS module uses ZLIB to support compression and |
| 256 | * decompression of packet data. |
| 257 | * |
| 258 | * Used in: library/ssl_tls.c |
| 259 | * library/ssl_cli.c |
| 260 | * library/ssl_srv.c |
| 261 | * |
| 262 | * This feature requires zlib library and headers to be present. |
| 263 | * |
| 264 | * Uncomment to enable use of ZLIB |
| 265 | #define POLARSSL_ZLIB_SUPPORT |
| 266 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 267 | /* \} name */ |
| 268 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 269 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 270 | * \name SECTION: PolarSSL modules |
| 271 | * |
| 272 | * This section enables or disables entire modules in PolarSSL |
| 273 | * \{ |
| 274 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 275 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 276 | /** |
| 277 | * \def POLARSSL_AES_C |
| 278 | * |
| 279 | * Enable the AES block cipher. |
| 280 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 281 | * Module: library/aes.c |
| 282 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 283 | * library/pem.c |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 284 | * library/ctr_drbg.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 285 | * |
| 286 | * This module enables the following ciphersuites: |
| 287 | * SSL_RSA_AES_128_SHA |
| 288 | * SSL_RSA_AES_256_SHA |
| 289 | * SSL_EDH_RSA_AES_256_SHA |
| 290 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 291 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 292 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 293 | /** |
| 294 | * \def POLARSSL_ARC4_C |
| 295 | * |
| 296 | * Enable the ARCFOUR stream cipher. |
| 297 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 298 | * Module: library/arc4.c |
| 299 | * Caller: library/ssl_tls.c |
| 300 | * |
| 301 | * This module enables the following ciphersuites: |
| 302 | * SSL_RSA_RC4_128_MD5 |
| 303 | * SSL_RSA_RC4_128_SHA |
| 304 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 305 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 306 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 307 | /** |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 308 | * \def POLARSSL_ASN1_PARSE_C |
| 309 | * |
| 310 | * Enable the generic ASN1 parser. |
| 311 | * |
| 312 | * Module: library/asn1.c |
| 313 | * Caller: library/x509parse.c |
| 314 | */ |
| 315 | #define POLARSSL_ASN1_PARSE_C |
| 316 | |
| 317 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 318 | * \def POLARSSL_ASN1_WRITE_C |
| 319 | * |
| 320 | * Enable the generic ASN1 writer. |
| 321 | * |
| 322 | * Module: library/asn1write.c |
| 323 | */ |
| 324 | #define POLARSSL_ASN1_WRITE_C |
| 325 | |
| 326 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 327 | * \def POLARSSL_BASE64_C |
| 328 | * |
| 329 | * Enable the Base64 module. |
| 330 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 331 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 332 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 333 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 334 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 335 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 336 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 337 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 338 | /** |
| 339 | * \def POLARSSL_BIGNUM_C |
| 340 | * |
| 341 | * Enable the multo-precision integer library. |
| 342 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 343 | * Module: library/bignum.c |
| 344 | * Caller: library/dhm.c |
| 345 | * library/rsa.c |
| 346 | * library/ssl_tls.c |
| 347 | * library/x509parse.c |
| 348 | * |
| 349 | * This module is required for RSA and DHM support. |
| 350 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 351 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 352 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 353 | /** |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 354 | * \def POLARSSL_BLOWFISH_C |
| 355 | * |
| 356 | * Enable the Blowfish block cipher. |
| 357 | * |
| 358 | * Module: library/blowfish.c |
| 359 | */ |
| 360 | #define POLARSSL_BLOWFISH_C |
| 361 | |
| 362 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 363 | * \def POLARSSL_CAMELLIA_C |
| 364 | * |
| 365 | * Enable the Camellia block cipher. |
| 366 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 367 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 368 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 369 | * |
| 370 | * This module enabled the following cipher suites: |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 371 | * SSL_RSA_CAMELLIA_128_SHA |
| 372 | * SSL_RSA_CAMELLIA_256_SHA |
| 373 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 374 | */ |
| 375 | #define POLARSSL_CAMELLIA_C |
| 376 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 377 | /** |
| 378 | * \def POLARSSL_CERTS_C |
| 379 | * |
| 380 | * Enable the test certificates. |
| 381 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 382 | * Module: library/certs.c |
| 383 | * Caller: |
| 384 | * |
| 385 | * This module is used for testing (ssl_client/server). |
| 386 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 387 | #define POLARSSL_CERTS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 388 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 389 | /** |
| 390 | * \def POLARSSL_CIPHER_C |
| 391 | * |
| 392 | * Enable the generic cipher layer. |
| 393 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 394 | * Module: library/cipher.c |
| 395 | * Caller: |
| 396 | * |
| 397 | * Uncomment to enable generic cipher wrappers. |
| 398 | */ |
| 399 | #define POLARSSL_CIPHER_C |
| 400 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 401 | /** |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 402 | * \def POLARSSL_CTR_DRBG_C |
| 403 | * |
| 404 | * Enable the CTR_DRBG AES-256-based random generator |
| 405 | * |
| 406 | * Module: library/ctr_drbg.c |
| 407 | * Caller: |
| 408 | * |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 409 | * Requires: POLARSSL_AES_C |
| 410 | * |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 411 | * This module provides the CTR_DRBG AES-256 random number generator. |
| 412 | */ |
| 413 | #define POLARSSL_CTR_DRBG_C |
| 414 | |
| 415 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 416 | * \def POLARSSL_DEBUG_C |
| 417 | * |
| 418 | * Enable the debug functions. |
| 419 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 420 | * Module: library/debug.c |
| 421 | * Caller: library/ssl_cli.c |
| 422 | * library/ssl_srv.c |
| 423 | * library/ssl_tls.c |
| 424 | * |
| 425 | * This module provides debugging functions. |
| 426 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 427 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 428 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 429 | /** |
| 430 | * \def POLARSSL_DES_C |
| 431 | * |
| 432 | * Enable the DES block cipher. |
| 433 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 434 | * Module: library/des.c |
| 435 | * Caller: library/ssl_tls.c |
| 436 | * |
| 437 | * This module enables the following ciphersuites: |
| 438 | * SSL_RSA_DES_168_SHA |
| 439 | * SSL_EDH_RSA_DES_168_SHA |
| 440 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 441 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 442 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 443 | /** |
| 444 | * \def POLARSSL_DHM_C |
| 445 | * |
| 446 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 447 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 448 | * Module: library/dhm.c |
| 449 | * Caller: library/ssl_cli.c |
| 450 | * library/ssl_srv.c |
| 451 | * |
| 452 | * This module enables the following ciphersuites: |
| 453 | * SSL_EDH_RSA_DES_168_SHA |
| 454 | * SSL_EDH_RSA_AES_256_SHA |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 455 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 456 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 457 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 458 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 459 | /** |
Paul Bakker | 6083fd2 | 2011-12-03 21:45:14 +0000 | [diff] [blame] | 460 | * \def POLARSSL_ENTROPY_C |
| 461 | * |
| 462 | * Enable the platform-specific entropy code. |
| 463 | * |
| 464 | * Module: library/entropy.c |
| 465 | * Caller: |
| 466 | * |
| 467 | * Requires: POLARSSL_SHA4_C |
| 468 | * |
| 469 | * This module provides a generic entropy pool |
| 470 | */ |
| 471 | #define POLARSSL_ENTROPY_C |
| 472 | |
| 473 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 474 | * \def POLARSSL_ERROR_C |
| 475 | * |
| 476 | * Enable error code to error string conversion. |
| 477 | * |
| 478 | * Module: library/error.c |
| 479 | * Caller: |
| 480 | * |
| 481 | * This module enables err_strerror(). |
| 482 | */ |
| 483 | #define POLARSSL_ERROR_C |
| 484 | |
| 485 | /** |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 486 | * \def POLARSSL_GCM_C |
| 487 | * |
| 488 | * Enable the Galois/Counter Mode (GCM) for AES |
| 489 | * |
| 490 | * Module: library/gcm.c |
| 491 | * |
| 492 | * Requires: POLARSSL_AES_C |
| 493 | */ |
| 494 | #define POLARSSL_GCM_C |
| 495 | |
| 496 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 497 | * \def POLARSSL_HAVEGE_C |
| 498 | * |
| 499 | * Enable the HAVEGE random generator. |
| 500 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 501 | * Module: library/havege.c |
| 502 | * Caller: |
| 503 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 504 | * Requires: POLARSSL_TIMING_C |
| 505 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 506 | * This module enables the HAVEGE random number generator. |
| 507 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 508 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 509 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 510 | /** |
| 511 | * \def POLARSSL_MD_C |
| 512 | * |
| 513 | * Enable the generic message digest layer. |
| 514 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 515 | * Module: library/md.c |
| 516 | * Caller: |
| 517 | * |
| 518 | * Uncomment to enable generic message digest wrappers. |
| 519 | */ |
| 520 | #define POLARSSL_MD_C |
| 521 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 522 | /** |
| 523 | * \def POLARSSL_MD2_C |
| 524 | * |
| 525 | * Enable the MD2 hash algorithm |
| 526 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 527 | * Module: library/md2.c |
| 528 | * Caller: library/x509parse.c |
| 529 | * |
| 530 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 531 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 532 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 533 | */ |
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 | /** |
| 536 | * \def POLARSSL_MD4_C |
| 537 | * |
| 538 | * Enable the MD4 hash algorithm |
| 539 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 540 | * Module: library/md4.c |
| 541 | * Caller: library/x509parse.c |
| 542 | * |
| 543 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 544 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 545 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 546 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 547 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 548 | /** |
| 549 | * \def POLARSSL_MD5_C |
| 550 | * |
| 551 | * Enable the MD5 hash algorithm |
| 552 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 553 | * Module: library/md5.c |
| 554 | * Caller: library/ssl_tls.c |
| 555 | * library/x509parse.c |
| 556 | * |
| 557 | * This module is required for SSL/TLS and X.509. |
| 558 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 559 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 560 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 561 | /** |
| 562 | * \def POLARSSL_NET_C |
| 563 | * |
| 564 | * Enable the TCP/IP networking routines. |
| 565 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 566 | * Module: library/net.c |
| 567 | * Caller: |
| 568 | * |
| 569 | * This module provides TCP/IP networking routines. |
| 570 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 571 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 572 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 573 | /** |
| 574 | * \def POLARSSL_PADLOCK_C |
| 575 | * |
| 576 | * Enable VIA Padlock support on x86. |
| 577 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 578 | * Module: library/padlock.c |
| 579 | * Caller: library/aes.c |
| 580 | * |
| 581 | * This modules adds support for the VIA PadLock on x86. |
| 582 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 583 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 584 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 585 | /** |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 586 | * \def POLARSSL_PBKDF2_C |
| 587 | * |
| 588 | * Enable PKCS#5 PBKDF2 key derivation function |
| 589 | * |
| 590 | * Module: library/pbkdf2.c |
| 591 | * |
| 592 | * Requires: POLARSSL_MD_C |
| 593 | * |
| 594 | * This module adds support for the PKCS#5 PBKDF2 key derivation function. |
| 595 | #define POLARSSL_PBKDF2_C |
| 596 | */ |
| 597 | |
| 598 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 599 | * \def POLARSSL_PEM_C |
| 600 | * |
| 601 | * Enable PEM decoding |
| 602 | * |
| 603 | * Module: library/pem.c |
| 604 | * Caller: library/x509parse.c |
| 605 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 606 | * Requires: POLARSSL_BASE64_C |
| 607 | * |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 608 | * This modules adds support for decoding PEM files. |
| 609 | */ |
| 610 | #define POLARSSL_PEM_C |
| 611 | |
| 612 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 613 | * \def POLARSSL_PKCS11_C |
| 614 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame^] | 615 | * Enable wrapper for PKCS#11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 616 | * |
| 617 | * Module: library/ssl_srv.c |
| 618 | * Caller: library/ssl_cli.c |
| 619 | * library/ssl_srv.c |
| 620 | * |
| 621 | * Requires: POLARSSL_SSL_TLS_C |
| 622 | * |
Paul Bakker | eb2c658 | 2012-09-27 19:15:01 +0000 | [diff] [blame^] | 623 | * This module enables SSL/TLS PKCS #11 smartcard support. |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 624 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
| 625 | #define POLARSSL_PKCS11_C |
| 626 | */ |
| 627 | |
| 628 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 629 | * \def POLARSSL_RSA_C |
| 630 | * |
| 631 | * Enable the RSA public-key cryptosystem. |
| 632 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 633 | * Module: library/rsa.c |
| 634 | * Caller: library/ssl_cli.c |
| 635 | * library/ssl_srv.c |
| 636 | * library/ssl_tls.c |
| 637 | * library/x509.c |
| 638 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 639 | * Requires: POLARSSL_BIGNUM_C |
| 640 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 641 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 642 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 643 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 644 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 645 | /** |
| 646 | * \def POLARSSL_SHA1_C |
| 647 | * |
| 648 | * Enable the SHA1 cryptographic hash algorithm. |
| 649 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 650 | * Module: library/sha1.c |
| 651 | * Caller: library/ssl_cli.c |
| 652 | * library/ssl_srv.c |
| 653 | * library/ssl_tls.c |
| 654 | * library/x509parse.c |
| 655 | * |
| 656 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 657 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 658 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 659 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 660 | /** |
| 661 | * \def POLARSSL_SHA2_C |
| 662 | * |
| 663 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 664 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 665 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 666 | * Caller: library/md_wrap.c |
| 667 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 668 | * |
| 669 | * This module adds support for SHA-224 and SHA-256. |
| 670 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 671 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 672 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 673 | /** |
| 674 | * \def POLARSSL_SHA4_C |
| 675 | * |
| 676 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 677 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 678 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 679 | * Caller: library/md_wrap.c |
| 680 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 681 | * |
| 682 | * This module adds support for SHA-384 and SHA-512. |
| 683 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 684 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 685 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 686 | /** |
Paul Bakker | 0a59707 | 2012-09-25 21:55:46 +0000 | [diff] [blame] | 687 | * \def POLARSSL_SSL_CACHE_C |
| 688 | * |
| 689 | * Enable simple SSL cache implementation. |
| 690 | * |
| 691 | * Module: library/ssl_cache.c |
| 692 | * Caller: |
| 693 | * |
| 694 | * Requires: POLARSSL_SSL_CACHE_C |
| 695 | */ |
| 696 | #define POLARSSL_SSL_CACHE_C |
| 697 | |
| 698 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 699 | * \def POLARSSL_SSL_CLI_C |
| 700 | * |
| 701 | * Enable the SSL/TLS client code. |
| 702 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 703 | * Module: library/ssl_cli.c |
| 704 | * Caller: |
| 705 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 706 | * Requires: POLARSSL_SSL_TLS_C |
| 707 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 708 | * This module is required for SSL/TLS client support. |
| 709 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 710 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 711 | |
| 712 | /* |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 713 | * \def POLARSSL_SSL_SRV_C |
| 714 | * |
| 715 | * Enable the SSL/TLS server code. |
| 716 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 717 | * Module: library/ssl_srv.c |
| 718 | * Caller: |
| 719 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 720 | * Requires: POLARSSL_SSL_TLS_C |
| 721 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 722 | * This module is required for SSL/TLS server support. |
| 723 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 724 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 725 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 726 | /** |
| 727 | * \def POLARSSL_SSL_TLS_C |
| 728 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 729 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 730 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 731 | * Module: library/ssl_tls.c |
| 732 | * Caller: library/ssl_cli.c |
| 733 | * library/ssl_srv.c |
| 734 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 735 | * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C |
| 736 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 737 | * This module is required for SSL/TLS. |
| 738 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 739 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 740 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 741 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 742 | * \def POLARSSL_TIMING_C |
| 743 | * |
| 744 | * Enable the portable timing interface. |
| 745 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 746 | * Module: library/timing.c |
| 747 | * Caller: library/havege.c |
| 748 | * |
| 749 | * This module is used by the HAVEGE random number generator. |
| 750 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 751 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 752 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 753 | /** |
| 754 | * \def POLARSSL_VERSION_C |
| 755 | * |
| 756 | * Enable run-time version information. |
| 757 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 758 | * Module: library/version.c |
| 759 | * |
| 760 | * This module provides run-time version information. |
| 761 | */ |
| 762 | #define POLARSSL_VERSION_C |
| 763 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 764 | /** |
| 765 | * \def POLARSSL_X509_PARSE_C |
| 766 | * |
| 767 | * Enable X.509 certificate parsing. |
| 768 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 769 | * Module: library/x509parse.c |
| 770 | * Caller: library/ssl_cli.c |
| 771 | * library/ssl_srv.c |
| 772 | * library/ssl_tls.c |
| 773 | * |
Paul Bakker | efc3029 | 2011-11-10 14:43:23 +0000 | [diff] [blame] | 774 | * Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 775 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 776 | * This module is required for X.509 certificate parsing. |
| 777 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 778 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 779 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 780 | /** |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 781 | * \def POLARSSL_X509_WRITE_C |
| 782 | * |
| 783 | * Enable X.509 buffer writing. |
| 784 | * |
| 785 | * Module: library/x509write.c |
| 786 | * |
| 787 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 788 | * |
| 789 | * This module is required for X.509 certificate request writing. |
| 790 | */ |
| 791 | #define POLARSSL_X509_WRITE_C |
| 792 | |
| 793 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 794 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 795 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 796 | * Enable the XTEA block cipher. |
| 797 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 798 | * Module: library/xtea.c |
| 799 | * Caller: |
| 800 | */ |
| 801 | #define POLARSSL_XTEA_C |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 802 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 803 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 804 | #endif /* config.h */ |