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

* lib/net/pop.rb: change default verification mode from VERIFY_PEER to VERIFY_NONE because most POPS server does not have true certification.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2007-03-16 13:32:41 +00:00
parent d50f882cf0
commit 31015d2cca
2 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,9 @@
Fri Mar 16 22:32:20 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/pop.rb: change default verification mode from
VERIFY_PEER to VERIFY_NONE because most POPS server does not have
true certification.
Fri Mar 16 22:19:24 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c: add WIN32OLE#ole_activex_initialize,

View file

@ -1,8 +1,8 @@
# = net/pop.rb
#
# Copyright (c) 1999-2003 Yukihiro Matsumoto.
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
#
# Copyright (c) 1999-2003 Minero Aoki.
# Copyright (c) 1999-2007 Minero Aoki.
#
# Written & maintained by Minero Aoki <aamine@loveruby.net>.
#
@ -328,10 +328,10 @@ module Net
# Enable SSL for all new instances.
# +verify+ is the type of verification to do on the Server Cert; Defaults
# to OpenSSL::SSL::VERIFY_PEER.
# to OpenSSL::SSL::VERIFY_NONE.
# +certs+ is a file or directory holding CA certs to use to verify the
# server cert; Defaults to nil.
def POP3.enable_ssl(verify = OpenSSL::SSL::VERIFY_PEER, certs = nil)
def POP3.enable_ssl(verify = OpenSSL::SSL::VERIFY_NONE, certs = nil)
@use_ssl = true
@verify = verify
@certs = certs
@ -425,11 +425,11 @@ module Net
# Enables SSL for this instance. Must be called before the connection is
# established to have any effect.
# +verify+ is the type of verification to do on the Server Cert; Defaults
# to OpenSSL::SSL::VERIFY_PEER.
# to OpenSSL::SSL::VERIFY_NONE.
# +certs+ is a file or directory holding CA certs to use to verify the
# server cert; Defaults to nil.
# +port+ is port to establish the SSL connection on; Defaults to 995.
def enable_ssl(verify = OpenSSL::SSL::VERIFY_PEER, certs = nil,
def enable_ssl(verify = OpenSSL::SSL::VERIFY_NONE, certs = nil,
port = POP3.default_pop3s_port)
@use_ssl = true
@verify = verify