You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
303 B
18 lines
303 B
module CryptCheck
|
|
module Tls
|
|
module Https
|
|
class Grade < Tls::Grade
|
|
private
|
|
def calculate_success
|
|
super
|
|
@success << :hsts if @server.hsts?
|
|
@success << :hsts_long if @server.hsts_long?
|
|
end
|
|
|
|
def all_success
|
|
super + %i(hsts hsts_long)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|