mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-31 04:41:15 +01:00
Fix cipher grading
This commit fixes the way that ciphers are graded by only calling set_ciph_str_score() from neat_list() if the cipher suite is supported (i.e., if how2show is true).
This commit is contained in:
parent
730c758488
commit
c0aafabfef
@ -3555,7 +3555,6 @@ neat_header(){
|
|||||||
# "true" : if the cipher's "quality" should be highlighted
|
# "true" : if the cipher's "quality" should be highlighted
|
||||||
# "false": if the line should be printed in light grey
|
# "false": if the line should be printed in light grey
|
||||||
# "" : if line should be returned as a string
|
# "" : if line should be returned as a string
|
||||||
# "available" / "not a/v" when SHOW_EACH_C is set
|
|
||||||
|
|
||||||
neat_list(){
|
neat_list(){
|
||||||
local hexcode="$1"
|
local hexcode="$1"
|
||||||
@ -3578,10 +3577,8 @@ neat_list(){
|
|||||||
enc="${enc//POLY1305/}" # remove POLY1305
|
enc="${enc//POLY1305/}" # remove POLY1305
|
||||||
enc="${enc//\//}" # remove "/"
|
enc="${enc//\//}" # remove "/"
|
||||||
|
|
||||||
# For rating set bit size but only when we're not on all display mode (global var SHOW_EACH_C)
|
# For rating set bit size but only when cipher is supported by server.
|
||||||
if [[ $how2show != "not a/v" ]] && "$SHOW_EACH_C" ]]; then
|
if [[ $how2show == true ]]; then
|
||||||
:
|
|
||||||
else
|
|
||||||
set_ciph_str_score $strength
|
set_ciph_str_score $strength
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user