mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	Merge branch '2.9dev' into negotiated_cipher
This commit is contained in:
		
							
								
								
									
										12
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								testssl.sh
									
									
									
									
									
								
							@@ -10210,7 +10210,7 @@ run_logjam() {
 | 
			
		||||
 | 
			
		||||
     # now the final test for common primes
 | 
			
		||||
     if [[ -n "$key_bitstring" ]]; then
 | 
			
		||||
          dh_p="$($OPENSSL pkey -pubin -text -noout <<< "$key_bitstring" | awk '/prime:/,/generator:/' | tail -n +2 | head -n -1)"
 | 
			
		||||
          dh_p="$($OPENSSL pkey -pubin -text -noout <<< "$key_bitstring" | awk '/prime:/,/generator:/' | egrep -v "prime|generator")"
 | 
			
		||||
          dh_p="$(strip_spaces "$(colon_to_spaces "$(newline_to_spaces "$dh_p")")")"
 | 
			
		||||
          [[ "${dh_p:0:2}" == "00" ]] && dh_p="${dh_p:2}"
 | 
			
		||||
          len_dh_p="$((4*${#dh_p}))"
 | 
			
		||||
@@ -12168,7 +12168,7 @@ determine_service() {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
display_rdns_etc() {
 | 
			
		||||
     local ip
 | 
			
		||||
     local ip further_ip_addrs=""
 | 
			
		||||
     local nodeip="$(tr -d '[]' <<< $NODEIP)"     # for displaying IPv6 addresses we don't need []
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -12177,14 +12177,15 @@ display_rdns_etc() {
 | 
			
		||||
          outln "$PROXYIP:$PROXYPORT "
 | 
			
		||||
     fi
 | 
			
		||||
     if [[ $(count_words "$IP46ADDRs") -gt 1 ]]; then
 | 
			
		||||
          out " further IP addresses:  $CORRECT_SPACES"
 | 
			
		||||
          out " further IP addresses:   $CORRECT_SPACES"
 | 
			
		||||
          for ip in $IP46ADDRs; do
 | 
			
		||||
               if [[ "$ip" == "$NODEIP" ]] || [[ "[$ip]" == "$NODEIP" ]]; then
 | 
			
		||||
                    continue
 | 
			
		||||
               else
 | 
			
		||||
                    out " $ip"
 | 
			
		||||
                    further_ip_addrs+="$ip "
 | 
			
		||||
               fi
 | 
			
		||||
          done
 | 
			
		||||
          out_row_aligned_max_width "$further_ip_addrs" "                         $CORRECT_SPACES" $TERM_WIDTH out
 | 
			
		||||
          outln
 | 
			
		||||
     fi
 | 
			
		||||
     if "$LOCAL_A"; then
 | 
			
		||||
@@ -12193,7 +12194,8 @@ display_rdns_etc() {
 | 
			
		||||
          outln " A record via           $CORRECT_SPACES supplied IP \"$CMDLINE_IP\""
 | 
			
		||||
     fi
 | 
			
		||||
     if [[ -n "$rDNS" ]]; then
 | 
			
		||||
          printf " %-23s %s" "rDNS ($nodeip):" "$rDNS"
 | 
			
		||||
          printf " %-23s %s" "rDNS ($nodeip):"
 | 
			
		||||
          out_row_aligned_max_width "$rDNS" "                         $CORRECT_SPACES" $TERM_WIDTH out
 | 
			
		||||
     fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user