Project

General

Profile

Feature #13379 » 0001-ssl_socket_connect-for-imap.patch

ahorek (Pavel Rosický), 03/29/2017 08:23 PM

View differences:

lib/net/imap.rb
# Goldsmith, D. and Davis, M., "UTF-7: A Mail-Safe Transformation Format of
# Unicode", RFC 2152, May 1997.
#
class IMAP
class IMAP < Protocol
include MonitorMixin
if defined?(OpenSSL::SSL)
include OpenSSL
......
end
@sock = SSLSocket.new(@sock, context)
@sock.sync_close = true
@sock.connect
ssl_socket_connect(@sock, @open_timeout)
if context.verify_mode != VERIFY_NONE
@sock.post_connection_check(@host)
end
(3-3/3)