blob: 1c7c4b44ce3dabbd0a82fa08102d3b29cafaafd4 [file] [log] [blame]
Manuel Pégourié-Gonnard1a74a262014-06-24 15:51:32 +02001/*
2 * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites
Manuel Pégourié-Gonnard0ac844c2014-06-24 16:30:49 +02003 * Distinguishing features:
4 * - no bignum, no PK, no X509
5 * - fully modern and secure (provided the pre-shared keys have high entropy)
6 * - very low record overhead if using the CCM-8 suites
7 * - optimized for low RAM usage
Manuel Pégourié-Gonnard1a74a262014-06-24 15:51:32 +02008 *
9 * See README.txt for usage instructions.
10 */
11#ifndef POLARSSL_CONFIG_H
12#define POLARSSL_CONFIG_H
13
14/* System support */
15#define POLARSSL_HAVE_IPV6
16#define POLARSSL_HAVE_TIME
17
18/* PolarSSL feature support */
19#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
20#define POLARSSL_SSL_PROTO_TLS1_2
21
22/* PolarSSL modules */
23#define POLARSSL_AES_C
Manuel Pégourié-Gonnard1a74a262014-06-24 15:51:32 +020024#define POLARSSL_CCM_C
25#define POLARSSL_CIPHER_C
26#define POLARSSL_CTR_DRBG_C
27#define POLARSSL_ENTROPY_C
28#define POLARSSL_MD_C
29#define POLARSSL_NET_C
Manuel Pégourié-Gonnard1a74a262014-06-24 15:51:32 +020030#define POLARSSL_SHA256_C
31#define POLARSSL_SSL_CLI_C
32#define POLARSSL_SSL_SRV_C
33#define POLARSSL_SSL_TLS_C
34
Manuel Pégourié-Gonnard0ac844c2014-06-24 16:30:49 +020035/* Save RAM at the expense of ROM */
36#define POLARSSL_AES_ROM_TABLES
37
38/*
39 * You should adjust this to the exact number of sources you're using: default
40 * is the "platform_entrpy_poll" source, but you may want to add other ones
41 */
42#define ENTROPY_MAX_SOURCES 1
43
44/*
45 * Save RAM at the expense of interoperability: do this only if you control
46 * both ends of the connection! (See coments in "polarssl/ssl.h".)
Manuel Pégourié-Gonnarde38eb0b2014-06-24 17:30:05 +020047 * The optimal size here depends on the typical size of records.
Manuel Pégourié-Gonnard0ac844c2014-06-24 16:30:49 +020048 */
49#define SSL_MAX_CONTENT_LEN 512
50
Manuel Pégourié-Gonnard1a74a262014-06-24 15:51:32 +020051#include "check_config.h"
52
53#endif /* POLARSSL_CONFIG_H */