Skip to content

Commit

Permalink
Merge branch 'maint-2.1' into maint-2.2
Browse files Browse the repository at this point in the history
* maint-2.1: (22 commits)
  test/openssl/test_ssl: skip test_fallback_scsv if necessary
  test/openssl/test_ssl.rb: ignore SSLError when the connection is closed
  Fixed misspellings
  ext/openssl/extconf.rb: do not use -Werror=deprecated-declarations
  Guard static variable first
  ext/openssl/ossl_ssl.c: Use const declaration if LibreSSL >= 2.8.0
  drop-in type check for rb_define_module_function
  rb_iterate now takes rb_block_call_func_t
  Add a /* fall through */ comment
  test/openssl/utils.rb: Extend the timeout
  test/test_ssl.rb: Use TLS1.2
  test/test_ssl.rb: Use larger keys
  test: use larger keys for SSL tests
  test/test_pair: fix deadlock in test_connect_accept_nonblock
  Ignore warnings about ambiguous first argument with the negative integer.
  ext/openssl/ossl_bn.c (ossl_bn_initialize): get rid of SEGV
  errno.h must be included after config.h because config.h might define _REENTRANT, _THREAD_SAFE, etc., which affect how errno is defined on some architectures
  Fix call-seq of OpenSSL.fips_mode and WIN32OLE_METHOD#name [ci skip]
  Remove -Wno-parentheses flag.
  Correctly verify abbreviated IPv6 SANs
  ...
  • Loading branch information
rhenium committed Sep 27, 2021
2 parents 0b18d18 + b74e43b commit c12b77f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions openssl.gemspec
Expand Up @@ -17,6 +17,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 2.3.0"

spec.add_runtime_dependency "ipaddr"
spec.add_development_dependency "rake"
spec.add_development_dependency "rake-compiler"
spec.add_development_dependency "test-unit", "~> 3.0"
Expand Down
16 changes: 8 additions & 8 deletions test/openssl/test_config.rb
Expand Up @@ -61,14 +61,14 @@ def test_s_parse_format
[default1 default2]\t\t # space is allowed in section name
fo =b ar # space allowed in value
[emptysection]
[doller ]
[dollar ]
foo=bar
bar = $(foo)
baz = 123$(default::bar)456${foo}798
qux = ${baz}
quxx = $qux.$qux
__EOC__
assert_equal(['default', 'default1 default2', 'doller', 'emptysection', 'foo', 'foo\\bar'], c.sections.sort)
assert_equal(['default', 'default1 default2', 'dollar', 'emptysection', 'foo', 'foo\\bar'], c.sections.sort)
assert_equal(['', 'a', 'bar', 'baz', 'd', 'dq', 'dq2', 'esc', 'foo\\bar', 'sq'], c['default'].keys.sort)
assert_equal('c', c['default'][''])
assert_equal('', c['default']['a'])
Expand All @@ -84,12 +84,12 @@ def test_s_parse_format
assert_equal('baz', c['foo\\bar']['foo\\bar'])
assert_equal('b ar', c['default1 default2']['fo'])

# dolloer
assert_equal('bar', c['doller']['foo'])
assert_equal('bar', c['doller']['bar'])
assert_equal('123baz456bar798', c['doller']['baz'])
assert_equal('123baz456bar798', c['doller']['qux'])
assert_equal('123baz456bar798.123baz456bar798', c['doller']['quxx'])
# dollar
assert_equal('bar', c['dollar']['foo'])
assert_equal('bar', c['dollar']['bar'])
assert_equal('123baz456bar798', c['dollar']['baz'])
assert_equal('123baz456bar798', c['dollar']['qux'])
assert_equal('123baz456bar798.123baz456bar798', c['dollar']['quxx'])

excn = assert_raise(OpenSSL::ConfigError) do
OpenSSL::Config.parse("foo = $bar")
Expand Down

0 comments on commit c12b77f

Please sign in to comment.