Browse Source

Fix AEAD and weak key checks

master
aeris 2 years ago
parent
commit
e39b7670f1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/cryptcheck/tls/grade.rb

+ 2
- 2
lib/cryptcheck/tls/grade.rb View File

@@ -78,7 +78,7 @@ module CryptCheck
78 78
 			CHECKS = [
79 79
 					# Keys
80 80
 					[:dss_sign, Proc.new { |s| s.dss_sig? }, :critical],
81
-					[:weak_key, Proc.new { |s| %i(critical error warning).include? s.key.status } ],
81
+					[:weak_key, Proc.new { |s| %i(critical error warning) & [s.key.status] } ],
82 82
 
83 83
 					# DH
84 84
 					[:weak_dh, Proc.new { |s| (%i(critical error warning) & s.dh.collect(&:status).uniq).first } ],
@@ -114,7 +114,7 @@ module CryptCheck
114 114
 					[:ecdhe, Proc.new { |s| s.ecdhe? }, :good],
115 115
 					[:ecdhe_only, Proc.new { |s| s.ecdhe_only? }, :perfect],
116 116
 
117
-					[:aead, Proc.new { |s| s.aead_only? }, :good],
117
+					[:aead, Proc.new { |s| s.aead? }, :good],
118 118
 					#[:aead_only, Proc.new { |s| s.aead_only? }, :best],
119 119
 			]
120 120
 

Loading…
Cancel
Save