aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2024-03-08 11:29:28 +0100
committerRonald Cron <ronald.cron@arm.com>2024-03-08 14:51:20 +0100
commit52472104a24637e94abe5926abe7682476006913 (patch)
treef13315d931bb6b43126c45845dcf39e518b85a69
parent4facb0a9cd27ace3ee681a63bb107d509830bab7 (diff)
downloadmbedtls-52472104a24637e94abe5926abe7682476006913.zip
mbedtls-52472104a24637e94abe5926abe7682476006913.tar.gz
mbedtls-52472104a24637e94abe5926abe7682476006913.tar.bz2
tests: suite: early data: Add comments
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
-rw-r--r--tests/suites/test_suite_ssl.function13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index f4288d1..64ee0f7 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -4200,6 +4200,10 @@ void tls13_write_early_data(int scenario)
break;
case TEST_EARLY_DATA_HRR:
+ /*
+ * Remove server support for the group negotiated in
+ * mbedtls_test_get_tls13_ticket() forcing an HelloRetryRequest.
+ */
server_options.group_list = group_list + 1;
break;
@@ -4570,6 +4574,10 @@ void tls13_srv_max_early_data_size(int scenario, int max_early_data_size_arg, in
break;
case TEST_EARLY_DATA_HRR:
+ /*
+ * Remove server support for the group negotiated in
+ * mbedtls_test_get_tls13_ticket() forcing an HelloRetryRequest.
+ */
server_options.group_list = group_list + 1;
ret = mbedtls_snprintf(
pattern, sizeof(pattern),
@@ -4628,6 +4636,11 @@ void tls13_srv_max_early_data_size(int scenario, int max_early_data_size_arg, in
do {
uint32_t read_early_data_size = 0;
+ /*
+ * The contents of the early data are not very important, write a
+ * pattern that varies byte-by-byte and is different for every chunk of
+ * early data.
+ */
if ((written_early_data_size + write_size) > max_early_data_size) {
break;
}