Skip to content

Commit

Permalink
Make clear where the parsing error comes from: SSL or TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
drwetter committed Jun 2, 2023
1 parent 00b510d commit 6e2b9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12126,7 +12126,7 @@ parse_sslv2_serverhello() {
[[ "$DEBUG" -ge 5 ]] && echo "$v2_hello_ascii"
if [[ -z "$v2_hello_ascii" ]]; then
ret=0 # 1 line without any blanks: no server hello received
debugme echo "server hello empty"
debugme echo "(SSLv2) ServerHello empty"
else
# now scrape two bytes out of the reply per byte
v2_hello_initbyte="${v2_hello_ascii:0:1}" # normally this belongs to the next, should be 8!
Expand Down Expand Up @@ -14179,7 +14179,7 @@ parse_tls_serverhello() {
done

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

0 comments on commit 6e2b9ae

Please sign in to comment.