Skip to content

Commit 6e2b9ae

Browse files
committed
Make clear where the parsing error comes from: SSL or TLS
1 parent 00b510d commit 6e2b9ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12126,7 +12126,7 @@ parse_sslv2_serverhello() {
1212612126
[[ "$DEBUG" -ge 5 ]] && echo "$v2_hello_ascii"
1212712127
if [[ -z "$v2_hello_ascii" ]]; then
1212812128
ret=0 # 1 line without any blanks: no server hello received
12129-
debugme echo "server hello empty"
12129+
debugme echo "(SSLv2) ServerHello empty"
1213012130
else
1213112131
# now scrape two bytes out of the reply per byte
1213212132
v2_hello_initbyte="${v2_hello_ascii:0:1}" # normally this belongs to the next, should be 8!
@@ -14179,7 +14179,7 @@ parse_tls_serverhello() {
1417914179
done
1418014180

1418114181
if [[ $tls_serverhello_ascii_len -eq 0 ]]; then
14182-
debugme echo "server hello empty, TCP connection closed"
14182+
debugme echo "(TLS) ServerHello empty, TCP connection closed"
1418314183
DETECTED_TLS_VERSION="closed TCP connection "
1418414184
[[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt
1418514185
return 1 # no server hello received

0 commit comments

Comments
 (0)