mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	Merge branch '2.9dev' into run_server_preference_sockets
This commit is contained in:
		
							
								
								
									
										11
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								testssl.sh
									
									
									
									
									
								
							@@ -3861,7 +3861,7 @@ run_client_simulation() {
 | 
				
			|||||||
# generic function whether $1 is supported by s_client ($2: string to display)
 | 
					# generic function whether $1 is supported by s_client ($2: string to display)
 | 
				
			||||||
locally_supported() {
 | 
					locally_supported() {
 | 
				
			||||||
     [[ -n "$2" ]] && out "$2 "
 | 
					     [[ -n "$2" ]] && out "$2 "
 | 
				
			||||||
     if $OPENSSL s_client "$1" 2>&1 | grep -aq "unknown option"; then
 | 
					     if $OPENSSL s_client "$1" -connect x 2>&1 | grep -aq "unknown option"; then
 | 
				
			||||||
          local_problem_ln "$OPENSSL doesn't support \"s_client $1\""
 | 
					          local_problem_ln "$OPENSSL doesn't support \"s_client $1\""
 | 
				
			||||||
          return 7
 | 
					          return 7
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
@@ -6081,7 +6081,7 @@ run_pfs() {
 | 
				
			|||||||
          # find out what elliptic curves are supported.
 | 
					          # find out what elliptic curves are supported.
 | 
				
			||||||
          curves_offered=""
 | 
					          curves_offered=""
 | 
				
			||||||
          for curve in "${curves_ossl[@]}"; do
 | 
					          for curve in "${curves_ossl[@]}"; do
 | 
				
			||||||
               $OPENSSL s_client -curves $curve 2>&1 | egrep -iaq "Error with command|unknown option"
 | 
					               $OPENSSL s_client -curves $curve -connect x 2>&1 | egrep -iaq "Error with command|unknown option"
 | 
				
			||||||
               [[ $? -ne 0 ]] && nr_curves+=1 && supported_curves+=("$curve")
 | 
					               [[ $? -ne 0 ]] && nr_curves+=1 && supported_curves+=("$curve")
 | 
				
			||||||
          done
 | 
					          done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -9420,6 +9420,7 @@ run_rc4() {
 | 
				
			|||||||
               fi
 | 
					               fi
 | 
				
			||||||
               if "$WIDE"; then
 | 
					               if "$WIDE"; then
 | 
				
			||||||
                    #FIXME: JSON+CSV in wide mode is missing
 | 
					                    #FIXME: JSON+CSV in wide mode is missing
 | 
				
			||||||
 | 
					                    export="${export2[i]}"
 | 
				
			||||||
                    neat_list "${normalized_hexcode[i]}" "${ciph[i]}" "${kx[i]}" "${enc[i]}"
 | 
					                    neat_list "${normalized_hexcode[i]}" "${ciph[i]}" "${kx[i]}" "${enc[i]}"
 | 
				
			||||||
                    if "$SHOW_EACH_C"; then
 | 
					                    if "$SHOW_EACH_C"; then
 | 
				
			||||||
                         if "${ciphers_found[i]}"; then
 | 
					                         if "${ciphers_found[i]}"; then
 | 
				
			||||||
@@ -9582,13 +9583,13 @@ find_openssl_binary() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
     OPENSSL_NR_CIPHERS=$(count_ciphers "$($OPENSSL ciphers 'ALL:COMPLEMENTOFALL:@STRENGTH' 2>/dev/null)")
 | 
					     OPENSSL_NR_CIPHERS=$(count_ciphers "$($OPENSSL ciphers 'ALL:COMPLEMENTOFALL:@STRENGTH' 2>/dev/null)")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     $OPENSSL s_client -ssl2 2>&1 | grep -aq "unknown option" || \
 | 
					     $OPENSSL s_client -ssl2 -connect x 2>&1 | grep -aq "unknown option" || \
 | 
				
			||||||
          HAS_SSL2=true
 | 
					          HAS_SSL2=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     $OPENSSL s_client -ssl3 2>&1 | grep -aq "unknown option" || \
 | 
					     $OPENSSL s_client -ssl3 -connect x 2>&1 | grep -aq "unknown option" || \
 | 
				
			||||||
          HAS_SSL3=true
 | 
					          HAS_SSL3=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     $OPENSSL s_client -no_ssl2 2>&1 | grep -aq "unknown option" || \
 | 
					     $OPENSSL s_client -no_ssl2 -connect x 2>&1 | grep -aq "unknown option" || \
 | 
				
			||||||
          HAS_NO_SSL2=true
 | 
					          HAS_NO_SSL2=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     $OPENSSL s_client -help 2>$s_client_has
 | 
					     $OPENSSL s_client -help 2>$s_client_has
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user