method

post_connection_check

v1_9_3_392 - Show latest stable - Class: OpenSSL::SSL::SSLSocket
post_connection_check(hostname)
public

No documentation available.

# File ext/openssl/lib/openssl/ssl-internal.rb, line 119
      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