зеркало из https://github.com/github/ruby.git
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:
Родитель
cf6116150c
Коммит
535a28c737
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче