# File lib/openssl_cms/ssl-internal.rb, line 127 def post_connection_check(hostname) unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname) raise SSLError, "hostname does not match the server certificate" end return true end
# File lib/openssl_cms/ssl-internal.rb, line 134 def session SSL::Session.new(self) rescue SSL::Session::SessionError nil end