mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-04 07:45:27 +01:00 
			
		
		
		
	Fix std_cipherlists with debug
`std_cipherlists()` does not include line breaks between tests in the output to the terminal when `$DEBUG` is 1, and it does not include line break between tests in the HTML output whenever `$DEBUG` is greater than 0.
This commit is contained in:
		@@ -2368,7 +2368,7 @@ std_cipherlists() {
 | 
				
			|||||||
                    ;;
 | 
					                    ;;
 | 
				
			||||||
          esac
 | 
					          esac
 | 
				
			||||||
          tmpfile_handle $FUNCNAME.$debugname.txt
 | 
					          tmpfile_handle $FUNCNAME.$debugname.txt
 | 
				
			||||||
          [[ $DEBUG -ge 1 ]] && out " -- $1" || outln  #FIXME: should be in standard output at some time
 | 
					          [[ $DEBUG -ge 1 ]] && outln " -- $1" || outln  #FIXME: should be in standard output at some time
 | 
				
			||||||
     else
 | 
					     else
 | 
				
			||||||
          singlespaces=$(sed -e 's/ \+/ /g' -e 's/^ //' -e 's/ $//g' -e 's/  //g' <<< "$2")
 | 
					          singlespaces=$(sed -e 's/ \+/ /g' -e 's/^ //' -e 's/ $//g' -e 's/  //g' <<< "$2")
 | 
				
			||||||
          if [[ "$OPTIMAL_PROTO" == "-ssl2" ]]; then
 | 
					          if [[ "$OPTIMAL_PROTO" == "-ssl2" ]]; then
 | 
				
			||||||
@@ -2378,8 +2378,6 @@ std_cipherlists() {
 | 
				
			|||||||
          fi
 | 
					          fi
 | 
				
			||||||
          fileout "std_$4" "WARN" "Cipher $2 ($1) not supported by local OpenSSL ($OPENSSL)"
 | 
					          fileout "std_$4" "WARN" "Cipher $2 ($1) not supported by local OpenSSL ($OPENSSL)"
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
     # we need 1 x lf in those cases:
 | 
					 | 
				
			||||||
     debugme echo
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user