mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
7529c53891
RFC 6066, section 3, explicitly disallows the use of an IP address as an SNI server name. So check if the connection is being made to an IP address using the resolv regexps, and do not set an SNI hostname in that case. Recent changes to LibreSSL make it more strictly follow RFC 6066, resulting an s.hostname= raising an error if passed an IP address. When such verions of LibreSSL are used, this change not only fixes the net/http tests, it also fixes tests for webrick and open-uri, which both make SSL connections to 127.0.0.1 using net/http in their tests. Avoid warning in the openssl extension by unsetting @ssl_context.verify_hostname if connecting to an IP address. Make changes so that the post_connection_check still happens when connecting to an IP address, which is necessary to keep checking that the certificate returned includes the IP address, which one of the tests depends on. Revert the previous change that modified the regexp used for checking the error message. https://github.com/ruby/net-http/commit/fa68e64bee |
||
---|---|---|
.. | ||
benchmark | ||
bundler | ||
cgi | ||
csv | ||
delegate | ||
did_you_mean | ||
drb | ||
erb | ||
error_highlight | ||
forwardable | ||
getoptlong | ||
irb | ||
logger | ||
net | ||
observer | ||
open3 | ||
optparse | ||
ostruct | ||
pstore | ||
racc | ||
random | ||
rdoc | ||
reline | ||
rinda | ||
rubygems | ||
set | ||
singleton | ||
timeout | ||
unicode_normalize | ||
uri | ||
weakref | ||
yaml | ||
abbrev.gemspec | ||
abbrev.rb | ||
base64.gemspec | ||
base64.rb | ||
benchmark.rb | ||
bundler.rb | ||
cgi.rb | ||
csv.rb | ||
delegate.rb | ||
did_you_mean.rb | ||
drb.rb | ||
English.gemspec | ||
English.rb | ||
erb.gemspec | ||
erb.rb | ||
error_highlight.rb | ||
fileutils.gemspec | ||
fileutils.rb | ||
find.gemspec | ||
find.rb | ||
forwardable.rb | ||
getoptlong.rb | ||
ipaddr.gemspec | ||
ipaddr.rb | ||
irb.rb | ||
logger.rb | ||
mkmf.rb | ||
mutex_m.gemspec | ||
mutex_m.rb | ||
observer.rb | ||
open-uri.gemspec | ||
open-uri.rb | ||
open3.rb | ||
optionparser.rb | ||
optparse.rb | ||
ostruct.rb | ||
pp.gemspec | ||
pp.rb | ||
prettyprint.gemspec | ||
prettyprint.rb | ||
pstore.rb | ||
racc.rb | ||
rdoc.rb | ||
readline.gemspec | ||
readline.rb | ||
reline.rb | ||
resolv-replace.gemspec | ||
resolv-replace.rb | ||
resolv.gemspec | ||
resolv.rb | ||
ruby2_keywords.gemspec | ||
rubygems.rb | ||
securerandom.gemspec | ||
securerandom.rb | ||
set.rb | ||
shellwords.gemspec | ||
shellwords.rb | ||
singleton.rb | ||
tempfile.gemspec | ||
tempfile.rb | ||
time.gemspec | ||
time.rb | ||
timeout.rb | ||
tmpdir.gemspec | ||
tmpdir.rb | ||
tsort.gemspec | ||
tsort.rb | ||
un.gemspec | ||
un.rb | ||
uri.rb | ||
weakref.rb | ||
yaml.rb |