tls13: Disable MBEDTLS_SSL_EARLY_DATA by default
Eventually we want it to be enabled by default when TLS 1.3 is enabled but currently the feature is on development thus it should not be enabled by default. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
339406daf9
commit
c2e110f445
2 changed files with 8 additions and 1 deletions
|
@ -1648,7 +1648,7 @@
|
||||||
* production.
|
* production.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_EARLY_DATA
|
//#define MBEDTLS_SSL_EARLY_DATA
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_SSL_PROTO_DTLS
|
* \def MBEDTLS_SSL_PROTO_DTLS
|
||||||
|
|
|
@ -3250,6 +3250,7 @@ component_build_armcc () {
|
||||||
|
|
||||||
component_test_tls13_only () {
|
component_test_tls13_only () {
|
||||||
msg "build: default config with MBEDTLS_SSL_PROTO_TLS1_3, without MBEDTLS_SSL_PROTO_TLS1_2"
|
msg "build: default config with MBEDTLS_SSL_PROTO_TLS1_3, without MBEDTLS_SSL_PROTO_TLS1_2"
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
||||||
|
|
||||||
msg "test: TLS 1.3 only, all key exchange modes enabled"
|
msg "test: TLS 1.3 only, all key exchange modes enabled"
|
||||||
|
@ -3269,6 +3270,7 @@ component_test_tls13_only_psk () {
|
||||||
scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION
|
scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION
|
||||||
scripts/config.py unset MBEDTLS_ECDSA_C
|
scripts/config.py unset MBEDTLS_ECDSA_C
|
||||||
scripts/config.py unset MBEDTLS_PKCS1_V21
|
scripts/config.py unset MBEDTLS_PKCS1_V21
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
||||||
|
|
||||||
msg "test_suite_ssl: TLS 1.3 only, only PSK key exchange mode enabled"
|
msg "test_suite_ssl: TLS 1.3 only, only PSK key exchange mode enabled"
|
||||||
|
@ -3301,6 +3303,7 @@ component_test_tls13_only_psk_ephemeral () {
|
||||||
scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION
|
scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION
|
||||||
scripts/config.py unset MBEDTLS_ECDSA_C
|
scripts/config.py unset MBEDTLS_ECDSA_C
|
||||||
scripts/config.py unset MBEDTLS_PKCS1_V21
|
scripts/config.py unset MBEDTLS_PKCS1_V21
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
||||||
|
|
||||||
msg "test_suite_ssl: TLS 1.3 only, only PSK ephemeral key exchange mode"
|
msg "test_suite_ssl: TLS 1.3 only, only PSK ephemeral key exchange mode"
|
||||||
|
@ -3318,6 +3321,7 @@ component_test_tls13_only_psk_all () {
|
||||||
scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION
|
scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION
|
||||||
scripts/config.py unset MBEDTLS_ECDSA_C
|
scripts/config.py unset MBEDTLS_ECDSA_C
|
||||||
scripts/config.py unset MBEDTLS_PKCS1_V21
|
scripts/config.py unset MBEDTLS_PKCS1_V21
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
||||||
|
|
||||||
msg "test_suite_ssl: TLS 1.3 only, PSK and PSK ephemeral key exchange modes"
|
msg "test_suite_ssl: TLS 1.3 only, PSK and PSK ephemeral key exchange modes"
|
||||||
|
@ -3330,6 +3334,7 @@ component_test_tls13_only_psk_all () {
|
||||||
component_test_tls13_only_ephemeral_all () {
|
component_test_tls13_only_ephemeral_all () {
|
||||||
msg "build: TLS 1.3 only from default, without PSK key exchange mode"
|
msg "build: TLS 1.3 only from default, without PSK key exchange mode"
|
||||||
scripts/config.py unset MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
scripts/config.py unset MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
|
||||||
|
|
||||||
msg "test_suite_ssl: TLS 1.3 only, ephemeral and PSK ephemeral key exchange modes"
|
msg "test_suite_ssl: TLS 1.3 only, ephemeral and PSK ephemeral key exchange modes"
|
||||||
|
@ -3344,6 +3349,7 @@ component_test_tls13 () {
|
||||||
scripts/config.py set MBEDTLS_SSL_PROTO_TLS1_3
|
scripts/config.py set MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
scripts/config.py set MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
scripts/config.py set MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
||||||
scripts/config.py set MBEDTLS_SSL_CID_TLS1_3_PADDING_GRANULARITY 1
|
scripts/config.py set MBEDTLS_SSL_CID_TLS1_3_PADDING_GRANULARITY 1
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
||||||
make
|
make
|
||||||
msg "test: default config with MBEDTLS_SSL_PROTO_TLS1_3 enabled, without padding"
|
msg "test: default config with MBEDTLS_SSL_PROTO_TLS1_3 enabled, without padding"
|
||||||
|
@ -3357,6 +3363,7 @@ component_test_tls13_no_compatibility_mode () {
|
||||||
scripts/config.py set MBEDTLS_SSL_PROTO_TLS1_3
|
scripts/config.py set MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
scripts/config.py unset MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
scripts/config.py unset MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
||||||
scripts/config.py set MBEDTLS_SSL_CID_TLS1_3_PADDING_GRANULARITY 1
|
scripts/config.py set MBEDTLS_SSL_CID_TLS1_3_PADDING_GRANULARITY 1
|
||||||
|
scripts/config.py set MBEDTLS_SSL_EARLY_DATA
|
||||||
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
||||||
make
|
make
|
||||||
msg "test: default config with MBEDTLS_SSL_PROTO_TLS1_3 enabled, without padding"
|
msg "test: default config with MBEDTLS_SSL_PROTO_TLS1_3 enabled, without padding"
|
||||||
|
|
Loading…
Reference in a new issue