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