Fix AEAD and weak key checks

new-scoring
aeris 2016-12-17 14:41:38 +01:00
parent ad7d8287a8
commit e39b7670f1
1 changed files with 2 additions and 2 deletions

View File

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