1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-06-01 04:47:05 +02:00

Merge pull request from dcooper16/fix1053

Fix 
This commit is contained in:
Dirk Wetter 2018-05-15 17:54:09 +02:00 committed by GitHub
commit e68b1ce025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3900,7 +3900,7 @@ run_cipher_per_proto() {
done
success=1
if [[ -n "$ciphers_to_test" ]] || [[ -n "$tls13_ciphers_to_test" ]]; then
OPENSSL s_client $(s_client_options "-cipher "\'${ciphers_to_test:1}\'" -ciphersuites "\'${tls13_ciphers_to_test:1}\'" $proto $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>$ERRFILE </dev/null
$OPENSSL s_client $(s_client_options "-cipher "\'${ciphers_to_test:1}\'" -ciphersuites "\'${tls13_ciphers_to_test:1}\'" $proto $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>$ERRFILE </dev/null
sclient_connect_successful $? "$TMPFILE"
if [[ $? -eq 0 ]]; then
cipher=$(get_cipher $TMPFILE)