diff --git a/testssl.sh b/testssl.sh index 7187daa..a2ee4c3 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1626,16 +1626,17 @@ test_just_one(){ run_allciphers() { local tmpfile local -i nr_ciphers=0 - local n sslvers auth mac export - local -a hexcode ciph kx enc export2 + local n auth mac export + local -a hexcode ciph sslvers kx enc export2 local -i i j parent child end_of_bundle round_num bundle_size num_bundles mod_check local -a ciphers_found local dhlen local available local ciphers_to_test + local sslv2_supported=false - # get a list of all the cipher suites to test (only need the hexcode, ciph, kx, enc, and export values) - while read hexcode[nr_ciphers] n ciph[nr_ciphers] sslvers kx[nr_ciphers] auth enc[nr_ciphers] mac export2[nr_ciphers]; do + # get a list of all the cipher suites to test (only need the hexcode, ciph, sslvers, kx, enc, and export values) + while read hexcode[nr_ciphers] n ciph[nr_ciphers] sslvers[nr_ciphers] kx[nr_ciphers] auth enc[nr_ciphers] mac export2[nr_ciphers]; do nr_ciphers=$nr_ciphers+1 done < <($OPENSSL ciphers -V 'ALL:COMPLEMENTOFALL:@STRENGTH' 2>>$ERRFILE) @@ -1645,6 +1646,12 @@ run_allciphers() { outln neat_header + if "$HAS_SSL2"; then + $OPENSSL s_client $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY -ssl2 >$TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE $ERRFILE) + done < <($OPENSSL ciphers $ossl_ciphers_proto -V 'ALL:COMPLEMENTOFALL:@STRENGTH' 2>$ERRFILE) # Split ciphers into bundles of size 4**n, starting with the smallest # "n" that leaves the ciphers in one bundle, and then reducing "n" by @@ -1798,7 +1818,12 @@ run_cipher_per_proto() { ciphers_to_test="${ciphers_to_test}:${ciph[j]}" done ciphers_found[child]=false - $OPENSSL s_client -cipher "${ciphers_to_test:1}" $proto $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI >$TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE $TMPFILE 2>$ERRFILE