1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/lib/openssl/ssl.rb: add hostname to "hostname does not

match server cert." error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ayumin 2012-04-30 00:11:44 +00:00
parent 746c080bf3
commit 0456c36d03
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Mon Apr 30 09:02:15 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
* ext/openssl/lib/openssl/ssl.rb: add hostname to "hostname does not
match server cert." error. patched by Wes Morgan via Github.
https://github.com/ruby/ruby/pull/122
Mon Apr 30 04:43:53 2012 Aaron Patterson <aaron@tenderlovemaking.com> Mon Apr 30 04:43:53 2012 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not

View file

@ -126,7 +126,7 @@ module OpenSSL
def post_connection_check(hostname) def post_connection_check(hostname)
unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname) unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname)
raise SSLError, "hostname does not match the server certificate" raise SSLError, "hostname \"#{hostname}\" does not match the server certificate"
end end
return true return true
end end