Project

General

Profile

Bug #14822 ยป pop_ssl_verify_hostname.patch

hkamphor (Jos Kamphorst), 06/04/2018 04:23 PM

View differences:

lib/net/pop.rb
context = OpenSSL::SSL::SSLContext.new
context.set_params(@ssl_params)
s = OpenSSL::SSL::SSLSocket.new(s, context)
s.hostname = @address
s.sync_close = true
ssl_socket_connect(s, @open_timeout)
if context.verify_mode != OpenSSL::SSL::VERIFY_NONE
    (1-1/1)