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 | 84f12b7 | 2010-07-18 10:13:04 +0000 | [diff] [blame] | 6 | * Copyright (C) 2006-2010, Brainspark B.V. |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 7 | * |
| 8 | * This file is part of PolarSSL (http://www.polarssl.org) |
Paul Bakker | 84f12b7 | 2010-07-18 10:13:04 +0000 | [diff] [blame] | 9 | * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 10 | * |
Paul Bakker | 77b385e | 2009-07-28 17:23:11 +0000 | [diff] [blame] | 11 | * All rights reserved. |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 12 | * |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by |
| 15 | * the Free Software Foundation; either version 2 of the License, or |
| 16 | * (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License along |
| 24 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 25 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 26 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 27 | * This set of compile-time options may be used to enable |
| 28 | * or disable features selectively, and reduce the global |
| 29 | * memory footprint. |
| 30 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 31 | #ifndef POLARSSL_CONFIG_H |
| 32 | #define POLARSSL_CONFIG_H |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 33 | |
| 34 | #ifndef _CRT_SECURE_NO_DEPRECATE |
| 35 | #define _CRT_SECURE_NO_DEPRECATE 1 |
| 36 | #endif |
| 37 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 38 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 39 | * \name SECTION: System support |
| 40 | * |
| 41 | * This section sets system specific settings. |
| 42 | * \{ |
| 43 | */ |
| 44 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 45 | /** |
| 46 | * \def POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 47 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 48 | * The system uses 8-bit wide native integers. |
| 49 | * |
| 50 | * Uncomment if native integers are 8-bit wide. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 51 | #define POLARSSL_HAVE_INT8 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 52 | */ |
| 53 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 54 | /** |
| 55 | * \def POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 56 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 57 | * The system uses 16-bit wide native integers. |
| 58 | * |
| 59 | * Uncomment if native integers are 16-bit wide. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 60 | #define POLARSSL_HAVE_INT16 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 61 | */ |
| 62 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 63 | /** |
| 64 | * \def POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 65 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 66 | * The compiler supports the use of long long. |
| 67 | * |
| 68 | * Uncomment if the compiler supports long long. |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 69 | #define POLARSSL_HAVE_LONGLONG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 70 | */ |
| 71 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 72 | /** |
| 73 | * \def POLARSSL_HAVE_ASM |
| 74 | * |
| 75 | * The compiler has support for asm() |
| 76 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 77 | * Uncomment to enable the use of assembly code. |
Paul Bakker | 68041ec | 2009-04-19 21:17:55 +0000 | [diff] [blame] | 78 | * |
| 79 | * Requires support for asm() in compiler. |
| 80 | * |
| 81 | * Used in: |
| 82 | * library/timing.c |
| 83 | * library/padlock.c |
| 84 | * include/polarssl/bn_mul.h |
| 85 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 86 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 87 | #define POLARSSL_HAVE_ASM |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 88 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 89 | /** |
| 90 | * \def POLARSSL_HAVE_SSE2 |
| 91 | * |
| 92 | * CPI supports SSE2 instruction set. |
| 93 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 94 | * Uncomment if the CPU supports SSE2 (IA-32 specific). |
| 95 | * |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 96 | #define POLARSSL_HAVE_SSE2 |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 97 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 98 | /* \} name */ |
| 99 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 100 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 101 | * \name SECTION: PolarSSL feature support |
| 102 | * |
| 103 | * This section sets support for features that are or are not needed |
| 104 | * within the modules that are enabled. |
| 105 | * \{ |
| 106 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 107 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 108 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 109 | * \def POLARSSL_AES_ROM_TABLES |
| 110 | * |
| 111 | * Store the AES tables in ROM. |
| 112 | * |
| 113 | * Uncomment this macro to store the AES tables in ROM. |
| 114 | * |
| 115 | #define POLARSSL_AES_ROM_TABLES |
| 116 | */ |
| 117 | |
| 118 | /** |
Paul Bakker | b6ecaf5 | 2011-04-19 14:29:23 +0000 | [diff] [blame] | 119 | * \def POLARSSL_CIPHER_MODE_CFB |
| 120 | * |
| 121 | * Enable Cipher Feedback mode (CFB) for symmetric ciphers. |
| 122 | */ |
| 123 | #define POLARSSL_CIPHER_MODE_CFB |
| 124 | |
| 125 | /** |
| 126 | * \def POLARSSL_CIPHER_MODE_CTR |
| 127 | * |
| 128 | * Enable Counter Block Cipher mode (CTR) for symmetric ciphers. |
| 129 | */ |
| 130 | #define POLARSSL_CIPHER_MODE_CTR |
| 131 | |
| 132 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 133 | * \def POLARSSL_DEBUG_MSG |
| 134 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 135 | * Requires: POLARSSL_DEBUG_C |
| 136 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 137 | * Enable all SSL/TLS debugging messages. |
| 138 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 139 | #define POLARSSL_DEBUG_MSG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 140 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 141 | /** |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 142 | * \def POLARSSL_GENPRIME |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 143 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 144 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 145 | * |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 146 | * Enable the RSA prime-number generation code. |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 147 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 148 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 149 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 150 | /** |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 151 | * \def POLARSSL_FS_IO |
| 152 | * |
| 153 | * Enable functions that use the filesystem. |
| 154 | */ |
| 155 | #define POLARSSL_FS_IO |
| 156 | |
| 157 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 158 | * \def POLARSSL_PKCS1_V21 |
| 159 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 160 | * Requires: POLARSSL_MD_C, POLARSSL_RSA_C |
| 161 | * |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 162 | * Enable support for PKCS#1 v2.1 encoding. |
| 163 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 164 | */ |
| 165 | #define POLARSSL_PKCS1_V21 |
| 166 | |
| 167 | /** |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame] | 168 | * \def POLARSSL_RSA_NO_CRT |
| 169 | * |
| 170 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 171 | * |
| 172 | * Uncomment this macro to disable the use of CRT in RSA. |
| 173 | * |
| 174 | #define POLARSSL_RSA_NO_CRT |
| 175 | */ |
Paul Bakker | 15566e4 | 2011-04-24 21:19:15 +0000 | [diff] [blame] | 176 | |
| 177 | /** |
| 178 | * \def POLARSSL_SELF_TEST |
| 179 | * |
| 180 | * Enable the checkup functions (*_self_test). |
| 181 | */ |
| 182 | #define POLARSSL_SELF_TEST |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 183 | /* \} name */ |
| 184 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 185 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 186 | * \name SECTION: PolarSSL modules |
| 187 | * |
| 188 | * This section enables or disables entire modules in PolarSSL |
| 189 | * \{ |
| 190 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 191 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 192 | /** |
| 193 | * \def POLARSSL_AES_C |
| 194 | * |
| 195 | * Enable the AES block cipher. |
| 196 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 197 | * Module: library/aes.c |
| 198 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 199 | * library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 200 | * |
| 201 | * This module enables the following ciphersuites: |
| 202 | * SSL_RSA_AES_128_SHA |
| 203 | * SSL_RSA_AES_256_SHA |
| 204 | * SSL_EDH_RSA_AES_256_SHA |
| 205 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 206 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 207 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 208 | /** |
| 209 | * \def POLARSSL_ARC4_C |
| 210 | * |
| 211 | * Enable the ARCFOUR stream cipher. |
| 212 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 213 | * Module: library/arc4.c |
| 214 | * Caller: library/ssl_tls.c |
| 215 | * |
| 216 | * This module enables the following ciphersuites: |
| 217 | * SSL_RSA_RC4_128_MD5 |
| 218 | * SSL_RSA_RC4_128_SHA |
| 219 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 220 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 221 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 222 | /** |
| 223 | * \def POLARSSL_BASE64_C |
| 224 | * |
| 225 | * Enable the Base64 module. |
| 226 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 227 | * Module: library/base64.c |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 228 | * Caller: library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 229 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 230 | * This module is required for PEM support (required by X.509). |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 231 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 232 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 233 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 234 | /** |
| 235 | * \def POLARSSL_BIGNUM_C |
| 236 | * |
| 237 | * Enable the multo-precision integer library. |
| 238 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 239 | * Module: library/bignum.c |
| 240 | * Caller: library/dhm.c |
| 241 | * library/rsa.c |
| 242 | * library/ssl_tls.c |
| 243 | * library/x509parse.c |
| 244 | * |
| 245 | * This module is required for RSA and DHM support. |
| 246 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 247 | #define POLARSSL_BIGNUM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 248 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 249 | /** |
| 250 | * \def POLARSSL_CAMELLIA_C |
| 251 | * |
| 252 | * Enable the Camellia block cipher. |
| 253 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 254 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 255 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 256 | * |
| 257 | * This module enabled the following cipher suites: |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 258 | * SSL_RSA_CAMELLIA_128_SHA |
| 259 | * SSL_RSA_CAMELLIA_256_SHA |
| 260 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 261 | */ |
| 262 | #define POLARSSL_CAMELLIA_C |
| 263 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 264 | /** |
| 265 | * \def POLARSSL_CERTS_C |
| 266 | * |
| 267 | * Enable the test certificates. |
| 268 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 269 | * Module: library/certs.c |
| 270 | * Caller: |
| 271 | * |
| 272 | * This module is used for testing (ssl_client/server). |
| 273 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 274 | #define POLARSSL_CERTS_C |
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_CIPHER_C |
| 278 | * |
| 279 | * Enable the generic cipher layer. |
| 280 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 281 | * Module: library/cipher.c |
| 282 | * Caller: |
| 283 | * |
| 284 | * Uncomment to enable generic cipher wrappers. |
| 285 | */ |
| 286 | #define POLARSSL_CIPHER_C |
| 287 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 288 | /** |
| 289 | * \def POLARSSL_DEBUG_C |
| 290 | * |
| 291 | * Enable the debug functions. |
| 292 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 293 | * Module: library/debug.c |
| 294 | * Caller: library/ssl_cli.c |
| 295 | * library/ssl_srv.c |
| 296 | * library/ssl_tls.c |
| 297 | * |
| 298 | * This module provides debugging functions. |
| 299 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 300 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 301 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 302 | /** |
| 303 | * \def POLARSSL_DES_C |
| 304 | * |
| 305 | * Enable the DES block cipher. |
| 306 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 307 | * Module: library/des.c |
| 308 | * Caller: library/ssl_tls.c |
| 309 | * |
| 310 | * This module enables the following ciphersuites: |
| 311 | * SSL_RSA_DES_168_SHA |
| 312 | * SSL_EDH_RSA_DES_168_SHA |
| 313 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 314 | #define POLARSSL_DES_C |
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_DHM_C |
| 318 | * |
| 319 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 320 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 321 | * Module: library/dhm.c |
| 322 | * Caller: library/ssl_cli.c |
| 323 | * library/ssl_srv.c |
| 324 | * |
| 325 | * This module enables the following ciphersuites: |
| 326 | * SSL_EDH_RSA_DES_168_SHA |
| 327 | * SSL_EDH_RSA_AES_256_SHA |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 328 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 329 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 330 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 331 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 332 | /** |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 333 | * \def POLARSSL_ERROR_C |
| 334 | * |
| 335 | * Enable error code to error string conversion. |
| 336 | * |
| 337 | * Module: library/error.c |
| 338 | * Caller: |
| 339 | * |
| 340 | * This module enables err_strerror(). |
| 341 | */ |
| 342 | #define POLARSSL_ERROR_C |
| 343 | |
| 344 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 345 | * \def POLARSSL_HAVEGE_C |
| 346 | * |
| 347 | * Enable the HAVEGE random generator. |
| 348 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 349 | * Module: library/havege.c |
| 350 | * Caller: |
| 351 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 352 | * Requires: POLARSSL_TIMING_C |
| 353 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 354 | * This module enables the HAVEGE random number generator. |
| 355 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 356 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 357 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 358 | /** |
| 359 | * \def POLARSSL_MD_C |
| 360 | * |
| 361 | * Enable the generic message digest layer. |
| 362 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 363 | * Module: library/md.c |
| 364 | * Caller: |
| 365 | * |
| 366 | * Uncomment to enable generic message digest wrappers. |
| 367 | */ |
| 368 | #define POLARSSL_MD_C |
| 369 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 370 | /** |
| 371 | * \def POLARSSL_MD2_C |
| 372 | * |
| 373 | * Enable the MD2 hash algorithm |
| 374 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 375 | * Module: library/md2.c |
| 376 | * Caller: library/x509parse.c |
| 377 | * |
| 378 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 379 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 380 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 381 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 382 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 383 | /** |
| 384 | * \def POLARSSL_MD4_C |
| 385 | * |
| 386 | * Enable the MD4 hash algorithm |
| 387 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 388 | * Module: library/md4.c |
| 389 | * Caller: library/x509parse.c |
| 390 | * |
| 391 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 392 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 393 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 394 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 395 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 396 | /** |
| 397 | * \def POLARSSL_MD5_C |
| 398 | * |
| 399 | * Enable the MD5 hash algorithm |
| 400 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 401 | * Module: library/md5.c |
| 402 | * Caller: library/ssl_tls.c |
| 403 | * library/x509parse.c |
| 404 | * |
| 405 | * This module is required for SSL/TLS and X.509. |
| 406 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 407 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 408 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 409 | /** |
| 410 | * \def POLARSSL_NET_C |
| 411 | * |
| 412 | * Enable the TCP/IP networking routines. |
| 413 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 414 | * Module: library/net.c |
| 415 | * Caller: |
| 416 | * |
| 417 | * This module provides TCP/IP networking routines. |
| 418 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 419 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 420 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 421 | /** |
| 422 | * \def POLARSSL_PADLOCK_C |
| 423 | * |
| 424 | * Enable VIA Padlock support on x86. |
| 425 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 426 | * Module: library/padlock.c |
| 427 | * Caller: library/aes.c |
| 428 | * |
| 429 | * This modules adds support for the VIA PadLock on x86. |
| 430 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 431 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 432 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 433 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 434 | * \def POLARSSL_PEM_C |
| 435 | * |
| 436 | * Enable PEM decoding |
| 437 | * |
| 438 | * Module: library/pem.c |
| 439 | * Caller: library/x509parse.c |
| 440 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 441 | * Requires: POLARSSL_BASE64_C |
| 442 | * |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 443 | * This modules adds support for decoding PEM files. |
| 444 | */ |
| 445 | #define POLARSSL_PEM_C |
| 446 | |
| 447 | /** |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 448 | * \def POLARSSL_PKCS11_C |
| 449 | * |
| 450 | * Enable support for PKCS#11 smartcard support. |
| 451 | * |
| 452 | * Module: library/ssl_srv.c |
| 453 | * Caller: library/ssl_cli.c |
| 454 | * library/ssl_srv.c |
| 455 | * |
| 456 | * Requires: POLARSSL_SSL_TLS_C |
| 457 | * |
| 458 | * This module is required for SSL/TLS PKCS #11 smartcard support. |
| 459 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
| 460 | #define POLARSSL_PKCS11_C |
| 461 | */ |
| 462 | |
| 463 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 464 | * \def POLARSSL_RSA_C |
| 465 | * |
| 466 | * Enable the RSA public-key cryptosystem. |
| 467 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 468 | * Module: library/rsa.c |
| 469 | * Caller: library/ssl_cli.c |
| 470 | * library/ssl_srv.c |
| 471 | * library/ssl_tls.c |
| 472 | * library/x509.c |
| 473 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 474 | * Requires: POLARSSL_BIGNUM_C |
| 475 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 476 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 477 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 478 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 479 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 480 | /** |
| 481 | * \def POLARSSL_SHA1_C |
| 482 | * |
| 483 | * Enable the SHA1 cryptographic hash algorithm. |
| 484 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 485 | * Module: library/sha1.c |
| 486 | * Caller: library/ssl_cli.c |
| 487 | * library/ssl_srv.c |
| 488 | * library/ssl_tls.c |
| 489 | * library/x509parse.c |
| 490 | * |
| 491 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 492 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 493 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 494 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 495 | /** |
| 496 | * \def POLARSSL_SHA2_C |
| 497 | * |
| 498 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 499 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 500 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 501 | * Caller: library/md_wrap.c |
| 502 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 503 | * |
| 504 | * This module adds support for SHA-224 and SHA-256. |
| 505 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 506 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 507 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 508 | /** |
| 509 | * \def POLARSSL_SHA4_C |
| 510 | * |
| 511 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 512 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 513 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 514 | * Caller: library/md_wrap.c |
| 515 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 516 | * |
| 517 | * This module adds support for SHA-384 and SHA-512. |
| 518 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 519 | #define POLARSSL_SHA4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 520 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 521 | /** |
| 522 | * \def POLARSSL_SSL_CLI_C |
| 523 | * |
| 524 | * Enable the SSL/TLS client code. |
| 525 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 526 | * Module: library/ssl_cli.c |
| 527 | * Caller: |
| 528 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 529 | * Requires: POLARSSL_SSL_TLS_C |
| 530 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 531 | * This module is required for SSL/TLS client support. |
| 532 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 533 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 534 | |
| 535 | /* |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 536 | * \def POLARSSL_SSL_SRV_C |
| 537 | * |
| 538 | * Enable the SSL/TLS server code. |
| 539 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 540 | * Module: library/ssl_srv.c |
| 541 | * Caller: |
| 542 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 543 | * Requires: POLARSSL_SSL_TLS_C |
| 544 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 545 | * This module is required for SSL/TLS server support. |
| 546 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 547 | #define POLARSSL_SSL_SRV_C |
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_SSL_TLS_C |
| 551 | * |
Paul Bakker | e29ab06 | 2011-05-18 13:26:54 +0000 | [diff] [blame] | 552 | * Enable the generic SSL/TLS code. |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 553 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 554 | * Module: library/ssl_tls.c |
| 555 | * Caller: library/ssl_cli.c |
| 556 | * library/ssl_srv.c |
| 557 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 558 | * Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_X509_PARSE_C |
| 559 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 560 | * This module is required for SSL/TLS. |
| 561 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 562 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 563 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 564 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 565 | * \def POLARSSL_TIMING_C |
| 566 | * |
| 567 | * Enable the portable timing interface. |
| 568 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 569 | * Module: library/timing.c |
| 570 | * Caller: library/havege.c |
| 571 | * |
| 572 | * This module is used by the HAVEGE random number generator. |
| 573 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 574 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 575 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 576 | /** |
| 577 | * \def POLARSSL_VERSION_C |
| 578 | * |
| 579 | * Enable run-time version information. |
| 580 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 581 | * Module: library/version.c |
| 582 | * |
| 583 | * This module provides run-time version information. |
| 584 | */ |
| 585 | #define POLARSSL_VERSION_C |
| 586 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 587 | /** |
| 588 | * \def POLARSSL_X509_PARSE_C |
| 589 | * |
| 590 | * Enable X.509 certificate parsing. |
| 591 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 592 | * Module: library/x509parse.c |
| 593 | * Caller: library/ssl_cli.c |
| 594 | * library/ssl_srv.c |
| 595 | * library/ssl_tls.c |
| 596 | * |
Paul Bakker | 5690efc | 2011-05-26 13:16:06 +0000 | [diff] [blame] | 597 | * Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C |
| 598 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 599 | * This module is required for X.509 certificate parsing. |
| 600 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 601 | #define POLARSSL_X509_PARSE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 602 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 603 | /** |
| 604 | * \def POLARSSL_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 605 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 606 | * Enable the XTEA block cipher. |
| 607 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 608 | * Module: library/xtea.c |
| 609 | * Caller: |
| 610 | */ |
| 611 | #define POLARSSL_XTEA_C |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 612 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 613 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 614 | #endif /* config.h */ |