class SSLyze::XML::Heartbleed

Represents the `<heartbleed>` XML element.

@since 1.0.0

Public Instance Methods

is_vulnerable?() click to toggle source

@see has_openssl_heartbleed?

# File lib/sslyze/xml/heartbleed.rb, line 30
def is_vulnerable?
  openssl_heartbleed && openssl_heartbleed.is_vulnerable?
end
Also aliased as: vulnerable?
openssl()
Alias for: openssl_heartbleed
openssl_heartbleed() click to toggle source

Parses the `<openSslHeartbleed>` XML element.

@return [OpenSSLHeartbleed]

# File lib/sslyze/xml/heartbleed.rb, line 19
def openssl_heartbleed
  @openssl_heartbleed ||= if (element = @node.at_xpath('openSslHeartbleed'))
                            OpenSSLHeartbleed.new(element)
                          end
end
Also aliased as: openssl
vulnerable?()
Alias for: is_vulnerable?