From 1a74a26f77371d7d74751a0c55d9340ce10b6bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 24 Jun 2014 15:51:32 +0200 Subject: [PATCH] Add config based on PSK-CCM --- configs/config-ccm-psk-tls1_2.h | 35 +++++++++++++++++++++++++++++++ tests/scripts/test-ref-configs.pl | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 configs/config-ccm-psk-tls1_2.h diff --git a/configs/config-ccm-psk-tls1_2.h b/configs/config-ccm-psk-tls1_2.h new file mode 100644 index 0000000000..67f32f8620 --- /dev/null +++ b/configs/config-ccm-psk-tls1_2.h @@ -0,0 +1,35 @@ +/* + * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites + * + * See README.txt for usage instructions. + */ +#ifndef POLARSSL_CONFIG_H +#define POLARSSL_CONFIG_H + +/* System support */ +#define POLARSSL_HAVE_IPV6 +#define POLARSSL_HAVE_TIME + +/* PolarSSL feature support */ +#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED +#define POLARSSL_SSL_PROTO_TLS1_2 + +/* PolarSSL modules */ +#define POLARSSL_AES_C +#define POLARSSL_ASN1_PARSE_C +#define POLARSSL_ASN1_WRITE_C +#define POLARSSL_CCM_C +#define POLARSSL_CIPHER_C +#define POLARSSL_CTR_DRBG_C +#define POLARSSL_ENTROPY_C +#define POLARSSL_MD_C +#define POLARSSL_NET_C +#define POLARSSL_OID_C +#define POLARSSL_SHA256_C +#define POLARSSL_SSL_CLI_C +#define POLARSSL_SSL_SRV_C +#define POLARSSL_SSL_TLS_C + +#include "check_config.h" + +#endif /* POLARSSL_CONFIG_H */ diff --git a/tests/scripts/test-ref-configs.pl b/tests/scripts/test-ref-configs.pl index 65871407dc..fddfe65eac 100755 --- a/tests/scripts/test-ref-configs.pl +++ b/tests/scripts/test-ref-configs.pl @@ -19,6 +19,8 @@ my %configs = ( => "-m tls1_2 -f 'ECDHE-ECDSA.*AES.*GCM'", 'config-picocoin.h' => 0, + 'config-ccm-psk-tls1_2.h' + => '-m tls1_2 -f \'TLS-PSK.*AES.*CCM\'', ); # If no config-name is provided, use all known configs.