mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
openssl: sync with upstream repository
Import current master (01b23fa8eee2) of ruby/openssl.git.
----------------------------------------------------------------
Kazuki Yamaguchi (3):
x509name: fix OpenSSL::X509::Name#{cmp,<=>}
Ruby/OpenSSL 2.0.9
Ruby/OpenSSL 2.1.2
nobu (2):
needs openssl/opensslv.h
Remove -Wno-parentheses flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7943c0e5e6
commit
93bc102727
5 changed files with 50 additions and 9 deletions
|
|
@ -1,3 +1,15 @@
|
|||
Version 2.1.2
|
||||
=============
|
||||
|
||||
Merged changes in 2.0.9.
|
||||
|
||||
|
||||
Version 2.1.1
|
||||
=============
|
||||
|
||||
Merged changes in 2.0.8.
|
||||
|
||||
|
||||
Version 2.1.0
|
||||
=============
|
||||
|
||||
|
|
@ -55,6 +67,29 @@ Notable changes
|
|||
[[GitHub #177]](https://github.com/ruby/openssl/pull/177)
|
||||
|
||||
|
||||
Version 2.0.9
|
||||
=============
|
||||
|
||||
Security fixes
|
||||
--------------
|
||||
|
||||
* OpenSSL::X509::Name#<=> could incorrectly return 0 (= equal) for non-equal
|
||||
objects. CVE-2018-16395 is assigned for this issue.
|
||||
https://hackerone.com/reports/387250
|
||||
|
||||
Bug fixes
|
||||
---------
|
||||
|
||||
* Fixed OpenSSL::PKey::*.{new,generate} immediately aborting if the thread is
|
||||
interrupted.
|
||||
[[Bug #14882]](https://bugs.ruby-lang.org/issues/14882)
|
||||
[[GitHub #205]](https://github.com/ruby/openssl/pull/205)
|
||||
* Fixed OpenSSL::X509::Name#to_s failing with OpenSSL::X509::NameError if
|
||||
called against an empty instance.
|
||||
[[GitHub #200]](https://github.com/ruby/openssl/issues/200)
|
||||
[[GitHub #211]](https://github.com/ruby/openssl/pull/211)
|
||||
|
||||
|
||||
Version 2.0.8
|
||||
=============
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
# stub: openssl 2.1.1 ruby lib
|
||||
# stub: openssl 2.1.2 ruby lib
|
||||
# stub: ext/openssl/extconf.rb
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "openssl".freeze
|
||||
s.version = "2.1.1"
|
||||
s.version = "2.1.2"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
||||
s.metadata = { "msys2_mingw_dependencies" => "openssl" } if s.respond_to? :metadata=
|
||||
s.require_paths = ["lib".freeze]
|
||||
s.authors = ["Martin Bosslet".freeze, "SHIBATA Hiroshi".freeze, "Zachary Scott".freeze, "Kazuki Yamaguchi".freeze]
|
||||
s.date = "2018-08-08"
|
||||
s.date = "2018-10-17"
|
||||
s.description = "It wraps the OpenSSL library.".freeze
|
||||
s.email = ["ruby-core@ruby-lang.org".freeze]
|
||||
s.extensions = ["ext/openssl/extconf.rb".freeze]
|
||||
s.extra_rdoc_files = ["History.md".freeze, "README.md".freeze, "CONTRIBUTING.md".freeze]
|
||||
s.extra_rdoc_files = ["README.md".freeze, "CONTRIBUTING.md".freeze, "History.md".freeze]
|
||||
s.files = ["BSDL".freeze, "CONTRIBUTING.md".freeze, "History.md".freeze, "LICENSE.txt".freeze, "README.md".freeze, "ext/openssl/deprecation.rb".freeze, "ext/openssl/extconf.rb".freeze, "ext/openssl/openssl_missing.c".freeze, "ext/openssl/openssl_missing.h".freeze, "ext/openssl/ossl.c".freeze, "ext/openssl/ossl.h".freeze, "ext/openssl/ossl_asn1.c".freeze, "ext/openssl/ossl_asn1.h".freeze, "ext/openssl/ossl_bio.c".freeze, "ext/openssl/ossl_bio.h".freeze, "ext/openssl/ossl_bn.c".freeze, "ext/openssl/ossl_bn.h".freeze, "ext/openssl/ossl_cipher.c".freeze, "ext/openssl/ossl_cipher.h".freeze, "ext/openssl/ossl_config.c".freeze, "ext/openssl/ossl_config.h".freeze, "ext/openssl/ossl_digest.c".freeze, "ext/openssl/ossl_digest.h".freeze, "ext/openssl/ossl_engine.c".freeze, "ext/openssl/ossl_engine.h".freeze, "ext/openssl/ossl_hmac.c".freeze, "ext/openssl/ossl_hmac.h".freeze, "ext/openssl/ossl_kdf.c".freeze, "ext/openssl/ossl_kdf.h".freeze, "ext/openssl/ossl_ns_spki.c".freeze, "ext/openssl/ossl_ns_spki.h".freeze, "ext/openssl/ossl_ocsp.c".freeze, "ext/openssl/ossl_ocsp.h".freeze, "ext/openssl/ossl_pkcs12.c".freeze, "ext/openssl/ossl_pkcs12.h".freeze, "ext/openssl/ossl_pkcs7.c".freeze, "ext/openssl/ossl_pkcs7.h".freeze, "ext/openssl/ossl_pkey.c".freeze, "ext/openssl/ossl_pkey.h".freeze, "ext/openssl/ossl_pkey_dh.c".freeze, "ext/openssl/ossl_pkey_dsa.c".freeze, "ext/openssl/ossl_pkey_ec.c".freeze, "ext/openssl/ossl_pkey_rsa.c".freeze, "ext/openssl/ossl_rand.c".freeze, "ext/openssl/ossl_rand.h".freeze, "ext/openssl/ossl_ssl.c".freeze, "ext/openssl/ossl_ssl.h".freeze, "ext/openssl/ossl_ssl_session.c".freeze, "ext/openssl/ossl_version.h".freeze, "ext/openssl/ossl_x509.c".freeze, "ext/openssl/ossl_x509.h".freeze, "ext/openssl/ossl_x509attr.c".freeze, "ext/openssl/ossl_x509cert.c".freeze, "ext/openssl/ossl_x509crl.c".freeze, "ext/openssl/ossl_x509ext.c".freeze, "ext/openssl/ossl_x509name.c".freeze, "ext/openssl/ossl_x509req.c".freeze, "ext/openssl/ossl_x509revoked.c".freeze, "ext/openssl/ossl_x509store.c".freeze, "ext/openssl/ruby_missing.h".freeze, "lib/openssl.rb".freeze, "lib/openssl/bn.rb".freeze, "lib/openssl/buffering.rb".freeze, "lib/openssl/cipher.rb".freeze, "lib/openssl/config.rb".freeze, "lib/openssl/digest.rb".freeze, "lib/openssl/pkcs5.rb".freeze, "lib/openssl/pkey.rb".freeze, "lib/openssl/ssl.rb".freeze, "lib/openssl/x509.rb".freeze]
|
||||
s.homepage = "https://github.com/ruby/openssl".freeze
|
||||
s.licenses = ["Ruby".freeze]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@
|
|||
#if !defined(_OSSL_VERSION_H_)
|
||||
#define _OSSL_VERSION_H_
|
||||
|
||||
#define OSSL_VERSION "2.1.1"
|
||||
#define OSSL_VERSION "2.1.2"
|
||||
|
||||
#endif /* _OSSL_VERSION_H_ */
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ ossl_x509name_cmp(VALUE self, VALUE other)
|
|||
|
||||
result = ossl_x509name_cmp0(self, other);
|
||||
if (result < 0) return INT2FIX(-1);
|
||||
if (result > 1) return INT2FIX(1);
|
||||
if (result > 0) return INT2FIX(1);
|
||||
|
||||
return INT2FIX(0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -405,10 +405,16 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase
|
|||
end
|
||||
|
||||
def test_spaceship
|
||||
n1 = OpenSSL::X509::Name.parse_rfc2253 'CN=a'
|
||||
n2 = OpenSSL::X509::Name.parse_rfc2253 'CN=b'
|
||||
n1 = OpenSSL::X509::Name.new([["CN", "a"]])
|
||||
n2 = OpenSSL::X509::Name.new([["CN", "a"]])
|
||||
n3 = OpenSSL::X509::Name.new([["CN", "ab"]])
|
||||
|
||||
assert_equal(-1, n1 <=> n2)
|
||||
assert_equal 0, n1 <=> n2
|
||||
assert_equal -1, n1 <=> n3
|
||||
assert_equal 0, n2 <=> n1
|
||||
assert_equal -1, n2 <=> n3
|
||||
assert_equal 1, n3 <=> n1
|
||||
assert_equal 1, n3 <=> n2
|
||||
end
|
||||
|
||||
def name_hash(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue