2009-01-03 22:22:43 +01:00
|
|
|
/**
|
|
|
|
* \file config.h
|
|
|
|
*
|
|
|
|
* This set of compile-time options may be used to enable
|
|
|
|
* or disable features selectively, and reduce the global
|
|
|
|
* memory footprint.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#ifndef POLARSSL_CONFIG_H
|
|
|
|
#define POLARSSL_CONFIG_H
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
#ifndef _CRT_SECURE_NO_DEPRECATE
|
|
|
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Uncomment if native integers are 8-bit wide.
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_HAVE_INT8
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Uncomment if native integers are 16-bit wide.
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_HAVE_INT16
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Uncomment if the compiler supports long long.
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_HAVE_LONGLONG
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Uncomment to enable the use of assembly code.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_HAVE_ASM
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Uncomment if the CPU supports SSE2 (IA-32 specific).
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_HAVE_SSE2
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Enable all SSL/TLS debugging messages.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_DEBUG_MSG
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Enable the checkup functions (*_self_test).
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SELF_TEST
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Enable the prime-number generation code.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_GENPRIME
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Uncomment this macro to store the AES tables in ROM.
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_AES_ROM_TABLES
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/aes.c
|
|
|
|
* Caller: library/ssl_tls.c
|
|
|
|
*
|
|
|
|
* This module enables the following ciphersuites:
|
|
|
|
* SSL_RSA_AES_128_SHA
|
|
|
|
* SSL_RSA_AES_256_SHA
|
|
|
|
* SSL_EDH_RSA_AES_256_SHA
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_AES_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/arc4.c
|
|
|
|
* Caller: library/ssl_tls.c
|
|
|
|
*
|
|
|
|
* This module enables the following ciphersuites:
|
|
|
|
* SSL_RSA_RC4_128_MD5
|
|
|
|
* SSL_RSA_RC4_128_SHA
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_ARC4_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/base64.c
|
|
|
|
* Caller: library/x509parse.c
|
|
|
|
*
|
|
|
|
* This module is required for X.509 support.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_BASE64_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/bignum.c
|
|
|
|
* Caller: library/dhm.c
|
|
|
|
* library/rsa.c
|
|
|
|
* library/ssl_tls.c
|
|
|
|
* library/x509parse.c
|
|
|
|
*
|
|
|
|
* This module is required for RSA and DHM support.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_BIGNUM_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/certs.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module is used for testing (ssl_client/server).
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_CERTS_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/debug.c
|
|
|
|
* Caller: library/ssl_cli.c
|
|
|
|
* library/ssl_srv.c
|
|
|
|
* library/ssl_tls.c
|
|
|
|
*
|
|
|
|
* This module provides debugging functions.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_DEBUG_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/des.c
|
|
|
|
* Caller: library/ssl_tls.c
|
|
|
|
*
|
|
|
|
* This module enables the following ciphersuites:
|
|
|
|
* SSL_RSA_DES_168_SHA
|
|
|
|
* SSL_EDH_RSA_DES_168_SHA
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_DES_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/dhm.c
|
|
|
|
* Caller: library/ssl_cli.c
|
|
|
|
* library/ssl_srv.c
|
|
|
|
*
|
|
|
|
* This module enables the following ciphersuites:
|
|
|
|
* SSL_EDH_RSA_DES_168_SHA
|
|
|
|
* SSL_EDH_RSA_AES_256_SHA
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_DHM_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/havege.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module enables the HAVEGE random number generator.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_HAVEGE_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/md2.c
|
|
|
|
* Caller: library/x509parse.c
|
|
|
|
*
|
|
|
|
* Uncomment to enable support for (rare) MD2-signed X.509 certs.
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_MD2_C
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/md4.c
|
|
|
|
* Caller: library/x509parse.c
|
|
|
|
*
|
|
|
|
* Uncomment to enable support for (rare) MD4-signed X.509 certs.
|
|
|
|
*
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_MD4_C
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/md5.c
|
|
|
|
* Caller: library/ssl_tls.c
|
|
|
|
* library/x509parse.c
|
|
|
|
*
|
|
|
|
* This module is required for SSL/TLS and X.509.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_MD5_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/net.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module provides TCP/IP networking routines.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_NET_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/padlock.c
|
|
|
|
* Caller: library/aes.c
|
|
|
|
*
|
|
|
|
* This modules adds support for the VIA PadLock on x86.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_PADLOCK_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/rsa.c
|
|
|
|
* Caller: library/ssl_cli.c
|
|
|
|
* library/ssl_srv.c
|
|
|
|
* library/ssl_tls.c
|
|
|
|
* library/x509.c
|
|
|
|
*
|
|
|
|
* This module is required for SSL/TLS and MD5-signed certificates.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_RSA_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/sha1.c
|
|
|
|
* Caller: library/ssl_cli.c
|
|
|
|
* library/ssl_srv.c
|
|
|
|
* library/ssl_tls.c
|
|
|
|
* library/x509parse.c
|
|
|
|
*
|
|
|
|
* This module is required for SSL/TLS and SHA1-signed certificates.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SHA1_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/sha2.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module adds support for SHA-224 and SHA-256.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SHA2_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/sha4.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module adds support for SHA-384 and SHA-512.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SHA4_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/ssl_cli.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module is required for SSL/TLS client support.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SSL_CLI_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/ssl_srv.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module is required for SSL/TLS server support.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SSL_SRV_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/ssl_tls.c
|
|
|
|
* Caller: library/ssl_cli.c
|
|
|
|
* library/ssl_srv.c
|
|
|
|
*
|
|
|
|
* This module is required for SSL/TLS.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_SSL_TLS_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/timing.c
|
|
|
|
* Caller: library/havege.c
|
|
|
|
*
|
|
|
|
* This module is used by the HAVEGE random number generator.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_TIMING_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/x509parse.c
|
|
|
|
* Caller: library/ssl_cli.c
|
|
|
|
* library/ssl_srv.c
|
|
|
|
* library/ssl_tls.c
|
|
|
|
*
|
|
|
|
* This module is required for X.509 certificate parsing.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_X509_PARSE_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Module: library/x509_write.c
|
|
|
|
* Caller:
|
|
|
|
*
|
|
|
|
* This module is required for X.509 certificate writing.
|
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#define POLARSSL_X509_WRITE_C
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
#endif /* config.h */
|