mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Change to grade cap
This commit is contained in:
		| @@ -407,9 +407,6 @@ As of writing, these checks are missing: | |||||||
| * Exportable key exchange - should give **40** points in `set_key_str_score()` | * Exportable key exchange - should give **40** points in `set_key_str_score()` | ||||||
| * Weak key (Debian OpenSSL Flaw) - should give **0** points in `set_key_str_score()` | * Weak key (Debian OpenSSL Flaw) - should give **0** points in `set_key_str_score()` | ||||||
|  |  | ||||||
| #### STARTTLS |  | ||||||
| This program rates STARTTLS connections, exactly according to the specification. However, this program adds a grade warning about STARTTLS is being used. This is not apart of the rating specification, and limits the grade a STARTTLS connection can have, to a maximum of `A-`. |  | ||||||
|  |  | ||||||
| #### Implementing new grades caps or -warnings | #### Implementing new grades caps or -warnings | ||||||
| To implement a new grading cap, simply call the `set_grade_cap()` function, with the grade and a reason: | To implement a new grading cap, simply call the `set_grade_cap()` function, with the grade and a reason: | ||||||
| ```bash | ```bash | ||||||
|   | |||||||
| @@ -20802,7 +20802,7 @@ run_rating() { | |||||||
|      pr_headlineln " Rating (experimental) " |      pr_headlineln " Rating (experimental) " | ||||||
|      outln |      outln | ||||||
| 
 | 
 | ||||||
|      [[ -n "$STARTTLS_PROTOCOL" ]] && set_grade_warning "STARTTLS encryption is opportunistic. The grade is very insignificant" |      [[ -n "$STARTTLS_PROTOCOL" ]] && set_grade_cap "T" "Encryption via STARTTLS is not mandatory (opportunistic). This leads to a false sense of security" | ||||||
| 
 | 
 | ||||||
|      # 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[*]}")) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Magnus Larsen
					Magnus Larsen