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 | /** |
| 109 | * \def POLARSSL_DEBUG_MSG |
| 110 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 111 | * Enable all SSL/TLS debugging messages. |
| 112 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 113 | #define POLARSSL_DEBUG_MSG |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 114 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 115 | /** |
| 116 | * \def POLARSSL_SELF_TEST |
| 117 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 118 | * Enable the checkup functions (*_self_test). |
| 119 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 120 | #define POLARSSL_SELF_TEST |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 121 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 122 | /** |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 123 | * \def POLARSSL_PKCS1_V21 |
| 124 | * |
| 125 | * Enable support for PKCS#1 v2.1 encoding. |
| 126 | * This enables support for RSAES-OAEP and RSASSA-PSS operations. |
| 127 | */ |
| 128 | #define POLARSSL_PKCS1_V21 |
| 129 | |
| 130 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 131 | * \def POLARSSL_GENPRIME |
| 132 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 133 | * Enable the prime-number generation code. |
| 134 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 135 | #define POLARSSL_GENPRIME |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 136 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 137 | /** |
| 138 | * \def POLARSSL_AES_ROM_TABLES |
| 139 | * |
| 140 | * Store the AES tables in ROM. |
| 141 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 142 | * Uncomment this macro to store the AES tables in ROM. |
| 143 | * |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 144 | #define POLARSSL_AES_ROM_TABLES |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 145 | */ |
Paul Bakker | 0216cc1 | 2011-03-26 13:40:23 +0000 | [diff] [blame^] | 146 | |
| 147 | /** |
| 148 | * \def POLARSSL_RSA_NO_CRT |
| 149 | * |
| 150 | * Do not use the Chinese Remainder Theorem for the RSA private operation. |
| 151 | * |
| 152 | * Uncomment this macro to disable the use of CRT in RSA. |
| 153 | * |
| 154 | #define POLARSSL_RSA_NO_CRT |
| 155 | */ |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 156 | /* \} name */ |
| 157 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 158 | /** |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 159 | * \name SECTION: PolarSSL modules |
| 160 | * |
| 161 | * This section enables or disables entire modules in PolarSSL |
| 162 | * \{ |
| 163 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 164 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 165 | /** |
| 166 | * \def POLARSSL_AES_C |
| 167 | * |
| 168 | * Enable the AES block cipher. |
| 169 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 170 | * Module: library/aes.c |
| 171 | * Caller: library/ssl_tls.c |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 172 | * library/pem.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 173 | * |
| 174 | * This module enables the following ciphersuites: |
| 175 | * SSL_RSA_AES_128_SHA |
| 176 | * SSL_RSA_AES_256_SHA |
| 177 | * SSL_EDH_RSA_AES_256_SHA |
| 178 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 179 | #define POLARSSL_AES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 180 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 181 | /** |
| 182 | * \def POLARSSL_ARC4_C |
| 183 | * |
| 184 | * Enable the ARCFOUR stream cipher. |
| 185 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 186 | * Module: library/arc4.c |
| 187 | * Caller: library/ssl_tls.c |
| 188 | * |
| 189 | * This module enables the following ciphersuites: |
| 190 | * SSL_RSA_RC4_128_MD5 |
| 191 | * SSL_RSA_RC4_128_SHA |
| 192 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 193 | #define POLARSSL_ARC4_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 194 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 195 | /** |
| 196 | * \def POLARSSL_BASE64_C |
| 197 | * |
| 198 | * Enable the Base64 module. |
| 199 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 200 | * Module: library/base64.c |
| 201 | * Caller: library/x509parse.c |
| 202 | * |
| 203 | * This module is required for X.509 support. |
| 204 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 205 | #define POLARSSL_BASE64_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 206 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 207 | /** |
| 208 | * \def POLARSSL_BIGNUM_C |
| 209 | * |
| 210 | * Enable the multo-precision integer library. |
| 211 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 212 | * Module: library/bignum.c |
| 213 | * Caller: library/dhm.c |
| 214 | * library/rsa.c |
| 215 | * library/ssl_tls.c |
| 216 | * library/x509parse.c |
| 217 | * |
| 218 | * This module is required for RSA and DHM support. |
| 219 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 220 | #define POLARSSL_BIGNUM_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_CAMELLIA_C |
| 224 | * |
| 225 | * Enable the Camellia block cipher. |
| 226 | * |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 227 | * Module: library/camellia.c |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 228 | * Caller: library/ssl_tls.c |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 229 | * |
| 230 | * This module enabled the following cipher suites: |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 231 | * SSL_RSA_CAMELLIA_128_SHA |
| 232 | * SSL_RSA_CAMELLIA_256_SHA |
| 233 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 38119b1 | 2009-01-10 23:31:23 +0000 | [diff] [blame] | 234 | */ |
| 235 | #define POLARSSL_CAMELLIA_C |
| 236 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 237 | /** |
| 238 | * \def POLARSSL_CERTS_C |
| 239 | * |
| 240 | * Enable the test certificates. |
| 241 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 242 | * Module: library/certs.c |
| 243 | * Caller: |
| 244 | * |
| 245 | * This module is used for testing (ssl_client/server). |
| 246 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 247 | #define POLARSSL_CERTS_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_CIPHER_C |
| 251 | * |
| 252 | * Enable the generic cipher layer. |
| 253 | * |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 254 | * Module: library/cipher.c |
| 255 | * Caller: |
| 256 | * |
| 257 | * Uncomment to enable generic cipher wrappers. |
| 258 | */ |
| 259 | #define POLARSSL_CIPHER_C |
| 260 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 261 | /** |
| 262 | * \def POLARSSL_DEBUG_C |
| 263 | * |
| 264 | * Enable the debug functions. |
| 265 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 266 | * Module: library/debug.c |
| 267 | * Caller: library/ssl_cli.c |
| 268 | * library/ssl_srv.c |
| 269 | * library/ssl_tls.c |
| 270 | * |
| 271 | * This module provides debugging functions. |
| 272 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 273 | #define POLARSSL_DEBUG_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 274 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 275 | /** |
| 276 | * \def POLARSSL_DES_C |
| 277 | * |
| 278 | * Enable the DES block cipher. |
| 279 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 280 | * Module: library/des.c |
| 281 | * Caller: library/ssl_tls.c |
| 282 | * |
| 283 | * This module enables the following ciphersuites: |
| 284 | * SSL_RSA_DES_168_SHA |
| 285 | * SSL_EDH_RSA_DES_168_SHA |
| 286 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 287 | #define POLARSSL_DES_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 288 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 289 | /** |
| 290 | * \def POLARSSL_DHM_C |
| 291 | * |
| 292 | * Enable the Diffie-Hellman-Merkle key exchange. |
| 293 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 294 | * Module: library/dhm.c |
| 295 | * Caller: library/ssl_cli.c |
| 296 | * library/ssl_srv.c |
| 297 | * |
| 298 | * This module enables the following ciphersuites: |
| 299 | * SSL_EDH_RSA_DES_168_SHA |
| 300 | * SSL_EDH_RSA_AES_256_SHA |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 301 | * SSL_EDH_RSA_CAMELLIA_256_SHA |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 302 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 303 | #define POLARSSL_DHM_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 304 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 305 | /** |
| 306 | * \def POLARSSL_HAVEGE_C |
| 307 | * |
| 308 | * Enable the HAVEGE random generator. |
| 309 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 310 | * Module: library/havege.c |
| 311 | * Caller: |
| 312 | * |
| 313 | * This module enables the HAVEGE random number generator. |
| 314 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 315 | #define POLARSSL_HAVEGE_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 316 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 317 | /** |
| 318 | * \def POLARSSL_MD_C |
| 319 | * |
| 320 | * Enable the generic message digest layer. |
| 321 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 322 | * Module: library/md.c |
| 323 | * Caller: |
| 324 | * |
| 325 | * Uncomment to enable generic message digest wrappers. |
| 326 | */ |
| 327 | #define POLARSSL_MD_C |
| 328 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 329 | /** |
| 330 | * \def POLARSSL_MD2_C |
| 331 | * |
| 332 | * Enable the MD2 hash algorithm |
| 333 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 334 | * Module: library/md2.c |
| 335 | * Caller: library/x509parse.c |
| 336 | * |
| 337 | * Uncomment to enable support for (rare) MD2-signed X.509 certs. |
| 338 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 339 | #define POLARSSL_MD2_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 340 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 341 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 342 | /** |
| 343 | * \def POLARSSL_MD4_C |
| 344 | * |
| 345 | * Enable the MD4 hash algorithm |
| 346 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 347 | * Module: library/md4.c |
| 348 | * Caller: library/x509parse.c |
| 349 | * |
| 350 | * Uncomment to enable support for (rare) MD4-signed X.509 certs. |
| 351 | * |
Paul Bakker | 13e2dfe | 2009-07-28 07:18:38 +0000 | [diff] [blame] | 352 | #define POLARSSL_MD4_C |
Paul Bakker | 6506aff | 2009-07-28 20:52:02 +0000 | [diff] [blame] | 353 | */ |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 354 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 355 | /** |
| 356 | * \def POLARSSL_MD5_C |
| 357 | * |
| 358 | * Enable the MD5 hash algorithm |
| 359 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 360 | * Module: library/md5.c |
| 361 | * Caller: library/ssl_tls.c |
| 362 | * library/x509parse.c |
| 363 | * |
| 364 | * This module is required for SSL/TLS and X.509. |
| 365 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 366 | #define POLARSSL_MD5_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 367 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 368 | /** |
| 369 | * \def POLARSSL_NET_C |
| 370 | * |
| 371 | * Enable the TCP/IP networking routines. |
| 372 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 373 | * Module: library/net.c |
| 374 | * Caller: |
| 375 | * |
| 376 | * This module provides TCP/IP networking routines. |
| 377 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 378 | #define POLARSSL_NET_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 379 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 380 | /** |
| 381 | * \def POLARSSL_PADLOCK_C |
| 382 | * |
| 383 | * Enable VIA Padlock support on x86. |
| 384 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 385 | * Module: library/padlock.c |
| 386 | * Caller: library/aes.c |
| 387 | * |
| 388 | * This modules adds support for the VIA PadLock on x86. |
| 389 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 390 | #define POLARSSL_PADLOCK_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 391 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 392 | /** |
Paul Bakker | 96743fc | 2011-02-12 14:30:57 +0000 | [diff] [blame] | 393 | * \def POLARSSL_PEM_C |
| 394 | * |
| 395 | * Enable PEM decoding |
| 396 | * |
| 397 | * Module: library/pem.c |
| 398 | * Caller: library/x509parse.c |
| 399 | * |
| 400 | * This modules adds support for decoding PEM files. |
| 401 | */ |
| 402 | #define POLARSSL_PEM_C |
| 403 | |
| 404 | /** |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 405 | * \def POLARSSL_RSA_C |
| 406 | * |
| 407 | * Enable the RSA public-key cryptosystem. |
| 408 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 409 | * Module: library/rsa.c |
| 410 | * Caller: library/ssl_cli.c |
| 411 | * library/ssl_srv.c |
| 412 | * library/ssl_tls.c |
| 413 | * library/x509.c |
| 414 | * |
| 415 | * This module is required for SSL/TLS and MD5-signed certificates. |
| 416 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 417 | #define POLARSSL_RSA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 418 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 419 | /** |
| 420 | * \def POLARSSL_SHA1_C |
| 421 | * |
| 422 | * Enable the SHA1 cryptographic hash algorithm. |
| 423 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 424 | * Module: library/sha1.c |
| 425 | * Caller: library/ssl_cli.c |
| 426 | * library/ssl_srv.c |
| 427 | * library/ssl_tls.c |
| 428 | * library/x509parse.c |
| 429 | * |
| 430 | * This module is required for SSL/TLS and SHA1-signed certificates. |
| 431 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 432 | #define POLARSSL_SHA1_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 433 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 434 | /** |
| 435 | * \def POLARSSL_SHA2_C |
| 436 | * |
| 437 | * Enable the SHA-224 and SHA-256 cryptographic hash algorithms. |
| 438 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 439 | * Module: library/sha2.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 440 | * Caller: library/md_wrap.c |
| 441 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 442 | * |
| 443 | * This module adds support for SHA-224 and SHA-256. |
| 444 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 445 | #define POLARSSL_SHA2_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 446 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 447 | /** |
| 448 | * \def POLARSSL_SHA4_C |
| 449 | * |
| 450 | * Enable the SHA-384 and SHA-512 cryptographic hash algorithms. |
| 451 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 452 | * Module: library/sha4.c |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 453 | * Caller: library/md_wrap.c |
| 454 | * library/x509parse.c |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 455 | * |
| 456 | * This module adds support for SHA-384 and SHA-512. |
| 457 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 458 | #define POLARSSL_SHA4_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 | /** |
| 461 | * \def POLARSSL_SSL_CLI_C |
| 462 | * |
| 463 | * Enable the SSL/TLS client code. |
| 464 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 465 | * Module: library/ssl_cli.c |
| 466 | * Caller: |
| 467 | * |
| 468 | * This module is required for SSL/TLS client support. |
| 469 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 470 | #define POLARSSL_SSL_CLI_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 471 | |
| 472 | /* |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 473 | * \def POLARSSL_SSL_SRV_C |
| 474 | * |
| 475 | * Enable the SSL/TLS server code. |
| 476 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 477 | * Module: library/ssl_srv.c |
| 478 | * Caller: |
| 479 | * |
| 480 | * This module is required for SSL/TLS server support. |
| 481 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 482 | #define POLARSSL_SSL_SRV_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 483 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 484 | /** |
| 485 | * \def POLARSSL_SSL_TLS_C |
| 486 | * |
| 487 | * Enable the generic SSL/RLS code. |
| 488 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 489 | * Module: library/ssl_tls.c |
| 490 | * Caller: library/ssl_cli.c |
| 491 | * library/ssl_srv.c |
| 492 | * |
| 493 | * This module is required for SSL/TLS. |
| 494 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 495 | #define POLARSSL_SSL_TLS_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 496 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 497 | /** |
| 498 | * \def POLARSSL_PKCS11_C |
| 499 | * |
| 500 | * Enable support for PKCS#11 smartcard support. |
| 501 | * |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 502 | * Module: library/ssl_srv.c |
| 503 | * Caller: library/ssl_cli.c |
| 504 | * library/ssl_srv.c |
| 505 | * |
| 506 | * This module is required for SSL/TLS PKCS #11 smartcard support. |
| 507 | * Requires the presence of the PKCS#11 helper library (libpkcs11-helper) |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 508 | #define POLARSSL_PKCS11_C |
Paul Bakker | f917e42 | 2011-01-18 16:15:25 +0000 | [diff] [blame] | 509 | */ |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 510 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 511 | /** |
| 512 | * \def POLARSSL_TIMING_C |
| 513 | * |
| 514 | * Enable the portable timing interface. |
| 515 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 516 | * Module: library/timing.c |
| 517 | * Caller: library/havege.c |
| 518 | * |
| 519 | * This module is used by the HAVEGE random number generator. |
| 520 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 521 | #define POLARSSL_TIMING_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 522 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 523 | /** |
| 524 | * \def POLARSSL_VERSION_C |
| 525 | * |
| 526 | * Enable run-time version information. |
| 527 | * |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 528 | * Module: library/version.c |
| 529 | * |
| 530 | * This module provides run-time version information. |
| 531 | */ |
| 532 | #define POLARSSL_VERSION_C |
| 533 | |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 534 | /** |
| 535 | * \def POLARSSL_X509_PARSE_C |
| 536 | * |
| 537 | * Enable X.509 certificate parsing. |
| 538 | * |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 539 | * Module: library/x509parse.c |
| 540 | * Caller: library/ssl_cli.c |
| 541 | * library/ssl_srv.c |
| 542 | * library/ssl_tls.c |
| 543 | * |
| 544 | * This module is required for X.509 certificate parsing. |
| 545 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 546 | #define POLARSSL_X509_PARSE_C |
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_XTEA_C |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 550 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 551 | * Enable the XTEA block cipher. |
| 552 | * |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 553 | * Module: library/xtea.c |
| 554 | * Caller: |
| 555 | */ |
| 556 | #define POLARSSL_XTEA_C |
Paul Bakker | 0a62cd1 | 2011-01-21 11:00:08 +0000 | [diff] [blame] | 557 | /* \} name */ |
Paul Bakker | 7a7c78f | 2009-01-04 18:15:48 +0000 | [diff] [blame] | 558 | |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 559 | #endif /* config.h */ |