2009-01-03 22:22:43 +01:00
|
|
|
/**
|
|
|
|
* \file config.h
|
|
|
|
*
|
2011-01-06 13:28:03 +01:00
|
|
|
* \brief Configuration options (set of defines)
|
|
|
|
*
|
2010-07-18 12:13:04 +02:00
|
|
|
* Copyright (C) 2006-2010, Brainspark B.V.
|
2010-07-18 22:36:00 +02:00
|
|
|
*
|
|
|
|
* This file is part of PolarSSL (http://www.polarssl.org)
|
2010-07-18 12:13:04 +02:00
|
|
|
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
|
2010-07-18 22:36:00 +02:00
|
|
|
*
|
2009-07-28 19:23:11 +02:00
|
|
|
* All rights reserved.
|
2009-01-04 17:27:10 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2009-01-03 22:22:43 +01:00
|
|
|
* 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-04-19 23:17:55 +02:00
|
|
|
*
|
|
|
|
* Requires support for asm() in compiler.
|
|
|
|
*
|
|
|
|
* Used in:
|
|
|
|
* library/timing.c
|
|
|
|
* library/padlock.c
|
|
|
|
* include/polarssl/bn_mul.h
|
|
|
|
*
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
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
|
|
|
|
2010-06-19 00:47:29 +02:00
|
|
|
/*
|
|
|
|
* Enable run-time version information functions
|
|
|
|
*/
|
|
|
|
#define POLARSSL_VERSION_C
|
|
|
|
|
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
|
|
|
|
2009-01-11 00:31:23 +01:00
|
|
|
/*
|
|
|
|
* Module: library/camellia.c
|
2009-07-28 09:18:38 +02:00
|
|
|
* Caller: library/ssl_tls.c
|
2009-01-11 00:31:23 +01:00
|
|
|
*
|
|
|
|
* This module enabled the following cipher suites:
|
2009-07-28 09:18:38 +02:00
|
|
|
* SSL_RSA_CAMELLIA_128_SHA
|
|
|
|
* SSL_RSA_CAMELLIA_256_SHA
|
|
|
|
* SSL_EDH_RSA_CAMELLIA_256_SHA
|
2009-01-11 00:31:23 +01:00
|
|
|
*/
|
|
|
|
#define POLARSSL_CAMELLIA_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-07-28 09:18:38 +02:00
|
|
|
* SSL_EDH_RSA_CAMELLIA_256_SHA
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
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-07-28 09:18:38 +02:00
|
|
|
#define POLARSSL_MD2_C
|
2009-07-28 22:52:02 +02:00
|
|
|
*/
|
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-07-28 09:18:38 +02:00
|
|
|
#define POLARSSL_MD4_C
|
2009-07-28 22:52:02 +02:00
|
|
|
*/
|
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
|
|
|
|
2009-01-04 19:15:48 +01:00
|
|
|
/*
|
|
|
|
* Module: library/xtea.c
|
|
|
|
* Caller:
|
|
|
|
*/
|
|
|
|
#define POLARSSL_XTEA_C
|
|
|
|
|
2009-01-03 22:22:43 +01:00
|
|
|
#endif /* config.h */
|