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

see OpenSSL::SSL

* lib/net/imap.rb (Net::IMAP): see if actually used SSL is defined to
  get rid of autoloaded OpenSSL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-23 13:48:38 +00:00
parent cf6116150c
commit 535a28c737

View file

@ -200,7 +200,7 @@ module Net
#
class IMAP
include MonitorMixin
if defined?(OpenSSL)
if defined?(OpenSSL::SSL)
include OpenSSL
include SSL
end
@ -1438,7 +1438,7 @@ module Net
end
def start_tls_session(params = {})
unless defined?(OpenSSL)
unless defined?(OpenSSL::SSL)
raise "SSL extension not installed"
end
if @sock.kind_of?(OpenSSL::SSL::SSLSocket)