mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	Change flag order
This commit is contained in:
		| @@ -2458,7 +2458,7 @@ run_spdy() { | |||||||
|           outln "\n" |           outln "\n" | ||||||
|           return 0 |           return 0 | ||||||
|      fi |      fi | ||||||
|      $OPENSSL s_client -connect $NODEIP:$PORT $BUGS -nextprotoneg $NPN_PROTOs $SNI </dev/null 2>$ERRFILE >$TMPFILE |      $OPENSSL s_client -connect $NODEIP:$PORT $BUGS $SNI -nextprotoneg $NPN_PROTOs </dev/null 2>$ERRFILE >$TMPFILE | ||||||
|      tmpstr=$(grep -a '^Protocols' $TMPFILE | sed 's/Protocols.*: //') |      tmpstr=$(grep -a '^Protocols' $TMPFILE | sed 's/Protocols.*: //') | ||||||
|      if [[ -z "$tmpstr" ]] || [[ "$tmpstr" == " " ]]; then |      if [[ -z "$tmpstr" ]] || [[ "$tmpstr" == " " ]]; then | ||||||
|           outln "not offered" |           outln "not offered" | ||||||
| @@ -2493,7 +2493,7 @@ run_http2() { | |||||||
|      fi |      fi | ||||||
|      for proto in $ALPN_PROTOs; do |      for proto in $ALPN_PROTOs; do | ||||||
|           # for some reason OpenSSL doesn't list the advertised protocols, so instead try common protocols |           # 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 </dev/null 2>$ERRFILE >$TMPFILE |           $OPENSSL s_client -connect $NODEIP:$PORT $BUGS $SNI -alpn $proto </dev/null 2>$ERRFILE >$TMPFILE | ||||||
|           tmpstr=$(grep -a '^ALPN protocol' $TMPFILE | sed 's/ALPN protocol.*: //') |           tmpstr=$(grep -a '^ALPN protocol' $TMPFILE | sed 's/ALPN protocol.*: //') | ||||||
|           if [[ "$tmpstr" = "$proto" ]]; then |           if [[ "$tmpstr" = "$proto" ]]; then | ||||||
|               if [[ -z "$had_alpn_proto" ]]; then |               if [[ -z "$had_alpn_proto" ]]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Laine Gholson
					Laine Gholson