mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): warning
for skipping server verification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05bb6b505c
commit
28e962d92c
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Sep 2 20:37:15 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): warning
|
||||
for skipping server verification.
|
||||
|
||||
Tue Sep 2 14:09:20 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/extconf.rb: check s6_addr8 in in6_addr (Tru64 UNIX).
|
||||
|
@ -312,8 +317,8 @@ Tue Aug 19 07:47:09 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
|||
|
||||
* lib/webrick/utils.rb (Utils::create_lisnteners): new method.
|
||||
|
||||
* lib/webrick/server.rb (GenericServer#start): should not
|
||||
through unknown errors. and refine comments.
|
||||
* lib/webrick/server.rb (GenericServer#start): should rescue
|
||||
unknown errors. and refine comments.
|
||||
|
||||
* ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): should close
|
||||
socket if SSLSocket raises error.
|
||||
|
|
|
@ -40,6 +40,10 @@ module Net
|
|||
end
|
||||
|
||||
def ssl_connect()
|
||||
unless @ssl_context.verify_mode
|
||||
warn "warning: peer certificate won't be verified in this SSL session."
|
||||
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
end
|
||||
@socket = OpenSSL::SSL::SSLSocket.new(@socket, @ssl_context)
|
||||
@socket.sync = true
|
||||
@socket.sync_close = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue