From add75caf82addf19b4a5f7166971c3a3dcfae54b Mon Sep 17 00:00:00 2001 From: David Cooper Date: Mon, 25 Jul 2016 17:00:49 -0400 Subject: [PATCH] SSLv2 fixes for test_just_one() This PR changes test_just_one() to correctly handle SSLv2 ciphers. As with PR #424, this PR addresses the problem in which servers that do not implement SSLv2, but that implement RC4-MD5, EXP-RC2-CBC-MD5, EXP-RC4-MD5, or NULL-MD5 are shown as implementing both the SSLv2 and SSLv3 versions of the ciphers, and that any SSLv2 ciphers that a server does implement are not shown as being implemented. --- testssl.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index a2ee4c3..99d68ec 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1591,7 +1591,11 @@ test_just_one(){ neat_list $HEXC $ciph $kx $enc | grep -qwai "$arg" fi if [[ $? -eq 0 ]]; then # string matches, so we can ssl to it: - $OPENSSL s_client -cipher $ciph $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI 2>$ERRFILE >$TMPFILE $ERRFILE >$TMPFILE $ERRFILE >$TMPFILE