PolarSSL
|
00001 00029 #ifndef POLARSSL_CONFIG_H 00030 #define POLARSSL_CONFIG_H 00031 00032 #ifndef _CRT_SECURE_NO_DEPRECATE 00033 #define _CRT_SECURE_NO_DEPRECATE 1 00034 #endif 00035 00036 /* 00037 * Uncomment if native integers are 8-bit wide. 00038 * 00039 #define POLARSSL_HAVE_INT8 00040 */ 00041 00042 /* 00043 * Uncomment if native integers are 16-bit wide. 00044 * 00045 #define POLARSSL_HAVE_INT16 00046 */ 00047 00048 /* 00049 * Uncomment if the compiler supports long long. 00050 * 00051 #define POLARSSL_HAVE_LONGLONG 00052 */ 00053 00054 /* 00055 * Uncomment to enable the use of assembly code. 00056 * 00057 * Requires support for asm() in compiler. 00058 * 00059 * Used in: 00060 * library/timing.c 00061 * library/padlock.c 00062 * include/polarssl/bn_mul.h 00063 * 00064 */ 00065 #define POLARSSL_HAVE_ASM 00066 00067 /* 00068 * Uncomment if the CPU supports SSE2 (IA-32 specific). 00069 * 00070 #define POLARSSL_HAVE_SSE2 00071 */ 00072 00073 /* 00074 * Enable all SSL/TLS debugging messages. 00075 */ 00076 #define POLARSSL_DEBUG_MSG 00077 00078 /* 00079 * Enable the checkup functions (*_self_test). 00080 */ 00081 #define POLARSSL_SELF_TEST 00082 00083 /* 00084 * Enable run-time version information functions 00085 */ 00086 #define POLARSSL_VERSION_C 00087 00088 /* 00089 * Enable the prime-number generation code. 00090 */ 00091 #define POLARSSL_GENPRIME 00092 00093 /* 00094 * Uncomment this macro to store the AES tables in ROM. 00095 * 00096 #define POLARSSL_AES_ROM_TABLES 00097 */ 00098 00099 /* 00100 * Module: library/aes.c 00101 * Caller: library/ssl_tls.c 00102 * 00103 * This module enables the following ciphersuites: 00104 * SSL_RSA_AES_128_SHA 00105 * SSL_RSA_AES_256_SHA 00106 * SSL_EDH_RSA_AES_256_SHA 00107 */ 00108 #define POLARSSL_AES_C 00109 00110 /* 00111 * Module: library/arc4.c 00112 * Caller: library/ssl_tls.c 00113 * 00114 * This module enables the following ciphersuites: 00115 * SSL_RSA_RC4_128_MD5 00116 * SSL_RSA_RC4_128_SHA 00117 */ 00118 #define POLARSSL_ARC4_C 00119 00120 /* 00121 * Module: library/base64.c 00122 * Caller: library/x509parse.c 00123 * 00124 * This module is required for X.509 support. 00125 */ 00126 #define POLARSSL_BASE64_C 00127 00128 /* 00129 * Module: library/bignum.c 00130 * Caller: library/dhm.c 00131 * library/rsa.c 00132 * library/ssl_tls.c 00133 * library/x509parse.c 00134 * 00135 * This module is required for RSA and DHM support. 00136 */ 00137 #define POLARSSL_BIGNUM_C 00138 00139 /* 00140 * Module: library/camellia.c 00141 * Caller: library/ssl_tls.c 00142 * 00143 * This module enabled the following cipher suites: 00144 * SSL_RSA_CAMELLIA_128_SHA 00145 * SSL_RSA_CAMELLIA_256_SHA 00146 * SSL_EDH_RSA_CAMELLIA_256_SHA 00147 */ 00148 #define POLARSSL_CAMELLIA_C 00149 00150 /* 00151 * Module: library/certs.c 00152 * Caller: 00153 * 00154 * This module is used for testing (ssl_client/server). 00155 */ 00156 #define POLARSSL_CERTS_C 00157 00158 /* 00159 * Module: library/debug.c 00160 * Caller: library/ssl_cli.c 00161 * library/ssl_srv.c 00162 * library/ssl_tls.c 00163 * 00164 * This module provides debugging functions. 00165 */ 00166 #define POLARSSL_DEBUG_C 00167 00168 /* 00169 * Module: library/des.c 00170 * Caller: library/ssl_tls.c 00171 * 00172 * This module enables the following ciphersuites: 00173 * SSL_RSA_DES_168_SHA 00174 * SSL_EDH_RSA_DES_168_SHA 00175 */ 00176 #define POLARSSL_DES_C 00177 00178 /* 00179 * Module: library/dhm.c 00180 * Caller: library/ssl_cli.c 00181 * library/ssl_srv.c 00182 * 00183 * This module enables the following ciphersuites: 00184 * SSL_EDH_RSA_DES_168_SHA 00185 * SSL_EDH_RSA_AES_256_SHA 00186 * SSL_EDH_RSA_CAMELLIA_256_SHA 00187 */ 00188 #define POLARSSL_DHM_C 00189 00190 /* 00191 * Module: library/havege.c 00192 * Caller: 00193 * 00194 * This module enables the HAVEGE random number generator. 00195 */ 00196 #define POLARSSL_HAVEGE_C 00197 00198 /* 00199 * Module: library/md2.c 00200 * Caller: library/x509parse.c 00201 * 00202 * Uncomment to enable support for (rare) MD2-signed X.509 certs. 00203 * 00204 #define POLARSSL_MD2_C 00205 */ 00206 00207 /* 00208 * Module: library/md4.c 00209 * Caller: library/x509parse.c 00210 * 00211 * Uncomment to enable support for (rare) MD4-signed X.509 certs. 00212 * 00213 #define POLARSSL_MD4_C 00214 */ 00215 00216 /* 00217 * Module: library/md5.c 00218 * Caller: library/ssl_tls.c 00219 * library/x509parse.c 00220 * 00221 * This module is required for SSL/TLS and X.509. 00222 */ 00223 #define POLARSSL_MD5_C 00224 00225 /* 00226 * Module: library/net.c 00227 * Caller: 00228 * 00229 * This module provides TCP/IP networking routines. 00230 */ 00231 #define POLARSSL_NET_C 00232 00233 /* 00234 * Module: library/padlock.c 00235 * Caller: library/aes.c 00236 * 00237 * This modules adds support for the VIA PadLock on x86. 00238 */ 00239 #define POLARSSL_PADLOCK_C 00240 00241 /* 00242 * Module: library/rsa.c 00243 * Caller: library/ssl_cli.c 00244 * library/ssl_srv.c 00245 * library/ssl_tls.c 00246 * library/x509.c 00247 * 00248 * This module is required for SSL/TLS and MD5-signed certificates. 00249 */ 00250 #define POLARSSL_RSA_C 00251 00252 /* 00253 * Module: library/sha1.c 00254 * Caller: library/ssl_cli.c 00255 * library/ssl_srv.c 00256 * library/ssl_tls.c 00257 * library/x509parse.c 00258 * 00259 * This module is required for SSL/TLS and SHA1-signed certificates. 00260 */ 00261 #define POLARSSL_SHA1_C 00262 00263 /* 00264 * Module: library/sha2.c 00265 * Caller: 00266 * 00267 * This module adds support for SHA-224 and SHA-256. 00268 */ 00269 #define POLARSSL_SHA2_C 00270 00271 /* 00272 * Module: library/sha4.c 00273 * Caller: 00274 * 00275 * This module adds support for SHA-384 and SHA-512. 00276 */ 00277 #define POLARSSL_SHA4_C 00278 00279 /* 00280 * Module: library/ssl_cli.c 00281 * Caller: 00282 * 00283 * This module is required for SSL/TLS client support. 00284 */ 00285 #define POLARSSL_SSL_CLI_C 00286 00287 /* 00288 * Module: library/ssl_srv.c 00289 * Caller: 00290 * 00291 * This module is required for SSL/TLS server support. 00292 */ 00293 #define POLARSSL_SSL_SRV_C 00294 00295 /* 00296 * Module: library/ssl_tls.c 00297 * Caller: library/ssl_cli.c 00298 * library/ssl_srv.c 00299 * 00300 * This module is required for SSL/TLS. 00301 */ 00302 #define POLARSSL_SSL_TLS_C 00303 00304 /* 00305 * Module: library/timing.c 00306 * Caller: library/havege.c 00307 * 00308 * This module is used by the HAVEGE random number generator. 00309 */ 00310 #define POLARSSL_TIMING_C 00311 00312 /* 00313 * Module: library/x509parse.c 00314 * Caller: library/ssl_cli.c 00315 * library/ssl_srv.c 00316 * library/ssl_tls.c 00317 * 00318 * This module is required for X.509 certificate parsing. 00319 */ 00320 #define POLARSSL_X509_PARSE_C 00321 00322 /* 00323 * Module: library/x509_write.c 00324 * Caller: 00325 * 00326 * This module is required for X.509 certificate writing. 00327 */ 00328 #define POLARSSL_X509_WRITE_C 00329 00330 /* 00331 * Module: library/xtea.c 00332 * Caller: 00333 */ 00334 #define POLARSSL_XTEA_C 00335 00336 #endif /* config.h */