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