Skip to content

Commit

Permalink
Add early data good case
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
  • Loading branch information
yuhaoth committed Nov 5, 2022
1 parent 7e378b5 commit 04d9607
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/opt-testcases/tls13-misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,17 @@ run_test "TLS 1.3 G->m: EarlyData: feature is disabled, good." \
-s "ClientHello: early_data(42) extension was received." \
-s "EncryptedExtensions: early_data(42) extension was not sent." \
-s "Ignore application message"

requires_gnutls_next
requires_all_configs_enabled MBEDTLS_SSL_EARLY_DATA MBEDTLS_SSL_SESSION_TICKETS MBEDTLS_SSL_SRV_C \
MBEDTLS_SSL_CLI_C MBEDTLS_DEBUG_C MBEDTLS_HAVE_TIME
run_test "TLS 1.3 G->m: EarlyData: enabled and max_size=1024, good." \
"$P_SRV force_version=tls13 reco_debug_level=5 early_data=1024" \
"$G_NEXT_CLI localhost --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+GROUP-ALL -d 10 -r --earlydata $EARLY_DATA_INPUT" \
0 \
-c "This is a resumed session" \
-s "ClientHello: early_data(42) extension was received." \
-s "EncryptedExtensions: early_data(42) extension was sent." \
-s "$( cat $EARLY_DATA_INPUT )" \
-S "Ignore application message"

0 comments on commit 04d9607

Please sign in to comment.