From 3d28f44e566b94c5d518a9c0321ecec287e6fba4 Mon Sep 17 00:00:00 2001 From: Laine Gholson Date: Sat, 12 Dec 2015 18:41:13 -0600 Subject: [PATCH] Change flag order --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index b05a432..30e41dd 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2458,7 +2458,7 @@ run_spdy() { outln "\n" return 0 fi - $OPENSSL s_client -connect $NODEIP:$PORT $BUGS -nextprotoneg $NPN_PROTOs $SNI $ERRFILE >$TMPFILE + $OPENSSL s_client -connect $NODEIP:$PORT $BUGS $SNI -nextprotoneg $NPN_PROTOs $ERRFILE >$TMPFILE tmpstr=$(grep -a '^Protocols' $TMPFILE | sed 's/Protocols.*: //') if [[ -z "$tmpstr" ]] || [[ "$tmpstr" == " " ]]; then outln "not offered" @@ -2493,7 +2493,7 @@ run_http2() { fi for proto in $ALPN_PROTOs; do # for some reason OpenSSL doesn't list the advertised protocols, so instead try common protocols - $OPENSSL s_client -connect $NODEIP:$PORT $BUGS -alpn $proto $SNI $ERRFILE >$TMPFILE + $OPENSSL s_client -connect $NODEIP:$PORT $BUGS $SNI -alpn $proto $ERRFILE >$TMPFILE tmpstr=$(grep -a '^ALPN protocol' $TMPFILE | sed 's/ALPN protocol.*: //') if [[ "$tmpstr" = "$proto" ]]; then if [[ -z "$had_alpn_proto" ]]; then