diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-16 13:32:41 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-16 13:32:41 +0000 |
| commit | 25996d294dc6c1f30632b6efb8fe172c519e2481 (patch) | |
| tree | 9dcd18d82b81963470bd4c87ea75a68ba5a3d7a8 /lib | |
| parent | 43385dc583124e46a1ea511f3a1e44f7c90e00ba (diff) | |
| download | ruby-25996d294dc6c1f30632b6efb8fe172c519e2481.tar.gz ruby-25996d294dc6c1f30632b6efb8fe172c519e2481.tar.xz ruby-25996d294dc6c1f30632b6efb8fe172c519e2481.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@12083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/pop.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb index f9d64aa8f..d0145cb5f 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -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 |
