blob: ea8d7c3797b4b27e0cccb1e91e50e1b0566e6846 [file] [log] [blame]
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +02001/*
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +02002 * Minimal configuration for TLS 1.1 (RFC 4346)
3 *
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 *
6 * This file is part of mbed TLS (https://tls.mbed.org)
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22/*
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020023 * Minimal configuration for TLS 1.1 (RFC 4346), implementing only the
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020024 * required ciphersuite: MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020025 *
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020026 * See README.txt for usage instructions.
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020027 */
28
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020029#ifndef MBEDTLS_CONFIG_H
30#define MBEDTLS_CONFIG_H
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020031
32/* System support */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020033#define MBEDTLS_HAVE_ASM
34#define MBEDTLS_HAVE_TIME
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020035
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000036/* mbed TLS feature support */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020037#define MBEDTLS_CIPHER_MODE_CBC
38#define MBEDTLS_PKCS1_V15
39#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
40#define MBEDTLS_SSL_PROTO_TLS1_1
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020041
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000042/* mbed TLS modules */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020043#define MBEDTLS_AES_C
44#define MBEDTLS_ASN1_PARSE_C
45#define MBEDTLS_ASN1_WRITE_C
46#define MBEDTLS_BIGNUM_C
47#define MBEDTLS_CIPHER_C
48#define MBEDTLS_CTR_DRBG_C
49#define MBEDTLS_DES_C
50#define MBEDTLS_ENTROPY_C
51#define MBEDTLS_MD_C
52#define MBEDTLS_MD5_C
53#define MBEDTLS_NET_C
54#define MBEDTLS_OID_C
55#define MBEDTLS_PK_C
56#define MBEDTLS_PK_PARSE_C
57#define MBEDTLS_RSA_C
58#define MBEDTLS_SHA1_C
59#define MBEDTLS_SHA256_C
60#define MBEDTLS_SSL_CLI_C
61#define MBEDTLS_SSL_SRV_C
62#define MBEDTLS_SSL_TLS_C
63#define MBEDTLS_X509_CRT_PARSE_C
64#define MBEDTLS_X509_USE_C
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020065
66/* For test certificates */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020067#define MBEDTLS_BASE64_C
68#define MBEDTLS_CERTS_C
69#define MBEDTLS_PEM_PARSE_C
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020070
71/* For testing with compat.sh */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020072#define MBEDTLS_FS_IO
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020073
Manuel Pégourié-Gonnard7f809972015-03-09 17:05:11 +000074#include "mbedtls/check_config.h"
Manuel Pégourié-Gonnard14d55952014-04-30 12:35:08 +020075
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020076#endif /* MBEDTLS_CONFIG_H */