Skip to content

Commit 556e9f7

Browse files
committed
* ext/openssl: backport changes from openssl 2.1.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@65135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b18c513 commit 556e9f7

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Thu Oct 18 00:33:13 2018 Kazuki Yamaguchi <k@rhe.jp>
2+
3+
* ext/openssl: backport changes from openssl 2.1.2.
4+
15
Wed Mar 28 23:08:46 2018 NAKAMURA Usaku <usa@ruby-lang.org>
26

37
get rid of test error/failure on Windows introduced at r62955

ext/openssl/ossl_x509name.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ ossl_x509name_cmp(VALUE self, VALUE other)
339339

340340
result = ossl_x509name_cmp0(self, other);
341341
if (result < 0) return INT2FIX(-1);
342-
if (result > 1) return INT2FIX(1);
342+
if (result > 0) return INT2FIX(1);
343343

344344
return INT2FIX(0);
345345
}

test/openssl/test_x509name.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,16 @@ def test_equals2
338338
end
339339

340340
def test_spaceship
341-
n1 = OpenSSL::X509::Name.parse 'CN=a'
342-
n2 = OpenSSL::X509::Name.parse 'CN=b'
343-
344-
assert_equal(-1, n1 <=> n2)
341+
n1 = OpenSSL::X509::Name.new([["CN", "a"]])
342+
n2 = OpenSSL::X509::Name.new([["CN", "a"]])
343+
n3 = OpenSSL::X509::Name.new([["CN", "ab"]])
344+
345+
assert_equal 0, n1 <=> n2
346+
assert_equal -1, n1 <=> n3
347+
assert_equal 0, n2 <=> n1
348+
assert_equal -1, n2 <=> n3
349+
assert_equal 1, n3 <=> n1
350+
assert_equal 1, n3 <=> n2
345351
end
346352

347353
def name_hash(name)

version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#define RUBY_VERSION "2.3.7"
1+
#define RUBY_VERSION "2.3.8"
22
#define RUBY_RELEASE_DATE "2018-10-18"
3-
#define RUBY_PATCHLEVEL 458
3+
#define RUBY_PATCHLEVEL 459
44

55
#define RUBY_RELEASE_YEAR 2018
66
#define RUBY_RELEASE_MONTH 10

0 commit comments

Comments
 (0)