diff --git a/testssl.sh b/testssl.sh index 6180a53..d6261b8 100755 --- a/testssl.sh +++ b/testssl.sh @@ -4784,8 +4784,8 @@ locally_supported() { } -# The protocol check in run_protocols needs to be redone. The using_socket part there kind of sucks. -# 1) we need to have a variable where the results are being stored so that every other test doesn't have to do this agai +# The protocol check in run_protocols needs to be redone. The using_sockets part there kind of sucks. +# 1) we need to have a variable where the results are being stored so that every other test doesn't have to do this again # --> we have that but certain information like "downgraded" are not being passed. That's not ok for run_protocols()/ # for all other functions we can use it # 2) the code is old and one can do that way better @@ -4796,17 +4796,24 @@ locally_supported() { run_prototest_openssl() { local -i ret=0 - ! locally_supported "$1" && return 7 - $OPENSSL s_client $(s_client_options "-state $1 $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>$ERRFILE &1 | grep -aq "unknown option" && return 7 + $OPENSSL s_client $(s_client_options "-state $1 $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>&1 $TMPFILE 2>$ERRFILE $TMPFILE 2>&1