Class: SSLyze::XML::Heartbleed
- Defined in:
- lib/sslyze/xml/heartbleed.rb,
lib/sslyze/xml/heartbleed/openssl_heartbleed.rb
Overview
Represents the <heartbleed>
XML element.
Defined Under Namespace
Classes: OpenSSLHeartbleed
Instance Method Summary collapse
- #is_vulnerable? ⇒ Boolean (also: #vulnerable?)
-
#openssl_heartbleed ⇒ OpenSSLHeartbleed
(also: #openssl)
Parses the
<openSslHeartbleed>
XML element.
Methods inherited from Plugin
Methods included from Attributes::Exception
Methods included from Attributes::Title
Constructor Details
This class inherits a constructor from SSLyze::XML::Plugin
Instance Method Details
#is_vulnerable? ⇒ Boolean Also known as: vulnerable?
30 31 32 |
# File 'lib/sslyze/xml/heartbleed.rb', line 30 def is_vulnerable? openssl_heartbleed && openssl_heartbleed.is_vulnerable? end |
#openssl_heartbleed ⇒ OpenSSLHeartbleed Also known as: openssl
Parses the <openSslHeartbleed>
XML element.
19 20 21 22 23 |
# File 'lib/sslyze/xml/heartbleed.rb', line 19 def openssl_heartbleed @openssl_heartbleed ||= if (element = @node.at_xpath('openSslHeartbleed')) OpenSSLHeartbleed.new(element) end end |