summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorayumin <ayumin@ruby-lang.org>2012-04-30 00:11:44 +0000
committerayumin <ayumin@ruby-lang.org>2012-04-30 00:11:44 +0000
commita30d97fee245c222843ac0edc400eeaf22fdde73 (patch)
treede4efc0d78ce334633f0d426b4d7abced425e078 /lib
parent92b27e9bc745cdd34e4a5ad76c432a003d23e6cf (diff)
downloadruby-openssl-history-a30d97fee245c222843ac0edc400eeaf22fdde73.tar.gz
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/openssl/ssl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb
index b9ad838..70b27f4 100644
--- a/lib/openssl/ssl.rb
+++ b/lib/openssl/ssl.rb
@@ -126,7 +126,7 @@ module OpenSSL
def post_connection_check(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
return true
end