WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1250d6f

Browse files
authored
Merge pull request #2958 from testssl/fix_early_data_empty
Fix error when early data empty
2 parents 2b73544 + ece7bce commit 1250d6f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testssl.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7177,12 +7177,11 @@ sub_early_data() {
71777177
else
71787178
return 5
71797179
fi
7180-
7181-
safe_echo "HEAD / HTTP/1.1\r\nHost: $NODE\r\nConnection: close\r\nEarly-Data: 1\r\n\r\n" > $early_data
7180+
safe_echo "GET / HTTP/1.1\r\nHost: $NODE\r\nEarly-Data: 1\r\nConnection: close\r\n\r\n" > $early_data
71827181
$openssl_bin s_client $(s_client_options "$STARTTLS $BUGS -tls1_3 -connect $NODEIP:$PORT $PROXY $SNI") -sess_out $sess_data -ign_eof \
71837182
< $early_data >/dev/null 2>$ERRFILE
71847183
if [[ ! -s "$sess_data" ]]; then
7185-
exit 7
7184+
return 7
71867185
fi
71877186

71887187
$openssl_bin s_client $(s_client_options "$STARTTLS $BUGS -tls1_3 -connect $NODEIP:$PORT $PROXY $SNI") -sess_in $sess_data \
@@ -10805,7 +10804,7 @@ run_server_defaults() {
1080510804
6) prln_warning "Client Auth: early data check not supported"
1080610805
fileout "$jsonID" "WARN" "check couldn't be performed because of client authentication"
1080710806
;;
10808-
7) prln_warning "check failed (no session data"
10807+
7) prln_warning "check failed (no session data received)"
1080910808
fileout "$jsonID" "WARN" "check failed (no session data)"
1081010809
((ret++))
1081110810
;;

0 commit comments

Comments
 (0)