mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	STARTTLS rating styling
This commit is contained in:
		
							
								
								
									
										11
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								testssl.sh
									
									
									
									
									
								
							| @@ -20802,14 +20802,7 @@ run_rating() { | |||||||
|      pr_headlineln " Rating (experimental) " |      pr_headlineln " Rating (experimental) " | ||||||
|      outln |      outln | ||||||
| 
 | 
 | ||||||
|      if [[ -n "$STARTTLS_PROTOCOL" ]]; then |      [[ -n "$STARTTLS_PROTOCOL" ]] && set_grade_warning "STARTTLS encryption is opportunistic. The grade is very insignificant" | ||||||
|           pr_bold " Grade                        "; pr_svrty_critical "T" |  | ||||||
|           outln   " - STARTTLS encryption is opportunistic" |  | ||||||
|           outln   "                                  (Further details would lead to a false sense of security)" |  | ||||||
|           fileout "grade" "CRITICAL" "T" |  | ||||||
|           fileout "grade_cap_reasons" "INFO" "No more details shown as it would lead to a false sense of security" |  | ||||||
|           return 0 |  | ||||||
|      fi |  | ||||||
| 
 | 
 | ||||||
|      # Sort the reasons. This is just nicer to read in genereal |      # Sort the reasons. This is just nicer to read in genereal | ||||||
|      IFS=$'\n' sorted_reasons=($(sort -ru <<<"${GRADE_CAP_REASONS[*]}")) |      IFS=$'\n' sorted_reasons=($(sort -ru <<<"${GRADE_CAP_REASONS[*]}")) | ||||||
| @@ -20912,7 +20905,7 @@ run_rating() { | |||||||
| 
 | 
 | ||||||
|           pr_bold " Final Score                  "; outln $final_score |           pr_bold " Final Score                  "; outln $final_score | ||||||
| 
 | 
 | ||||||
|           # get score, and somehow do something about the GRADE_CAP |           # Calculate the pre-cap grade | ||||||
|           if [[ $final_score -ge 80 ]]; then |           if [[ $final_score -ge 80 ]]; then | ||||||
|                pre_cap_grade="A" |                pre_cap_grade="A" | ||||||
|           elif [[ $final_score -ge 65 ]]; then |           elif [[ $final_score -ge 65 ]]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Magnus Larsen
					Magnus Larsen