diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-22 08:31:53 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-22 08:31:53 +0000 |
commit | 40aa32a0d7ce7a651a610cc69cced23319a11cd5 (patch) | |
tree | 5936b85b869207c2e61fb7820c487181a4b04336 /lib/net/imap.rb | |
parent | 0fc7dfedd3101125d2ad823f76454b48e48a0e05 (diff) | |
download | ruby-40aa32a0d7ce7a651a610cc69cced23319a11cd5.tar.gz |
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params):
new method to set suitable SSL parameters.
* lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb,
test/openssl/test_ssl.rb: follow above change.
* test/net/http/test_https.rb: refine error case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/imap.rb')
-rw-r--r-- | lib/net/imap.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 2398a5d10c..394f0d9890 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -892,7 +892,7 @@ module Net # OpenSSL [OSSL] and the Ruby OpenSSL [RSSL] extensions need to # be installed. # if options[:ssl] is a hash, it's passed to - # OpenSSL::SSL::SSLContext.build as parameters. + # OpenSSL::SSL::SSLContext#set_params as parameters. # # The most common errors are: # @@ -1263,7 +1263,8 @@ module Net rescue NoMethodError params = {} end - context = SSLContext.build(params) + context = SSLContext.new + context.set_params(params) if defined?(VerifyCallbackProc) context.verify_callback = VerifyCallbackProc end |