diff --git a/configs/config-ccm-psk-tls1_2.h b/configs/config-ccm-psk-tls1_2.h new file mode 100644 index 000000000..67f32f862 --- /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 65871407d..fddfe65ea 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.