aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/pop.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/pop.rb')
-rw-r--r--lib/net/pop.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index d0145cb5f0..9f00465a1d 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -533,6 +533,9 @@ module Net
s = OpenSSL::SSL::SSLSocket.new(s, context)
s.sync_close = true
s.connect
+ if context.verify_mode != OpenSSL::SSL::VEIFY_NONE
+ s.post_connection_check(@address)
+ end
end
@socket = InternetMessageIO.new(s)
logging "POP session started: #{@address}:#{@port} (#{@apop ? 'APOP' : 'POP'})"