blob: 2f557c1c4a638885ab54ce286176f3b99e808a76 [file] [log] [blame]
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +02001/*
2 * Custom compact configuration for TLS 1.0 with PSK and RC4
3 * Distinguishing features: no bignum, no PK, no X509.
4 *
Manuel Pégourié-Gonnard4d9b7842014-06-24 16:29:54 +02005 * WARNING: RC4 is in the process of being deprecated!
6 * This configuration is kept for testing purposes only, DO NOT USE it!
7 * For a safe and lean PSK-based configuration, see config-ccm-psk-tls1_2.h
8 *
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +02009 * See README.txt for usage instructions.
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020010 */
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020011#ifndef POLARSSL_CONFIG_H
12#define POLARSSL_CONFIG_H
13
14/* System support */
Manuel Pégourié-Gonnarda98af5e2015-04-09 14:40:46 +020015#define POLARSSL_HAVE_IPV6 /* Now mandatory for NET_C */
Manuel Pégourié-Gonnard0389b542014-06-24 22:22:50 +020016//#define POLARSSL_HAVE_TIME /* Optionnaly used in Hello messages */
17/* Other POLARSSL_HAVE_XXX flags irrelevant for this configuration */
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020018
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000019/* mbed TLS feature support */
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020020#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
21#define POLARSSL_SSL_PROTO_TLS1
Manuel Pégourié-Gonnard86b29082014-11-06 02:28:34 +010022#define POLARSSL_SSL_DISABLE_RENEGOTIATION
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020023
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000024/* mbed TLS modules */
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020025#define POLARSSL_AES_C
26#define POLARSSL_ARC4_C
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020027#define POLARSSL_CIPHER_C
28#define POLARSSL_CTR_DRBG_C
29#define POLARSSL_ENTROPY_C
30#define POLARSSL_MD_C
31#define POLARSSL_MD5_C
32#define POLARSSL_NET_C
Manuel Pégourié-Gonnard684e9dc2013-09-20 15:11:44 +020033#define POLARSSL_SHA1_C
34#define POLARSSL_SHA256_C
35#define POLARSSL_SSL_CLI_C
36#define POLARSSL_SSL_SRV_C
37#define POLARSSL_SSL_TLS_C
38
Manuel Pégourié-Gonnard725e7f42014-06-23 20:08:39 +020039#include "polarssl/check_config.h"
Manuel Pégourié-Gonnard14d55952014-04-30 12:35:08 +020040
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020041#endif /* POLARSSL_CONFIG_H */