Bug #3704 ยป ruby-openssl-msg.patch
ext/openssl/lib/openssl/ssl-internal.rb (working copy) | ||
---|---|---|
def post_connection_check(hostname)
|
||
unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname)
|
||
raise SSLError, "hostname was not match with the server certificate"
|
||
raise SSLError, "hostname does not match the server certificate"
|
||
end
|
||
return true
|
||
end
|