mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
openssl: import v2.0.3
Import Ruby/OpenSSL 2.0.3. Only bugfixes. The full commit log since 2.0.2 (imported at r57146) can be found at: https://github.com/ruby/openssl/compare/v2.0.2...v2.0.3 ---------------------------------------------------------------- Corey Bonnell (1): Fix for ASN1::Constructive 'each' implementation Kazuki Yamaguchi (10): Fix build with static OpenSSL libraries on Windows ([ruby-core:78878] [Bug #13080]) Merge pull request #96 from CBonnell/master Merge branch 'topic/windows-static-linking-without-pkg-config' into maint appveyor.yml: update OpenSSL version to 1.0.2j buffering: fix typo in doc test/envutil: fix assert_raise_with_message x509: fix OpenSSL::X509::Name#eql? ([ruby-core:79310] [Bug #13170]) ruby-openssl-docker: update versions of Ruby and OpenSSL .travis.yml: test with Ruby 2.4 Ruby/OpenSSL 2.0.3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8afbf5e6d
commit
8795838fcb
8 changed files with 32 additions and 9 deletions
|
@ -357,6 +357,16 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase
|
|||
assert_equal(expected, name_hash(name))
|
||||
end
|
||||
|
||||
def test_equality
|
||||
name0 = OpenSSL::X509::Name.new([["DC", "org"], ["DC", "ruby-lang"], ["CN", "bar.ruby-lang.org"]])
|
||||
name1 = OpenSSL::X509::Name.new([["DC", "org"], ["DC", "ruby-lang"], ["CN", "bar.ruby-lang.org"]])
|
||||
name2 = OpenSSL::X509::Name.new([["DC", "org"], ["DC", "ruby-lang"], ["CN", "baz.ruby-lang.org"]])
|
||||
assert_equal true, name0 == name1
|
||||
assert_equal true, name0.eql?(name1)
|
||||
assert_equal false, name0 == name2
|
||||
assert_equal false, name0.eql?(name2)
|
||||
end
|
||||
|
||||
def test_dup
|
||||
name = OpenSSL::X509::Name.parse("/CN=ruby-lang.org")
|
||||
assert_equal(name.to_der, name.dup.to_der)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue