Compare commits
19 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
320f5c7666 | ||
|
|
bf3038f41d | ||
|
|
fe11680a05 | ||
|
|
345c72a827 | ||
|
|
370f73f8a8 | ||
|
|
94a588ca28 | ||
|
|
a612f78c69 | ||
|
|
c3cfe81c22 | ||
|
|
027b62ae4e | ||
|
|
763e371dd6 | ||
|
|
8855a68692 | ||
|
|
65a530cc03 | ||
|
|
dbae48339f | ||
|
|
3e278dba2f | ||
|
|
df80b74729 | ||
|
|
c7f5d94be6 | ||
|
|
22d9b04bd1 | ||
|
|
b4195d1ec6 | ||
|
|
f8ac959d34 |
23 changed files with 1119 additions and 776 deletions
|
|
@ -39,7 +39,7 @@ diff --git a/configure.ac b/configure.ac
|
||||||
index 028ef7ca3e..cdeff87871 100644
|
index 028ef7ca3e..cdeff87871 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4396,6 +4396,13 @@ AC_SUBST(rubyarchhdrdir)dnl
|
@@ -4397,6 +4397,13 @@ AC_SUBST(rubyarchhdrdir)dnl
|
||||||
AC_SUBST(sitearchhdrdir)dnl
|
AC_SUBST(sitearchhdrdir)dnl
|
||||||
AC_SUBST(vendorarchhdrdir)dnl
|
AC_SUBST(vendorarchhdrdir)dnl
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ diff --git a/configure.ac b/configure.ac
|
||||||
index 11fc237552..b77e88fc37 100644
|
index 11fc237552..b77e88fc37 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -3641,6 +3641,11 @@ AS_IF([test ${multiarch+set}], [
|
@@ -3642,6 +3642,11 @@ AS_IF([test ${multiarch+set}], [
|
||||||
])
|
])
|
||||||
|
|
||||||
archlibdir='${libdir}/${arch}'
|
archlibdir='${libdir}/${arch}'
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ diff --git a/configure.ac b/configure.ac
|
||||||
index 999e2d6d5d..11fc237552 100644
|
index 999e2d6d5d..11fc237552 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4251,7 +4251,8 @@ AS_CASE(["$ruby_version_dir_name"],
|
@@ -4252,7 +4252,8 @@ AS_CASE(["$ruby_version_dir_name"],
|
||||||
ruby_version_dir=/'${ruby_version_dir_name}'
|
ruby_version_dir=/'${ruby_version_dir_name}'
|
||||||
|
|
||||||
if test -z "${ruby_version_dir_name}"; then
|
if test -z "${ruby_version_dir_name}"; then
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ diff --git a/configure.ac b/configure.ac
|
||||||
index b77e88fc37..6bba453e3c 100644
|
index b77e88fc37..6bba453e3c 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4315,6 +4315,8 @@ AC_SUBST(vendorarchdir)dnl
|
@@ -4316,6 +4316,8 @@ AC_SUBST(vendorarchdir)dnl
|
||||||
AC_SUBST(CONFIGURE, "`echo $0 | sed 's|.*/||'`")dnl
|
AC_SUBST(CONFIGURE, "`echo $0 | sed 's|.*/||'`")dnl
|
||||||
AC_SUBST(configure_args, "`echo "${ac_configure_args}" | sed 's/\\$/$$/g'`")dnl
|
AC_SUBST(configure_args, "`echo "${ac_configure_args}" | sed 's/\\$/$$/g'`")dnl
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ diff --git a/configure.ac b/configure.ac
|
||||||
index 6bba453e3c..028ef7ca3e 100644
|
index 6bba453e3c..028ef7ca3e 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4287,6 +4287,10 @@ AC_ARG_WITH(vendorarchdir,
|
@@ -4288,6 +4288,10 @@ AC_ARG_WITH(vendorarchdir,
|
||||||
[vendorarchdir=$withval],
|
[vendorarchdir=$withval],
|
||||||
[vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby'${ruby_version_dir}}${multiarch-'${vendorlibdir}/${sitearch}'}])
|
[vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby'${ruby_version_dir}}${multiarch-'${vendorlibdir}/${sitearch}'}])
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ index 6bba453e3c..028ef7ca3e 100644
|
||||||
AS_IF([test "${LOAD_RELATIVE+set}"], [
|
AS_IF([test "${LOAD_RELATIVE+set}"], [
|
||||||
AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE)
|
AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE)
|
||||||
RUBY_EXEC_PREFIX=''
|
RUBY_EXEC_PREFIX=''
|
||||||
@@ -4311,6 +4315,7 @@ AC_SUBST(sitearchdir)dnl
|
@@ -4312,6 +4316,7 @@ AC_SUBST(sitearchdir)dnl
|
||||||
AC_SUBST(vendordir)dnl
|
AC_SUBST(vendordir)dnl
|
||||||
AC_SUBST(vendorlibdir)dnl
|
AC_SUBST(vendorlibdir)dnl
|
||||||
AC_SUBST(vendorarchdir)dnl
|
AC_SUBST(vendorarchdir)dnl
|
||||||
|
|
@ -67,15 +67,15 @@ diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
|
||||||
index b47b6e1..0b99408 100755
|
index b47b6e1..0b99408 100755
|
||||||
--- a/tool/rbinstall.rb
|
--- a/tool/rbinstall.rb
|
||||||
+++ b/tool/rbinstall.rb
|
+++ b/tool/rbinstall.rb
|
||||||
@@ -331,6 +331,7 @@ def CONFIG.[](name, mandatory = false)
|
@@ -335,6 +335,7 @@ def CONFIG.[](name, mandatory = false)
|
||||||
sitearchlibdir = CONFIG["sitearchdir"]
|
vendorlibdir = CONFIG["vendorlibdir"]
|
||||||
vendorlibdir = CONFIG["vendorlibdir"]
|
vendorarchlibdir = CONFIG["vendorarchdir"]
|
||||||
vendorarchlibdir = CONFIG["vendorarchdir"]
|
end
|
||||||
+rubygemsdir = CONFIG["rubygemsdir"]
|
+rubygemsdir = CONFIG["rubygemsdir"]
|
||||||
mandir = CONFIG["mandir", true]
|
mandir = CONFIG["mandir", true]
|
||||||
docdir = CONFIG["docdir", true]
|
docdir = CONFIG["docdir", true]
|
||||||
configure_args = Shellwords.shellwords(CONFIG["configure_args"])
|
configure_args = Shellwords.shellwords(CONFIG["configure_args"])
|
||||||
@@ -537,7 +538,13 @@ def install(src, cmd)
|
@@ -541,7 +542,13 @@ def install(src, cmd)
|
||||||
install?(:local, :comm, :lib) do
|
install?(:local, :comm, :lib) do
|
||||||
prepare "library scripts", rubylibdir
|
prepare "library scripts", rubylibdir
|
||||||
noinst = %w[*.txt *.rdoc *.gemspec]
|
noinst = %w[*.txt *.rdoc *.gemspec]
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ diff --git a/configure.ac b/configure.ac
|
||||||
index 8ea969412f..a00f2b6776 100644
|
index 8ea969412f..a00f2b6776 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4202,9 +4202,6 @@ AS_CASE(["$target_os"],
|
@@ -4203,9 +4203,6 @@ AS_CASE(["$target_os"],
|
||||||
rubyw_install_name='$(RUBYW_INSTALL_NAME)'
|
rubyw_install_name='$(RUBYW_INSTALL_NAME)'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ index 8ea969412f..a00f2b6776 100644
|
||||||
rubyarchprefix=${multiarch+'${archlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${arch}'}
|
rubyarchprefix=${multiarch+'${archlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${arch}'}
|
||||||
AC_ARG_WITH(rubyarchprefix,
|
AC_ARG_WITH(rubyarchprefix,
|
||||||
AS_HELP_STRING([--with-rubyarchprefix=DIR],
|
AS_HELP_STRING([--with-rubyarchprefix=DIR],
|
||||||
@@ -4227,56 +4224,62 @@ AC_ARG_WITH(ridir,
|
@@ -4228,56 +4225,62 @@ AC_ARG_WITH(ridir,
|
||||||
AC_SUBST(ridir)
|
AC_SUBST(ridir)
|
||||||
AC_SUBST(RI_BASE_NAME)
|
AC_SUBST(RI_BASE_NAME)
|
||||||
|
|
||||||
|
|
@ -120,7 +120,7 @@ index 8ea969412f..a00f2b6776 100644
|
||||||
|
|
||||||
AS_IF([test "${LOAD_RELATIVE+set}"], [
|
AS_IF([test "${LOAD_RELATIVE+set}"], [
|
||||||
AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE)
|
AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE)
|
||||||
@@ -4293,6 +4296,7 @@ AC_SUBST(sitearchincludedir)dnl
|
@@ -4294,6 +4297,7 @@ AC_SUBST(sitearchincludedir)dnl
|
||||||
AC_SUBST(arch)dnl
|
AC_SUBST(arch)dnl
|
||||||
AC_SUBST(sitearch)dnl
|
AC_SUBST(sitearch)dnl
|
||||||
AC_SUBST(ruby_version)dnl
|
AC_SUBST(ruby_version)dnl
|
||||||
|
|
@ -171,7 +171,7 @@ diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
|
||||||
index d4c110e..d39c9a6 100755
|
index d4c110e..d39c9a6 100755
|
||||||
--- a/tool/rbinstall.rb
|
--- a/tool/rbinstall.rb
|
||||||
+++ b/tool/rbinstall.rb
|
+++ b/tool/rbinstall.rb
|
||||||
@@ -417,7 +417,7 @@ def CONFIG.[](name, mandatory = false)
|
@@ -421,7 +421,7 @@ def CONFIG.[](name, mandatory = false)
|
||||||
|
|
||||||
install?(:doc, :rdoc) do
|
install?(:doc, :rdoc) do
|
||||||
if $rdocdir
|
if $rdocdir
|
||||||
|
|
@ -245,7 +245,7 @@ diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
|
||||||
index 0428bea..b6e090e 100644
|
index 0428bea..b6e090e 100644
|
||||||
--- a/test/rubygems/test_gem.rb
|
--- a/test/rubygems/test_gem.rb
|
||||||
+++ b/test/rubygems/test_gem.rb
|
+++ b/test/rubygems/test_gem.rb
|
||||||
@@ -1156,7 +1156,8 @@ def test_self_use_paths
|
@@ -1191,7 +1191,8 @@ def test_self_use_paths
|
||||||
|
|
||||||
def test_self_user_dir
|
def test_self_user_dir
|
||||||
parts = [@userhome, '.gem', Gem.ruby_engine]
|
parts = [@userhome, '.gem', Gem.ruby_engine]
|
||||||
|
|
@ -255,7 +255,7 @@ index 0428bea..b6e090e 100644
|
||||||
|
|
||||||
assert_equal File.join(parts), Gem.user_dir
|
assert_equal File.join(parts), Gem.user_dir
|
||||||
end
|
end
|
||||||
@@ -1283,7 +1284,7 @@ def test_self_user_home_user_drive_and_path
|
@@ -1318,7 +1319,7 @@ def test_self_user_home_user_drive_and_path
|
||||||
def test_self_vendor_dir
|
def test_self_vendor_dir
|
||||||
expected =
|
expected =
|
||||||
File.join RbConfig::CONFIG['vendordir'], 'gems',
|
File.join RbConfig::CONFIG['vendordir'], 'gems',
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
|
||||||
index 3225a05c6b..62b80c4945 100644
|
index 3225a05c6b..62b80c4945 100644
|
||||||
--- a/test/rubygems/test_gem.rb
|
--- a/test/rubygems/test_gem.rb
|
||||||
+++ b/test/rubygems/test_gem.rb
|
+++ b/test/rubygems/test_gem.rb
|
||||||
@@ -1802,6 +1802,13 @@ def test_use_gemdeps_specific
|
@@ -1837,6 +1837,13 @@ def test_use_gemdeps_specific
|
||||||
ENV['RUBYGEMS_GEMDEPS'] = rubygems_gemdeps
|
ENV['RUBYGEMS_GEMDEPS'] = rubygems_gemdeps
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,502 +0,0 @@
|
||||||
From f234e6c3d3170f37508e214cdaef78d4b2584e5a Mon Sep 17 00:00:00 2001
|
|
||||||
From: kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
|
||||||
Date: Wed, 2 Jan 2019 03:08:20 +0000
|
|
||||||
Subject: [PATCH 1/2] Try to update cert
|
|
||||||
|
|
||||||
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
|
||||||
---
|
|
||||||
test/net/fixtures/cacert.pem | 86 +++++++-------------------
|
|
||||||
test/net/fixtures/server.crt | 113 +++++++++++++++++++++++------------
|
|
||||||
test/net/fixtures/server.key | 43 ++++++++-----
|
|
||||||
3 files changed, 124 insertions(+), 118 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/net/fixtures/cacert.pem b/test/net/fixtures/cacert.pem
|
|
||||||
index 7073387877..f623bd62ed 100644
|
|
||||||
--- a/test/net/fixtures/cacert.pem
|
|
||||||
+++ b/test/net/fixtures/cacert.pem
|
|
||||||
@@ -1,66 +1,24 @@
|
|
||||||
-Certificate:
|
|
||||||
- Data:
|
|
||||||
- Version: 3 (0x2)
|
|
||||||
- Serial Number:
|
|
||||||
- b9:90:a2:bf:62:69:17:9c
|
|
||||||
- Signature Algorithm: sha1WithRSAEncryption
|
|
||||||
- Issuer: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
- Validity
|
|
||||||
- Not Before: Jan 3 01:34:17 2014 GMT
|
|
||||||
- Not After : Jan 2 01:34:17 2019 GMT
|
|
||||||
- Subject: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
- Subject Public Key Info:
|
|
||||||
- Public Key Algorithm: rsaEncryption
|
|
||||||
- RSA Public Key: (1024 bit)
|
|
||||||
- Modulus (1024 bit):
|
|
||||||
- 00:db:75:d0:45:de:b1:df:bf:71:a0:0e:b0:a5:e6:
|
|
||||||
- bc:f4:1c:9d:e5:25:67:64:c5:7b:cb:f1:af:c6:be:
|
|
||||||
- 9a:aa:ea:7e:0f:cc:05:af:ef:40:69:06:b2:c9:13:
|
|
||||||
- 9d:7e:eb:a2:06:e2:ea:7d:07:c7:c7:99:c7:fb:d5:
|
|
||||||
- b8:eb:63:77:62:2b:18:12:c3:53:58:d0:f5:c7:40:
|
|
||||||
- 0c:01:d1:26:82:34:16:09:e3:dc:65:f4:dc:bb:5d:
|
|
||||||
- a5:41:60:e7:a9:74:ba:d7:4c:b6:a3:9c:c5:8c:89:
|
|
||||||
- af:cb:e8:9f:05:fe:ea:fe:64:24:bf:e7:ed:e3:f6:
|
|
||||||
- d0:fc:d6:eb:fc:06:82:10:fb
|
|
||||||
- Exponent: 65537 (0x10001)
|
|
||||||
- X509v3 extensions:
|
|
||||||
- X509v3 Subject Key Identifier:
|
|
||||||
- E8:7E:58:AC:13:7B:03:22:8D:9E:AF:32:0B:84:89:80:80:0C:1E:C2
|
|
||||||
- X509v3 Authority Key Identifier:
|
|
||||||
- keyid:E8:7E:58:AC:13:7B:03:22:8D:9E:AF:32:0B:84:89:80:80:0C:1E:C2
|
|
||||||
- DirName:/C=JP/ST=Shimane/L=Matz-e city/O=Ruby Core Team/CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
- serial:B9:90:A2:BF:62:69:17:9C
|
|
||||||
-
|
|
||||||
- X509v3 Basic Constraints:
|
|
||||||
- CA:TRUE
|
|
||||||
- Signature Algorithm: sha1WithRSAEncryption
|
|
||||||
- 8f:77:06:4e:31:72:12:ee:68:09:70:27:d4:31:85:ef:10:95:
|
|
||||||
- f9:0f:2b:66:63:08:37:88:6e:b7:9b:40:3e:18:77:33:86:e8:
|
|
||||||
- 61:6a:b7:3c:cb:c7:a6:d6:d5:92:6a:1f:56:d0:9f:5c:32:56:
|
|
||||||
- d3:37:52:fe:0e:20:c2:7a:0d:fe:2d:3c:81:da:b8:7f:4d:6a:
|
|
||||||
- 08:01:d9:be:7a:a2:15:be:a6:ce:49:64:90:8c:9a:ca:6e:2e:
|
|
||||||
- 84:48:1d:94:19:56:94:46:aa:25:9b:68:c2:80:60:bf:cb:2e:
|
|
||||||
- 35:03:ea:0a:65:5a:33:38:c6:cc:81:46:c0:bc:36:86:96:39:
|
|
||||||
- 10:7d
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
-MIIDjTCCAvagAwIBAgIJALmQor9iaRecMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYD
|
|
||||||
-VQQGEwJKUDEQMA4GA1UECBMHU2hpbWFuZTEUMBIGA1UEBxMLTWF0ei1lIGNpdHkx
|
|
||||||
-FzAVBgNVBAoTDlJ1YnkgQ29yZSBUZWFtMRUwEwYDVQQDEwxSdWJ5IFRlc3QgQ0Ex
|
|
||||||
-JTAjBgkqhkiG9w0BCQEWFnNlY3VyaXR5QHJ1YnktbGFuZy5vcmcwHhcNMTQwMTAz
|
|
||||||
-MDEzNDE3WhcNMTkwMTAyMDEzNDE3WjCBjDELMAkGA1UEBhMCSlAxEDAOBgNVBAgT
|
|
||||||
-B1NoaW1hbmUxFDASBgNVBAcTC01hdHotZSBjaXR5MRcwFQYDVQQKEw5SdWJ5IENv
|
|
||||||
-cmUgVGVhbTEVMBMGA1UEAxMMUnVieSBUZXN0IENBMSUwIwYJKoZIhvcNAQkBFhZz
|
|
||||||
-ZWN1cml0eUBydWJ5LWxhbmcub3JnMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
|
|
||||||
-gQDbddBF3rHfv3GgDrCl5rz0HJ3lJWdkxXvL8a/Gvpqq6n4PzAWv70BpBrLJE51+
|
|
||||||
-66IG4up9B8fHmcf71bjrY3diKxgSw1NY0PXHQAwB0SaCNBYJ49xl9Ny7XaVBYOep
|
|
||||||
-dLrXTLajnMWMia/L6J8F/ur+ZCS/5+3j9tD81uv8BoIQ+wIDAQABo4H0MIHxMB0G
|
|
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EAhA6CSpmRg0pqc+
|
|
||||||
+mA==
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
diff --git a/test/net/fixtures/server.crt b/test/net/fixtures/server.crt
|
|
||||||
index fa4f99493a..817ecc222c 100644
|
|
||||||
--- a/test/net/fixtures/server.crt
|
|
||||||
+++ b/test/net/fixtures/server.crt
|
|
||||||
@@ -1,48 +1,83 @@
|
|
||||||
Certificate:
|
|
||||||
Data:
|
|
||||||
- Version: 1 (0x0)
|
|
||||||
- Serial Number: 0 (0x0)
|
|
||||||
- Signature Algorithm: sha1WithRSAEncryption
|
|
||||||
+ Version: 3 (0x2)
|
|
||||||
+ Serial Number: 1 (0x1)
|
|
||||||
+ Signature Algorithm: sha256WithRSAEncryption
|
|
||||||
Issuer: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
Validity
|
|
||||||
- Not Before: Jan 3 01:34:17 2014 GMT
|
|
||||||
- Not After : Jan 2 01:34:17 2019 GMT
|
|
||||||
- Subject: C=JP, ST=Shimane, O=Ruby Core Team, OU=Ruby Test, CN=localhost
|
|
||||||
+ Not Before: Jan 2 03:06:53 2019 GMT
|
|
||||||
+ Not After : Jan 1 03:06:53 2024 GMT
|
|
||||||
+ Subject: C=JP, ST=Shimane, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
Subject Public Key Info:
|
|
||||||
Public Key Algorithm: rsaEncryption
|
|
||||||
- RSA Public Key: (1024 bit)
|
|
||||||
- Modulus (1024 bit):
|
|
||||||
- 00:db:75:d0:45:de:b1:df:bf:71:a0:0e:b0:a5:e6:
|
|
||||||
- bc:f4:1c:9d:e5:25:67:64:c5:7b:cb:f1:af:c6:be:
|
|
||||||
- 9a:aa:ea:7e:0f:cc:05:af:ef:40:69:06:b2:c9:13:
|
|
||||||
- 9d:7e:eb:a2:06:e2:ea:7d:07:c7:c7:99:c7:fb:d5:
|
|
||||||
- b8:eb:63:77:62:2b:18:12:c3:53:58:d0:f5:c7:40:
|
|
||||||
- 0c:01:d1:26:82:34:16:09:e3:dc:65:f4:dc:bb:5d:
|
|
||||||
- a5:41:60:e7:a9:74:ba:d7:4c:b6:a3:9c:c5:8c:89:
|
|
||||||
- af:cb:e8:9f:05:fe:ea:fe:64:24:bf:e7:ed:e3:f6:
|
|
||||||
- d0:fc:d6:eb:fc:06:82:10:fb
|
|
||||||
+ Public-Key: (2048 bit)
|
|
||||||
+ Modulus:
|
|
||||||
+ 00:c1:a9:64:ef:d3:f2:e1:1a:7f:24:df:7f:65:86:
|
|
||||||
+ c1:98:55:16:83:91:16:5b:63:6e:26:bb:c0:73:68:
|
|
||||||
+ 7b:f7:00:ba:37:db:7f:a9:5c:c8:98:aa:43:96:87:
|
|
||||||
+ e1:a0:63:69:0c:d8:22:90:f5:56:22:b1:57:6e:71:
|
|
||||||
+ 3b:30:04:d0:64:4d:38:33:a0:ea:c1:16:3d:16:be:
|
|
||||||
+ c0:49:4c:f0:14:15:af:09:95:da:bf:c7:23:34:c3:
|
|
||||||
+ 7d:af:b7:70:b3:6d:1b:de:21:93:c0:7c:6c:0e:fd:
|
|
||||||
+ 0e:e5:ff:f3:80:51:0c:df:80:7c:40:46:c9:ca:57:
|
|
||||||
+ d4:88:02:0f:f0:1e:14:18:f1:98:0f:c6:42:1d:cc:
|
|
||||||
+ 90:29:71:1b:af:4a:22:e0:e7:86:fc:dd:d3:d8:84:
|
|
||||||
+ 0e:5e:f0:9b:93:5f:0a:9a:1d:f8:f5:f3:e7:c7:b0:
|
|
||||||
+ 7a:0e:25:20:13:02:1a:22:c2:d9:e0:7f:4f:a1:7f:
|
|
||||||
+ 72:f6:e6:e1:14:7c:c5:93:7f:a6:96:3b:ab:d8:f1:
|
|
||||||
+ dc:2b:01:d6:e5:fe:5c:cf:08:db:06:e9:fd:7d:bd:
|
|
||||||
+ fe:2c:f4:8a:7b:9f:15:88:05:2e:f7:ba:c9:86:7e:
|
|
||||||
+ 14:50:f4:96:a1:84:17:5d:f7:8b:0a:7a:14:2c:de:
|
|
||||||
+ ca:00:74:f8:23:32:9d:66:af:1c:a6:58:1a:de:82:
|
|
||||||
+ 96:a9
|
|
||||||
Exponent: 65537 (0x10001)
|
|
||||||
- Signature Algorithm: sha1WithRSAEncryption
|
|
||||||
- 85:f5:d3:05:8b:8c:f4:43:1c:88:f2:8f:b2:f2:93:77:b7:3d:
|
|
||||||
- 95:c6:a0:34:bc:33:6a:d8:85:5f:3e:86:08:10:c5:5c:c1:76:
|
|
||||||
- a3:53:3c:dc:38:98:23:97:e7:da:21:ac:e8:4d:3c:96:70:29:
|
|
||||||
- ff:ff:1e:4a:9a:17:2b:db:04:62:b9:ef:ab:ea:a7:a5:e8:7c:
|
|
||||||
- b1:d5:ed:30:a8:6c:78:de:51:7e:e3:8a:c2:a4:64:a8:63:a2:
|
|
||||||
- bc:fd:43:9c:f3:55:7d:54:c9:6a:d8:53:1c:4b:6b:03:aa:b6:
|
|
||||||
- 19:e6:a4:4f:47:00:96:c5:42:59:85:4e:c3:4e:cd:41:82:53:
|
|
||||||
- 10:f8
|
|
||||||
+ X509v3 extensions:
|
|
||||||
+ X509v3 Basic Constraints:
|
|
||||||
+ CA:FALSE
|
|
||||||
+ Netscape Comment:
|
|
||||||
+ OpenSSL Generated Certificate
|
|
||||||
+ X509v3 Subject Key Identifier:
|
|
||||||
+ F2:C9:35:05:31:EF:08:EE:EF:B0:FE:1A:72:C2:9E:70:E3:E3:EC:43
|
|
||||||
+ X509v3 Authority Key Identifier:
|
|
||||||
+ keyid:F6:D1:22:29:D5:3D:23:D7:5E:AD:0C:9C:E6:75:8F:9D:CD:F8:9D:53
|
|
||||||
+
|
|
||||||
+ Signature Algorithm: sha256WithRSAEncryption
|
|
||||||
+ 02:e7:0a:22:7c:5e:d9:92:d2:b9:fb:4a:bf:75:3f:00:e6:19:
|
|
||||||
+ 3e:90:a5:9d:38:41:82:4c:6f:b9:f3:f2:58:a1:91:7f:4a:d4:
|
|
||||||
+ 28:38:9c:7c:4d:6c:2f:2f:95:f5:55:55:25:a1:71:0c:05:42:
|
|
||||||
+ 08:a3:a6:ab:e3:04:47:9a:42:24:8f:b2:ba:50:55:af:b8:d7:
|
|
||||||
+ fc:1a:13:92:5d:75:7d:e1:4d:87:5e:57:82:c5:5f:d6:b8:ea:
|
|
||||||
+ 86:4e:05:b0:7f:07:27:a5:36:1f:1e:54:f1:32:35:7f:9c:75:
|
|
||||||
+ 26:6a:21:75:37:32:bb:89:01:78:97:cc:d3:de:3a:e8:ce:45:
|
|
||||||
+ ed:12:24:2e:a8:25:73:b3:cd:70:47:b8:81:f9:06:aa:8d:87:
|
|
||||||
+ 2f:a9:cd:fe:79:40:cc:c9:47:3d:2f:82:c2:82:bf:5d:8a:06:
|
|
||||||
+ 5b:a9:90:d3:b0:a7:fc:f3:1a:fb:0e:cb:8f:d8:f2:4e:f4:8d:
|
|
||||||
+ bb:4b:d5:2d:20:c0:6e:d5:08:2b:81:32:c4:e0:d2:4b:31:27:
|
|
||||||
+ f1:55:96:0e:d4:b9:92:02:71:98:69:e5:73:cc:52:45:a0:07:
|
|
||||||
+ fb:28:9e:b0:fc:b1:58:42:5a:08:4a:30:49:e5:f1:a5:c8:d5:
|
|
||||||
+ 8a:67:f0:ed:9e:3f:1b:71:a6:80:91:81:cb:1a:3d:b5:8e:87:
|
|
||||||
+ 9d:64:28:ce
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
-MIICXDCCAcUCAQAwDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAkpQMRAwDgYD
|
|
||||||
-VQQIEwdTaGltYW5lMRQwEgYDVQQHEwtNYXR6LWUgY2l0eTEXMBUGA1UEChMOUnVi
|
|
||||||
-eSBDb3JlIFRlYW0xFTATBgNVBAMTDFJ1YnkgVGVzdCBDQTElMCMGCSqGSIb3DQEJ
|
|
||||||
-ARYWc2VjdXJpdHlAcnVieS1sYW5nLm9yZzAeFw0xNDAxM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LSDAbtUIK4EyxODS
|
|
||||||
+SzEn8VWWDtS5kgJxmGnlc8xSRaAH+yiesPyxWEJaCEowSeXxpcjVimfw7Z4/G3Gm
|
|
||||||
+gJGByxo9tY6HnWQozg==
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
diff --git a/test/net/fixtures/server.key b/test/net/fixtures/server.key
|
|
||||||
index 7c57546ece..1e73232728 100644
|
|
||||||
--- a/test/net/fixtures/server.key
|
|
||||||
+++ b/test/net/fixtures/server.key
|
|
||||||
@@ -1,15 +1,28 @@
|
|
||||||
------BEGIN RSA PRIVATE KEY-----
|
|
||||||
-MIICXQIBAAKBgQDbddBF3rHfv3GgDrCl5rz0HJ3lJWdkxXvL8a/Gvpqq6n4PzAWv
|
|
||||||
-70BpBrLJE51+66IG4up9B8fHmcf71bjrY3diKxgSw1NY0PXHQAwB0SaCNBYJ49xl
|
|
||||||
-9Ny7XaVBYOepdLrXTLajnMWMia/L6J8F/ur+ZCS/5+3j9tD81uv8BoIQ+wIDAQAB
|
|
||||||
-AoGAGtYHR+P5gFDaxiXFuCPFC1zMeg7e29XCU6gURIteQnQ2QhxCvcbV64HkLu51
|
|
||||||
-HeYWhB0Pa4aeCWxmpgb2e+JH4MEoIjeJSGyZQeqwkQLgWJDdvkgWx5am58QzA60I
|
|
||||||
-ipkZ9QHcPffSs5RiGx4yfr58KqAmwFphGCY8W7v4LqaENdECQQD9H5VTW9g4gj1c
|
|
||||||
-j3uNYvSI/D7a9P7gfI+ziczuwMm5xsBx3D/t5TAr3SJKNne3sl1E6ZERCUbzxf+C
|
|
||||||
-k58EiHx1AkEA3fRLGqDOq7EcQhbjTcA/v/t5MwlGEUsS9+XrqOWn50YuoIwRZJ3v
|
|
||||||
-qHRQzfQfFNklGtfBvwQ4md3irXjMeGVprwJBAMEAuwiDiHuV+xm/ofKtmE13IKot
|
|
||||||
-ksYy1BOOp/8IawhHXueyi+BmF/PqOkIiA+jCjNGF0oIN89beizPSQbbgJx0CQG/K
|
|
||||||
-qL1bu1ys0y/SeWBi8XkP/0aeaCUzq/UiYCTsrzoEll2UzvnftqMhGsXxLGqCyHaR
|
|
||||||
-r2s3hA6zvIVlL4+AfM8CQQClq+WDrC5VKciLYakZNWJjV1m+H2Ut/0fXdUjKHajE
|
|
||||||
-FWLcsrOhADf6bkTb71GwPxnKRkkRmud5upP0ZYYTqM4X
|
|
||||||
------END RSA PRIVATE KEY-----
|
|
||||||
+-----BEGIN PRIVATE KEY-----
|
|
||||||
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDBqWTv0/LhGn8k
|
|
||||||
+339lhsGYVRaDkRZbY24mu8BzaHv3ALo323+pXMiYqkOWh+GgY2kM2CKQ9VYisVdu
|
|
||||||
+cTswBNBkTTgzoOrBFj0WvsBJTPAUFa8Jldq/xyM0w32vt3CzbRveIZPAfGwO/Q7l
|
|
||||||
+//OAUQzfgHxARsnKV9SIAg/wHhQY8ZgPxkIdzJApcRuvSiLg54b83dPYhA5e8JuT
|
|
||||||
+XwqaHfj18+fHsHoOJSATAhoiwtngf0+hf3L25uEUfMWTf6aWO6vY8dwrAdbl/lzP
|
|
||||||
+CNsG6f19vf4s9Ip7nxWIBS73usmGfhRQ9JahhBdd94sKehQs3soAdPgjMp1mrxym
|
|
||||||
+WBregpapAgMBAAECggEAYQJ20oBMcSBxwknGqlfnkGRHI97A4UScgACa9fTH7EJM
|
|
||||||
+BgEJIRCeV4Mq2jP0/P/vNoTqQ8zxue02C9fiuzoeHbBkz8/y6Ig4T7V74vwMYzM9
|
|
||||||
+fEK50klxxFONGUF9zhOA2zPcrJZnFtcC6InfM07mcOsO0q/jE14N05ec3j5i+N7j
|
|
||||||
+hDHsHjS3hUiSEGra/U6TRGA26imDUZR5S3h3WMuFmpQgAg0STHc2inYjS9iVhn+T
|
|
||||||
+uAV2igYR89MOTcH1ZVoxjeYXwhqjWT6Kbw4Er4TWTVzwGf9ktv04EjZjhgUAqw7Q
|
|
||||||
+8Sc7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-----END PRIVATE KEY-----
|
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
|
|
||||||
|
|
||||||
From 1e0b49a293d3792826c67b7e05c5fcbd09c9ea6e Mon Sep 17 00:00:00 2001
|
|
||||||
From: kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
|
||||||
Date: Wed, 2 Jan 2019 03:29:01 +0000
|
|
||||||
Subject: [PATCH 2/2] Try to update cert (2nd try)
|
|
||||||
|
|
||||||
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
|
||||||
---
|
|
||||||
test/net/fixtures/server.crt | 115 +++++++++++++++++------------------
|
|
||||||
test/net/fixtures/server.key | 52 ++++++++--------
|
|
||||||
2 files changed, 83 insertions(+), 84 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/net/fixtures/server.crt b/test/net/fixtures/server.crt
|
|
||||||
index 817ecc222c..5ca78a6d14 100644
|
|
||||||
--- a/test/net/fixtures/server.crt
|
|
||||||
+++ b/test/net/fixtures/server.crt
|
|
||||||
@@ -1,35 +1,35 @@
|
|
||||||
Certificate:
|
|
||||||
Data:
|
|
||||||
Version: 3 (0x2)
|
|
||||||
- Serial Number: 1 (0x1)
|
|
||||||
+ Serial Number: 2 (0x2)
|
|
||||||
Signature Algorithm: sha256WithRSAEncryption
|
|
||||||
Issuer: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
Validity
|
|
||||||
- Not Before: Jan 2 03:06:53 2019 GMT
|
|
||||||
- Not After : Jan 1 03:06:53 2024 GMT
|
|
||||||
- Subject: C=JP, ST=Shimane, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
|
|
||||||
+ Not Before: Jan 2 03:27:13 2019 GMT
|
|
||||||
+ Not After : Jan 1 03:27:13 2024 GMT
|
|
||||||
+ Subject: C=JP, ST=Shimane, O=Ruby Core Team, OU=Ruby Test, CN=localhost
|
|
||||||
Subject Public Key Info:
|
|
||||||
Public Key Algorithm: rsaEncryption
|
|
||||||
Public-Key: (2048 bit)
|
|
||||||
Modulus:
|
|
||||||
- 00:c1:a9:64:ef:d3:f2:e1:1a:7f:24:df:7f:65:86:
|
|
||||||
- c1:98:55:16:83:91:16:5b:63:6e:26:bb:c0:73:68:
|
|
||||||
- 7b:f7:00:ba:37:db:7f:a9:5c:c8:98:aa:43:96:87:
|
|
||||||
- e1:a0:63:69:0c:d8:22:90:f5:56:22:b1:57:6e:71:
|
|
||||||
- 3b:30:04:d0:64:4d:38:33:a0:ea:c1:16:3d:16:be:
|
|
||||||
- c0:49:4c:f0:14:15:af:09:95:da:bf:c7:23:34:c3:
|
|
||||||
- 7d:af:b7:70:b3:6d:1b:de:21:93:c0:7c:6c:0e:fd:
|
|
||||||
- 0e:e5:ff:f3:80:51:0c:df:80:7c:40:46:c9:ca:57:
|
|
||||||
- d4:88:02:0f:f0:1e:14:18:f1:98:0f:c6:42:1d:cc:
|
|
||||||
- 90:29:71:1b:af:4a:22:e0:e7:86:fc:dd:d3:d8:84:
|
|
||||||
- 0e:5e:f0:9b:93:5f:0a:9a:1d:f8:f5:f3:e7:c7:b0:
|
|
||||||
- 7a:0e:25:20:13:02:1a:22:c2:d9:e0:7f:4f:a1:7f:
|
|
||||||
- 72:f6:e6:e1:14:7c:c5:93:7f:a6:96:3b:ab:d8:f1:
|
|
||||||
- dc:2b:01:d6:e5:fe:5c:cf:08:db:06:e9:fd:7d:bd:
|
|
||||||
- fe:2c:f4:8a:7b:9f:15:88:05:2e:f7:ba:c9:86:7e:
|
|
||||||
- 14:50:f4:96:a1:84:17:5d:f7:8b:0a:7a:14:2c:de:
|
|
||||||
- ca:00:74:f8:23:32:9d:66:af:1c:a6:58:1a:de:82:
|
|
||||||
- 96:a9
|
|
||||||
+ 00:e8:da:9c:01:2e:2b:10:ec:49:cd:5e:07:13:07:
|
|
||||||
+ 9c:70:9e:c6:74:bc:13:c2:e1:6f:c6:82:fd:e3:48:
|
|
||||||
+ e0:2c:a5:68:c7:9e:42:de:60:54:65:e6:6a:14:57:
|
|
||||||
+ 7a:30:d0:cc:b5:b6:d9:c3:d2:df:c9:25:97:54:67:
|
|
||||||
+ cf:f6:be:5e:cb:8b:ee:03:c5:e1:e2:f9:e7:f7:d1:
|
|
||||||
+ 0c:47:f0:b8:da:33:5a:ad:41:ad:e7:b5:a2:7b:b7:
|
|
||||||
+ bf:30:da:60:f8:e3:54:a2:bc:3a:fd:1b:74:d9:dc:
|
|
||||||
+ 74:42:e9:29:be:df:ac:b4:4f:eb:32:f4:06:f1:e1:
|
|
||||||
+ 8c:4b:a8:8b:fb:29:e7:b1:bf:1d:01:ee:73:0f:f9:
|
|
||||||
+ 40:dc:d5:15:79:d9:c6:73:d0:c0:dd:cb:e4:da:19:
|
|
||||||
+ 47:80:c6:14:04:72:fd:9a:7c:8f:11:82:76:49:04:
|
|
||||||
+ 79:cc:f2:5c:31:22:95:13:3e:5d:40:a6:4d:e0:a3:
|
|
||||||
+ 02:26:7d:52:3b:bb:ed:65:a1:0f:ed:6b:b0:3c:d4:
|
|
||||||
+ de:61:15:5e:d3:dd:68:09:9f:4a:57:a5:c2:a9:6d:
|
|
||||||
+ 86:92:c5:f4:a4:d4:b7:13:3b:52:63:24:05:e2:cc:
|
|
||||||
+ e3:8a:3c:d4:35:34:2b:10:bb:58:72:e7:e1:8d:1d:
|
|
||||||
+ 74:8c:61:16:20:3d:d0:1c:4e:8f:6e:fd:fe:64:10:
|
|
||||||
+ 4f:41
|
|
||||||
Exponent: 65537 (0x10001)
|
|
||||||
X509v3 extensions:
|
|
||||||
X509v3 Basic Constraints:
|
|
||||||
@@ -37,47 +37,46 @@ Certificate:
|
|
||||||
Netscape Comment:
|
|
||||||
OpenSSL Generated Certificate
|
|
||||||
X509v3 Subject Key Identifier:
|
|
||||||
- F2:C9:35:05:31:EF:08:EE:EF:B0:FE:1A:72:C2:9E:70:E3:E3:EC:43
|
|
||||||
+ ED:28:C2:7E:AB:4B:C8:E8:FE:55:6D:66:95:31:1C:2D:60:F9:02:36
|
|
||||||
X509v3 Authority Key Identifier:
|
|
||||||
keyid:F6:D1:22:29:D5:3D:23:D7:5E:AD:0C:9C:E6:75:8F:9D:CD:F8:9D:53
|
|
||||||
|
|
||||||
Signature Algorithm: sha256WithRSAEncryption
|
|
||||||
- 02:e7:0a:22:7c:5e:d9:92:d2:b9:fb:4a:bf:75:3f:00:e6:19:
|
|
||||||
- 3e:90:a5:9d:38:41:82:4c:6f:b9:f3:f2:58:a1:91:7f:4a:d4:
|
|
||||||
- 28:38:9c:7c:4d:6c:2f:2f:95:f5:55:55:25:a1:71:0c:05:42:
|
|
||||||
- 08:a3:a6:ab:e3:04:47:9a:42:24:8f:b2:ba:50:55:af:b8:d7:
|
|
||||||
- fc:1a:13:92:5d:75:7d:e1:4d:87:5e:57:82:c5:5f:d6:b8:ea:
|
|
||||||
- 86:4e:05:b0:7f:07:27:a5:36:1f:1e:54:f1:32:35:7f:9c:75:
|
|
||||||
- 26:6a:21:75:37:32:bb:89:01:78:97:cc:d3:de:3a:e8:ce:45:
|
|
||||||
- ed:12:24:2e:a8:25:73:b3:cd:70:47:b8:81:f9:06:aa:8d:87:
|
|
||||||
- 2f:a9:cd:fe:79:40:cc:c9:47:3d:2f:82:c2:82:bf:5d:8a:06:
|
|
||||||
- 5b:a9:90:d3:b0:a7:fc:f3:1a:fb:0e:cb:8f:d8:f2:4e:f4:8d:
|
|
||||||
- bb:4b:d5:2d:20:c0:6e:d5:08:2b:81:32:c4:e0:d2:4b:31:27:
|
|
||||||
- f1:55:96:0e:d4:b9:92:02:71:98:69:e5:73:cc:52:45:a0:07:
|
|
||||||
- fb:28:9e:b0:fc:b1:58:42:5a:08:4a:30:49:e5:f1:a5:c8:d5:
|
|
||||||
- 8a:67:f0:ed:9e:3f:1b:71:a6:80:91:81:cb:1a:3d:b5:8e:87:
|
|
||||||
- 9d:64:28:ce
|
|
||||||
+ 1d:b8:c5:8b:72:41:20:65:ad:27:6f:15:63:06:26:12:8d:9c:
|
|
||||||
+ ad:ca:f4:db:97:b4:90:cb:ff:35:94:bb:2a:a7:a1:ab:1e:35:
|
|
||||||
+ 2d:a5:3f:c9:24:b0:1a:58:89:75:3e:81:0a:2c:4f:98:f9:51:
|
|
||||||
+ fb:c0:a3:09:d0:0a:9b:e7:a2:b7:c3:60:40:c8:f4:6d:b2:6a:
|
|
||||||
+ 56:12:17:4c:00:24:31:df:9c:60:ae:b1:68:54:a9:e6:b5:4a:
|
|
||||||
+ 04:e6:92:05:86:d9:5a:dc:96:30:a5:58:de:14:99:0f:e5:15:
|
|
||||||
+ 89:3e:9b:eb:80:e3:bd:83:c3:ea:33:35:4b:3e:2f:d3:0d:64:
|
|
||||||
+ 93:67:7f:8d:f5:3f:0c:27:bc:37:5a:cc:d6:47:16:af:5a:62:
|
|
||||||
+ d2:da:51:f8:74:06:6b:24:ad:28:68:08:98:37:7d:ed:0e:ab:
|
|
||||||
+ 1e:82:61:05:d0:ba:75:a0:ab:21:b0:9a:fd:2b:54:86:1d:0d:
|
|
||||||
+ 1f:c2:d4:77:1f:72:26:5e:ad:8a:9f:09:36:6d:44:be:74:c2:
|
|
||||||
+ 5a:3e:ff:5c:9d:75:d6:38:7b:c5:39:f9:44:6e:a1:d1:8e:ff:
|
|
||||||
+ 63:db:c4:bb:c6:91:92:ca:5c:60:9b:1d:eb:0a:de:08:ee:bf:
|
|
||||||
+ da:76:03:65:62:29:8b:f8:7f:c7:86:73:1e:f6:1f:2d:89:69:
|
|
||||||
+ fd:be:bd:6e
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
-MIID+TCCAuGgAwIBAgIBATANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCSlAx
|
|
||||||
+MIID4zCCAsugAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCSlAx
|
|
||||||
EDAOBgNVBAgMB1N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eLM44o81DU0KxC7WHLn4Y0d
|
|
||||||
+dIxhFiA90BxOj279/mQQT0ECAwEAAaN7MHkwCQYDVR0TBAIwADAsBglghkgBhvhC
|
|
||||||
+AQ0EHxYdT3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFO0o
|
|
||||||
+wn6rS8jo/lVtZpUxHC1g+QI2MB8GA1UdIwQYMBaAFPbRIinVPSPXXq0MnOZ1j53N
|
|
||||||
++J1TMA0GCSqGSIb3DQEBCwUAA4IBAQAduMWLckEgZa0nbxVjBiYSjZytyvTbl7SQ
|
|
||||||
+y/81lLsqp6GrHjUtpT/JJLAaWIl1PoEKLE+Y+VH7wKMJ0Aqb56K3w2BAyPRtsmpW
|
|
||||||
+EhdMACQx35xgrrFoVKnmtUoE5pIFhtla3JYwpVjeFJkP5RWJPpvrgOO9g8PqMzVL
|
|
||||||
+Pi/TDWSTZ3+N9T8MJ7w3WszWRxavWmLS2lH4dAZrJK0oaAiYN33tDqsegmEF0Lp1
|
|
||||||
+oKshsJr9K1SGHQ0fwtR3H3ImXq2Knwk2bUS+dMJaPv9cnXXWOHvFOflEbqHRjv9j
|
|
||||||
+28S7xpGSylxgmx3rCt4I7r/adgNlYimL+H/HhnMe9h8tiWn9vr1u
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
diff --git a/test/net/fixtures/server.key b/test/net/fixtures/server.key
|
|
||||||
index 1e73232728..7f2380e71e 100644
|
|
||||||
--- a/test/net/fixtures/server.key
|
|
||||||
+++ b/test/net/fixtures/server.key
|
|
||||||
@@ -1,28 +1,28 @@
|
|
||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
-MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDBqWTv0/LhGn8k
|
|
||||||
-339lhsGYVRaDkRZbY24mu8BzaHv3ALo323+pXMiYqkOWh+GgY2kM2CKQ9VYisVdu
|
|
||||||
-cTswBNBkTTgzoOrBFj0WvsBJ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
+kap//l2EbObiWyaERunckdVcW0lcN+KK75J/TGwPoOwQsLvTpPe65kxRGGrtDsEQ
|
|
||||||
+uCDk/+v3KkZPLgdrrTAih9FhJ+PVN8tMcb+6IM4SA4fFFr/UPJEwct0LJ3oQ0grJ
|
|
||||||
+y+HPWFHb/Uurh7t99/4H98uR02sjQh1wOeEmm78mzQKBgQDm+LzGH0se6CXQ6cdZ
|
|
||||||
+g1JRZeXkDEsrW3hfAsW62xJQmXcWxBoblP9OamMY+A06rM5og3JbDk5Zm6JsOaA8
|
|
||||||
+wS2gw4ilp46jors4eQey8ux7kB9LzdBoDBBElnsbjLO8oBNZlVcYXg+6BOl/CUi7
|
|
||||||
+2whRF0FEjKA8ehrNhAq+VFfFNw==
|
|
||||||
-----END PRIVATE KEY-----
|
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
From e71ca6cdcf108e6a2fa47ec9fadefe7554717908 Mon Sep 17 00:00:00 2001
|
|
||||||
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
|
||||||
Date: Fri, 26 Oct 2018 01:47:09 +0000
|
|
||||||
Subject: [PATCH] Update for tzdata-2018f
|
|
||||||
|
|
||||||
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
|
||||||
---
|
|
||||||
test/ruby/test_time_tz.rb | 12 +++++++++---
|
|
||||||
1 file changed, 9 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
|
|
||||||
index 2da4fd8d9ce4..328fde48fc34 100644
|
|
||||||
--- a/test/ruby/test_time_tz.rb
|
|
||||||
+++ b/test/ruby/test_time_tz.rb
|
|
||||||
@@ -86,7 +86,9 @@ def group_by(e, &block)
|
|
||||||
has_lisbon_tz &&= have_tz_offset?("Europe/Lisbon")
|
|
||||||
CORRECT_TOKYO_DST_1951 = with_tz("Asia/Tokyo") {
|
|
||||||
if Time.local(1951, 5, 6, 12, 0, 0).dst? # noon, DST
|
|
||||||
- Time.local(1951, 5, 6, 1, 0, 0).dst? # DST with fixed tzdata
|
|
||||||
+ if Time.local(1951, 5, 6, 1, 0, 0).dst? # DST with fixed tzdata
|
|
||||||
+ Time.local(1951, 9, 8, 23, 0, 0).dst? ? "2018f" : "2018e"
|
|
||||||
+ end
|
|
||||||
end
|
|
||||||
}
|
|
||||||
CORRECT_KIRITIMATI_SKIP_1994 = with_tz("Pacific/Kiritimati") {
|
|
||||||
@@ -347,12 +349,16 @@ def self.gen_zdump_test(data)
|
|
||||||
Asia/Singapore Thu Dec 31 16:29:59 1981 UTC = Thu Dec 31 23:59:59 1981 SGT isdst=0 gmtoff=27000
|
|
||||||
Asia/Singapore Thu Dec 31 16:30:00 1981 UTC = Fri Jan 1 00:30:00 1982 SGT isdst=0 gmtoff=28800
|
|
||||||
End
|
|
||||||
- gen_zdump_test CORRECT_TOKYO_DST_1951 ? <<'End' : <<'End'
|
|
||||||
+ gen_zdump_test CORRECT_TOKYO_DST_1951 ? <<'End' + (CORRECT_TOKYO_DST_1951 < "2018f" ? <<'2018e' : <<'2018f') : <<'End'
|
|
||||||
Asia/Tokyo Sat May 5 14:59:59 1951 UTC = Sat May 5 23:59:59 1951 JST isdst=0 gmtoff=32400
|
|
||||||
Asia/Tokyo Sat May 5 15:00:00 1951 UTC = Sun May 6 01:00:00 1951 JDT isdst=1 gmtoff=36000
|
|
||||||
+End
|
|
||||||
Asia/Tokyo Sat Sep 8 13:59:59 1951 UTC = Sat Sep 8 23:59:59 1951 JDT isdst=1 gmtoff=36000
|
|
||||||
Asia/Tokyo Sat Sep 8 14:00:00 1951 UTC = Sat Sep 8 23:00:00 1951 JST isdst=0 gmtoff=32400
|
|
||||||
-End
|
|
||||||
+2018e
|
|
||||||
+Asia/Tokyo Sat Sep 8 14:59:59 1951 UTC = Sun Sep 9 00:59:59 1951 JDT isdst=1 gmtoff=36000
|
|
||||||
+Asia/Tokyo Sat Sep 8 15:00:00 1951 UTC = Sun Sep 9 00:00:00 1951 JST isdst=0 gmtoff=32400
|
|
||||||
+2018f
|
|
||||||
Asia/Tokyo Sat May 5 16:59:59 1951 UTC = Sun May 6 01:59:59 1951 JST isdst=0 gmtoff=32400
|
|
||||||
Asia/Tokyo Sat May 5 17:00:00 1951 UTC = Sun May 6 03:00:00 1951 JDT isdst=1 gmtoff=36000
|
|
||||||
Asia/Tokyo Fri Sep 7 15:59:59 1951 UTC = Sat Sep 8 01:59:59 1951 JDT isdst=1 gmtoff=36000
|
|
||||||
|
|
@ -46,8 +46,8 @@ index 88225451..ba3a54c8 100644
|
||||||
- key = $2
|
- key = $2
|
||||||
- else
|
- else
|
||||||
- key = $1
|
- key = $1
|
||||||
+ when /\A\.include (.+)\z/
|
+ when /\A\.include (\s*=\s*)?(.+)\z/
|
||||||
+ path = $1
|
+ path = $2
|
||||||
+ if File.directory?(path)
|
+ if File.directory?(path)
|
||||||
+ files = Dir.glob(File.join(path, "*.{cnf,conf}"), File::FNM_EXTGLOB)
|
+ files = Dir.glob(File.join(path, "*.{cnf,conf}"), File::FNM_EXTGLOB)
|
||||||
+ else
|
+ else
|
||||||
|
|
@ -141,7 +141,7 @@ index 99dcc497..5653b5d0 100644
|
||||||
+ file-main = unnamed
|
+ file-main = unnamed
|
||||||
+ [sec-main]
|
+ [sec-main]
|
||||||
+ main = 123
|
+ main = 123
|
||||||
+ .include include-child.conf
|
+ .include = include-child.conf
|
||||||
+ __EOC__
|
+ __EOC__
|
||||||
+
|
+
|
||||||
+ # Include a file by relative path
|
+ # Include a file by relative path
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62627 b2dd03c8-39d4-4d8f-98ff-
|
||||||
3 files changed, 20 insertions(+), 20 deletions(-)
|
3 files changed, 20 insertions(+), 20 deletions(-)
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
diff --git a/configure.ac b/configure.ac
|
||||||
index aebbae1969a5..733a0c992fd7 100644
|
index 5f492585b3..976be1a835 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -10,6 +10,7 @@ AC_DISABLE_OPTION_CHECKING
|
@@ -10,6 +10,7 @@ AC_DISABLE_OPTION_CHECKING
|
||||||
|
|
@ -27,7 +27,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
|
|
||||||
AC_DEFUN([RUBY_RM_RECURSIVE], [
|
AC_DEFUN([RUBY_RM_RECURSIVE], [
|
||||||
m4_version_prereq([2.70], [-1], [
|
m4_version_prereq([2.70], [-1], [
|
||||||
@@ -2938,13 +2939,11 @@ AS_IF([test x"$enable_pthread" = xyes], [
|
@@ -2939,13 +2940,11 @@ AS_IF([test x"$enable_pthread" = xyes], [
|
||||||
AC_DEFINE(_THREAD_SAFE)
|
AC_DEFINE(_THREAD_SAFE)
|
||||||
AC_DEFINE(HAVE_LIBPTHREAD)
|
AC_DEFINE(HAVE_LIBPTHREAD)
|
||||||
AC_CHECK_HEADERS(pthread_np.h, [], [], [@%:@include <pthread.h>])
|
AC_CHECK_HEADERS(pthread_np.h, [], [], [@%:@include <pthread.h>])
|
||||||
|
|
@ -46,7 +46,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
], [
|
], [
|
||||||
AC_MSG_WARN("Don't know how to find pthread library on your system -- thread support disabled")
|
AC_MSG_WARN("Don't know how to find pthread library on your system -- thread support disabled")
|
||||||
])
|
])
|
||||||
@@ -3623,7 +3622,7 @@ LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a'
|
@@ -3624,7 +3623,7 @@ LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a'
|
||||||
LIBRUBY='$(LIBRUBY_A)'
|
LIBRUBY='$(LIBRUBY_A)'
|
||||||
LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'
|
LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'
|
||||||
LIBRUBYARG='$(LIBRUBYARG_STATIC)'
|
LIBRUBYARG='$(LIBRUBYARG_STATIC)'
|
||||||
|
|
@ -55,7 +55,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
|
|
||||||
AS_CASE(["$target_os"],
|
AS_CASE(["$target_os"],
|
||||||
[cygwin*|mingw*|haiku*|darwin*], [
|
[cygwin*|mingw*|haiku*|darwin*], [
|
||||||
@@ -3689,9 +3688,6 @@ AS_CASE("$enable_shared", [yes], [
|
@@ -3690,9 +3689,6 @@ AS_CASE("$enable_shared", [yes], [
|
||||||
LIBRUBY_RELATIVE=no
|
LIBRUBY_RELATIVE=no
|
||||||
test -z "$CCDLFLAGS" || CFLAGS="$CFLAGS $CCDLFLAGS"
|
test -z "$CCDLFLAGS" || CFLAGS="$CFLAGS $CCDLFLAGS"
|
||||||
ENABLE_SHARED=yes
|
ENABLE_SHARED=yes
|
||||||
|
|
@ -65,7 +65,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
|
|
||||||
# libdir can be overridden in config.site file (on OpenSUSE at least).
|
# libdir can be overridden in config.site file (on OpenSUSE at least).
|
||||||
libdir_basename=lib
|
libdir_basename=lib
|
||||||
@@ -3726,7 +3722,6 @@ AS_CASE("$enable_shared", [yes], [
|
@@ -3727,7 +3723,6 @@ AS_CASE("$enable_shared", [yes], [
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
[freebsd*|dragonfly*], [
|
[freebsd*|dragonfly*], [
|
||||||
|
|
@ -73,7 +73,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
|
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
|
||||||
LIBRUBY_SONAME='$(LIBRUBY_SO)'
|
LIBRUBY_SONAME='$(LIBRUBY_SO)'
|
||||||
AS_IF([test "$rb_cv_binary_elf" != "yes" ], [
|
AS_IF([test "$rb_cv_binary_elf" != "yes" ], [
|
||||||
@@ -3735,7 +3730,6 @@ AS_CASE("$enable_shared", [yes], [
|
@@ -3736,7 +3731,6 @@ AS_CASE("$enable_shared", [yes], [
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
[netbsd*], [
|
[netbsd*], [
|
||||||
|
|
@ -81,7 +81,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
|
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
|
||||||
LIBRUBY_SO="${LIBRUBY_SONAME}"'.$(TEENY)'
|
LIBRUBY_SO="${LIBRUBY_SONAME}"'.$(TEENY)'
|
||||||
RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,$(LIBRUBY_SONAME)' "$LDFLAGS_OPTDIR"])
|
RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,$(LIBRUBY_SONAME)' "$LDFLAGS_OPTDIR"])
|
||||||
@@ -3746,11 +3740,9 @@ AS_CASE("$enable_shared", [yes], [
|
@@ -3747,11 +3741,9 @@ AS_CASE("$enable_shared", [yes], [
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
[openbsd*|mirbsd*], [
|
[openbsd*|mirbsd*], [
|
||||||
|
|
@ -93,7 +93,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)'
|
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)'
|
||||||
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_PROGRAM_VERSION)'
|
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_PROGRAM_VERSION)'
|
||||||
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)'
|
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)'
|
||||||
@@ -3768,7 +3760,7 @@ AS_CASE("$enable_shared", [yes], [
|
@@ -3769,7 +3761,7 @@ AS_CASE("$enable_shared", [yes], [
|
||||||
[aix*], [
|
[aix*], [
|
||||||
RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ["${linker_flag}-bnoentry" "$XLDFLAGS" "$LDFLAGS_OPTDIR"])
|
RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ["${linker_flag}-bnoentry" "$XLDFLAGS" "$LDFLAGS_OPTDIR"])
|
||||||
LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}'
|
LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}'
|
||||||
|
|
@ -102,7 +102,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
],
|
],
|
||||||
[darwin*], [
|
[darwin*], [
|
||||||
LIBRUBY_LDSHARED='$(CC) -dynamiclib'
|
LIBRUBY_LDSHARED='$(CC) -dynamiclib'
|
||||||
@@ -3788,7 +3780,6 @@ AS_CASE("$enable_shared", [yes], [
|
@@ -3789,7 +3781,6 @@ AS_CASE("$enable_shared", [yes], [
|
||||||
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)'
|
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)'
|
||||||
LIBRUBY_SONAME='lib$(RUBY_BASE_NAME).$(RUBY_API_VERSION).$(SOEXT)'
|
LIBRUBY_SONAME='lib$(RUBY_BASE_NAME).$(RUBY_API_VERSION).$(SOEXT)'
|
||||||
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_INSTALL_NAME).$(SOEXT)'
|
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_INSTALL_NAME).$(SOEXT)'
|
||||||
|
|
@ -110,7 +110,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
],
|
],
|
||||||
[interix*], [
|
[interix*], [
|
||||||
LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
|
LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
|
||||||
@@ -4031,7 +4022,6 @@ AS_CASE(["$target_os"],
|
@@ -4032,7 +4023,6 @@ AS_CASE(["$target_os"],
|
||||||
])
|
])
|
||||||
LIBRUBY_ALIASES=''
|
LIBRUBY_ALIASES=''
|
||||||
FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in
|
FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in
|
||||||
|
|
@ -118,7 +118,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
AS_IF([test x"$enable_shared" = xyes], [
|
AS_IF([test x"$enable_shared" = xyes], [
|
||||||
LIBRUBY='lib$(RUBY_SO_NAME).dll.a'
|
LIBRUBY='lib$(RUBY_SO_NAME).dll.a'
|
||||||
], [
|
], [
|
||||||
@@ -4131,6 +4121,13 @@ AS_IF([test "${universal_binary-no}" = yes ], [
|
@@ -4132,6 +4122,13 @@ AS_IF([test "${universal_binary-no}" = yes ], [
|
||||||
[rb_cv_architecture_available=yes], [rb_cv_architecture_available=no]))
|
[rb_cv_architecture_available=yes], [rb_cv_architecture_available=no]))
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@ index aebbae1969a5..733a0c992fd7 100644
|
||||||
test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}'
|
test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}'
|
||||||
AS_IF([test -n "${cflags+set}"], [
|
AS_IF([test -n "${cflags+set}"], [
|
||||||
diff --git a/template/ruby.pc.in b/template/ruby.pc.in
|
diff --git a/template/ruby.pc.in b/template/ruby.pc.in
|
||||||
index d874f92c3b20..7ce4461c05df 100644
|
index 9f3e8847bb..c4d46f6a9c 100644
|
||||||
--- a/template/ruby.pc.in
|
--- a/template/ruby.pc.in
|
||||||
+++ b/template/ruby.pc.in
|
+++ b/template/ruby.pc.in
|
||||||
@@ -39,6 +39,7 @@ sitehdrdir=@sitehdrdir@
|
@@ -39,6 +39,7 @@ sitehdrdir=@sitehdrdir@
|
||||||
|
|
@ -145,10 +145,10 @@ index d874f92c3b20..7ce4461c05df 100644
|
||||||
LIBPATH=@LIBPATH@
|
LIBPATH=@LIBPATH@
|
||||||
LIBRUBY_A=@LIBRUBY_A@
|
LIBRUBY_A=@LIBRUBY_A@
|
||||||
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
|
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
|
||||||
index 8673c121641e..f8316cccb68e 100644
|
index 70440e1c9d..2f8cf74c3f 100644
|
||||||
--- a/win32/Makefile.sub
|
--- a/win32/Makefile.sub
|
||||||
+++ b/win32/Makefile.sub
|
+++ b/win32/Makefile.sub
|
||||||
@@ -279,6 +279,7 @@ MJIT_DEBUGFLAGS = $(DEBUGFLAGS)
|
@@ -279,6 +279,7 @@ LDSHARED_2 = @if exist $(@).manifest @$(RM) $(@:/=\).manifest
|
||||||
CPPFLAGS = $(DEFS) $(ARCHDEFS) $(CPPFLAGS)
|
CPPFLAGS = $(DEFS) $(ARCHDEFS) $(CPPFLAGS)
|
||||||
|
|
||||||
DLDFLAGS = $(LDFLAGS) -dll
|
DLDFLAGS = $(LDFLAGS) -dll
|
||||||
|
|
|
||||||
|
|
@ -1,157 +0,0 @@
|
||||||
From 1dfc377ae3b174b043d3f0ed36de57b0296b34d0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
|
||||||
Date: Wed, 8 Aug 2018 14:13:55 +0000
|
|
||||||
Subject: [PATCH] net/http, net/ftp: fix session resumption with TLS 1.3
|
|
||||||
|
|
||||||
When TLS 1.3 is in use, the session ticket may not have been sent yet
|
|
||||||
even though a handshake has finished. Also, the ticket could change if
|
|
||||||
multiple session ticket messages are sent by the server. Use
|
|
||||||
SSLContext#session_new_cb instead of calling SSLSocket#session
|
|
||||||
immediately after a handshake. This way also works with earlier protocol
|
|
||||||
versions.
|
|
||||||
|
|
||||||
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
|
||||||
---
|
|
||||||
lib/net/ftp.rb | 5 ++++-
|
|
||||||
lib/net/http.rb | 7 +++++--
|
|
||||||
test/net/http/test_https.rb | 35 ++++++++++-------------------------
|
|
||||||
3 files changed, 19 insertions(+), 28 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
|
|
||||||
index c3ee47ef4d36..9902f9dc657a 100644
|
|
||||||
--- a/lib/net/ftp.rb
|
|
||||||
+++ b/lib/net/ftp.rb
|
|
||||||
@@ -230,6 +230,10 @@ def initialize(host = nil, user_or_options = {}, passwd = nil, acct = nil)
|
|
||||||
if defined?(VerifyCallbackProc)
|
|
||||||
@ssl_context.verify_callback = VerifyCallbackProc
|
|
||||||
end
|
|
||||||
+ @ssl_context.session_cache_mode =
|
|
||||||
+ OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT |
|
|
||||||
+ OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_STORE
|
|
||||||
+ @ssl_context.session_new_cb = proc {|sock, sess| @ssl_session = sess }
|
|
||||||
@ssl_session = nil
|
|
||||||
if options[:private_data_connection].nil?
|
|
||||||
@private_data_connection = true
|
|
||||||
@@ -349,7 +353,6 @@ def start_tls_session(sock)
|
|
||||||
if @ssl_context.verify_mode != VERIFY_NONE
|
|
||||||
ssl_sock.post_connection_check(@host)
|
|
||||||
end
|
|
||||||
- @ssl_session = ssl_sock.session
|
|
||||||
return ssl_sock
|
|
||||||
end
|
|
||||||
private :start_tls_session
|
|
||||||
diff --git a/lib/net/http.rb b/lib/net/http.rb
|
|
||||||
index 281b15cedff0..683a884f5dbe 100644
|
|
||||||
--- a/lib/net/http.rb
|
|
||||||
+++ b/lib/net/http.rb
|
|
||||||
@@ -969,6 +969,10 @@ def connect
|
|
||||||
end
|
|
||||||
@ssl_context = OpenSSL::SSL::SSLContext.new
|
|
||||||
@ssl_context.set_params(ssl_parameters)
|
|
||||||
+ @ssl_context.session_cache_mode =
|
|
||||||
+ OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT |
|
|
||||||
+ OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_STORE
|
|
||||||
+ @ssl_context.session_new_cb = proc {|sock, sess| @ssl_session = sess }
|
|
||||||
D "starting SSL for #{conn_address}:#{conn_port}..."
|
|
||||||
s = OpenSSL::SSL::SSLSocket.new(s, @ssl_context)
|
|
||||||
s.sync_close = true
|
|
||||||
@@ -976,13 +980,12 @@ def connect
|
|
||||||
s.hostname = @address if s.respond_to? :hostname=
|
|
||||||
if @ssl_session and
|
|
||||||
Process.clock_gettime(Process::CLOCK_REALTIME) < @ssl_session.time.to_f + @ssl_session.timeout
|
|
||||||
- s.session = @ssl_session if @ssl_session
|
|
||||||
+ s.session = @ssl_session
|
|
||||||
end
|
|
||||||
ssl_socket_connect(s, @open_timeout)
|
|
||||||
if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
|
||||||
s.post_connection_check(@address)
|
|
||||||
end
|
|
||||||
- @ssl_session = s.session
|
|
||||||
D "SSL established"
|
|
||||||
end
|
|
||||||
@socket = BufferedIO.new(s, read_timeout: @read_timeout,
|
|
||||||
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
|
|
||||||
index 8004d5c5f29f..a5182a1fe9db 100644
|
|
||||||
--- a/test/net/http/test_https.rb
|
|
||||||
+++ b/test/net/http/test_https.rb
|
|
||||||
@@ -71,20 +71,11 @@ def test_session_reuse
|
|
||||||
http.get("/")
|
|
||||||
http.finish
|
|
||||||
|
|
||||||
- http.start
|
|
||||||
- http.get("/")
|
|
||||||
- http.finish # three times due to possible bug in OpenSSL 0.9.8
|
|
||||||
-
|
|
||||||
- sid = http.instance_variable_get(:@ssl_session).id
|
|
||||||
-
|
|
||||||
http.start
|
|
||||||
http.get("/")
|
|
||||||
|
|
||||||
socket = http.instance_variable_get(:@socket).io
|
|
||||||
-
|
|
||||||
- assert socket.session_reused?
|
|
||||||
-
|
|
||||||
- assert_equal sid, http.instance_variable_get(:@ssl_session).id
|
|
||||||
+ assert_equal true, socket.session_reused?
|
|
||||||
|
|
||||||
http.finish
|
|
||||||
rescue SystemCallError
|
|
||||||
@@ -101,16 +92,12 @@ def test_session_reuse_but_expire
|
|
||||||
http.get("/")
|
|
||||||
http.finish
|
|
||||||
|
|
||||||
- sid = http.instance_variable_get(:@ssl_session).id
|
|
||||||
-
|
|
||||||
http.start
|
|
||||||
http.get("/")
|
|
||||||
|
|
||||||
socket = http.instance_variable_get(:@socket).io
|
|
||||||
assert_equal false, socket.session_reused?
|
|
||||||
|
|
||||||
- assert_not_equal sid, http.instance_variable_get(:@ssl_session).id
|
|
||||||
-
|
|
||||||
http.finish
|
|
||||||
rescue SystemCallError
|
|
||||||
skip $!
|
|
||||||
@@ -160,15 +147,16 @@ def test_certificate_verify_failure
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_identity_verify_failure
|
|
||||||
+ # the certificate's subject has CN=localhost
|
|
||||||
http = Net::HTTP.new("127.0.0.1", config("port"))
|
|
||||||
http.use_ssl = true
|
|
||||||
- http.verify_callback = Proc.new do |preverify_ok, store_ctx|
|
|
||||||
- true
|
|
||||||
- end
|
|
||||||
+ http.cert_store = TEST_STORE
|
|
||||||
+ @log_tester = lambda {|_| }
|
|
||||||
ex = assert_raise(OpenSSL::SSL::SSLError){
|
|
||||||
http.request_get("/") {|res| }
|
|
||||||
}
|
|
||||||
- assert_match(/hostname \"127.0.0.1\" does not match/, ex.message)
|
|
||||||
+ re_msg = /certificate verify failed|hostname \"127.0.0.1\" does not match/
|
|
||||||
+ assert_match(re_msg, ex.message)
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_timeout_during_SSL_handshake
|
|
||||||
@@ -193,16 +181,13 @@ def test_timeout_during_SSL_handshake
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_min_version
|
|
||||||
- http = Net::HTTP.new("127.0.0.1", config("port"))
|
|
||||||
+ http = Net::HTTP.new("localhost", config("port"))
|
|
||||||
http.use_ssl = true
|
|
||||||
http.min_version = :TLS1
|
|
||||||
- http.verify_callback = Proc.new do |preverify_ok, store_ctx|
|
|
||||||
- true
|
|
||||||
- end
|
|
||||||
- ex = assert_raise(OpenSSL::SSL::SSLError){
|
|
||||||
- http.request_get("/") {|res| }
|
|
||||||
+ http.cert_store = TEST_STORE
|
|
||||||
+ http.request_get("/") {|res|
|
|
||||||
+ assert_equal($test_net_http_data, res.body)
|
|
||||||
}
|
|
||||||
- assert_match(/hostname \"127.0.0.1\" does not match/, ex.message)
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_max_version
|
|
||||||
|
|
@ -11,24 +11,15 @@ diff --git a/lib/rdoc/generator/template/json_index/js/navigation.js b/lib/rdoc/
|
||||||
index e4126812..43c5118a 100644
|
index e4126812..43c5118a 100644
|
||||||
--- a/lib/rdoc/generator/template/json_index/js/navigation.js
|
--- a/lib/rdoc/generator/template/json_index/js/navigation.js
|
||||||
+++ b/lib/rdoc/generator/template/json_index/js/navigation.js
|
+++ b/lib/rdoc/generator/template/json_index/js/navigation.js
|
||||||
@@ -59,9 +59,8 @@ Navigation = new function() {
|
@@ -41,9 +41,8 @@ Navigation = new function() {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 13: //Event.KEY_RETURN:
|
case 13: //Event.KEY_RETURN:
|
||||||
- if (this.$current)
|
- if (this.current)
|
||||||
- e.preventDefault();
|
- e.preventDefault();
|
||||||
- this.select(this.$current);
|
- this.select(this.current);
|
||||||
+ if (this.$current) e.preventDefault();
|
+ if (this.current) e.preventDefault();
|
||||||
+ this.select(this.$current);
|
+ this.select(this.current);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
|
if (e.ctrlKey && e.shiftKey) this.select(this.current);
|
||||||
@@ -80,7 +79,7 @@ Navigation = new function() {
|
|
||||||
var go = function() {
|
|
||||||
if (!_this.moveTimeout) return;
|
|
||||||
_this[isDown ? 'moveDown' : 'moveUp']();
|
|
||||||
- _this.moveTimout = setTimeout(go, 100);
|
|
||||||
+ _this.moveTimeout = setTimeout(go, 100);
|
|
||||||
}
|
|
||||||
this.moveTimeout = setTimeout(go, 200);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
38
ruby-2.6.0-use-larger-keys-for-SSL-drb-tests.patch
Normal file
38
ruby-2.6.0-use-larger-keys-for-SSL-drb-tests.patch
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
From 8af6b87023cbb1ba6cebea7daaafa275e0dc687e Mon Sep 17 00:00:00 2001
|
||||||
|
From: normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
||||||
|
Date: Mon, 3 Dec 2018 04:51:13 +0000
|
||||||
|
Subject: [PATCH] drb: fix tests on Debian sid/unstable with OpenSSL 1.1.1a
|
||||||
|
|
||||||
|
OpenSSL complains abour our keys being small and weak :<
|
||||||
|
Make them big and strong with 2048-bit RSA keys and SHA256 digests
|
||||||
|
|
||||||
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
||||||
|
---
|
||||||
|
lib/drb/ssl.rb | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/drb/ssl.rb b/lib/drb/ssl.rb
|
||||||
|
index 45fe4f1f74..8c2c1cc65d 100644
|
||||||
|
--- a/lib/drb/ssl.rb
|
||||||
|
+++ b/lib/drb/ssl.rb
|
||||||
|
@@ -162,7 +162,7 @@ def setup_certificate
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
- rsa = OpenSSL::PKey::RSA.new(1024){|p, n|
|
||||||
|
+ rsa = OpenSSL::PKey::RSA.new(2048){|p, n|
|
||||||
|
next unless self[:verbose]
|
||||||
|
case p
|
||||||
|
when 0; $stderr.putc "." # BN_generate_prime
|
||||||
|
@@ -196,7 +196,7 @@ def setup_certificate
|
||||||
|
if comment = self[:SSLCertComment]
|
||||||
|
cert.add_extension(ef.create_extension("nsComment", comment))
|
||||||
|
end
|
||||||
|
- cert.sign(rsa, OpenSSL::Digest::SHA1.new)
|
||||||
|
+ cert.sign(rsa, OpenSSL::Digest::SHA256.new)
|
||||||
|
|
||||||
|
@cert = cert
|
||||||
|
@pkey = rsa
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
51
ruby-2.6.0-use-larger-keys-for-SSL-tests2.patch
Normal file
51
ruby-2.6.0-use-larger-keys-for-SSL-tests2.patch
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
From 6872cefaf682c7e9d538ef9d87f94f7a77c21154 Mon Sep 17 00:00:00 2001
|
||||||
|
From: nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
||||||
|
Date: Wed, 7 Aug 2019 12:38:15 +0000
|
||||||
|
Subject: [PATCH] merge revision(s) 1e54903684aa3c9ea3fe54520157846a1b1f07be:
|
||||||
|
[Backport #16051]
|
||||||
|
|
||||||
|
test/openssl: Support OpenSSL 1.1.1
|
||||||
|
|
||||||
|
OpenSSL 1.1.1 rejects some shorter keys, which caused some failures of
|
||||||
|
`make test-all TESTS=openssl`.
|
||||||
|
|
||||||
|
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-master/log/20190606T003005Z.fail.html.gz
|
||||||
|
|
||||||
|
This change merges 6bbc31ddd1 and 63fb3a36d1 in
|
||||||
|
https://github.com/ruby/openssl.
|
||||||
|
Reference: https://github.com/ruby/openssl/pull/217
|
||||||
|
|
||||||
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
||||||
|
---
|
||||||
|
test/openssl/test_ssl.rb | 7 ++++++-
|
||||||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
|
||||||
|
index 46570b8b95..51d63859c0 100644
|
||||||
|
--- a/test/openssl/test_ssl.rb
|
||||||
|
+++ b/test/openssl/test_ssl.rb
|
||||||
|
@@ -81,7 +81,7 @@ def test_add_certificate_multiple_certs
|
||||||
|
add0_chain_supported = openssl?(1, 0, 2)
|
||||||
|
|
||||||
|
if add0_chain_supported
|
||||||
|
- ca2_key = Fixtures.pkey("rsa1024")
|
||||||
|
+ ca2_key = Fixtures.pkey("rsa2048")
|
||||||
|
ca2_exts = [
|
||||||
|
["basicConstraints", "CA:TRUE", true],
|
||||||
|
["keyUsage", "cRLSign, keyCertSign", true],
|
||||||
|
@@ -1357,7 +1357,12 @@ def test_fallback_scsv
|
||||||
|
# Server support better, so refuse the connection
|
||||||
|
sock1, sock2 = socketpair
|
||||||
|
begin
|
||||||
|
+ # This test is for the downgrade protection mechanism of TLS1.2.
|
||||||
|
+ # This is why ctx1 bounds max_version == TLS1.2.
|
||||||
|
+ # Otherwise, this test fails when using openssl 1.1.1 (or later) that supports TLS1.3.
|
||||||
|
+ # TODO: We may need another test for TLS1.3 because it seems to have a different mechanism.
|
||||||
|
ctx1 = OpenSSL::SSL::SSLContext.new
|
||||||
|
+ ctx1.max_version = OpenSSL::SSL::TLS1_2_VERSION
|
||||||
|
s1 = OpenSSL::SSL::SSLSocket.new(sock1, ctx1)
|
||||||
|
|
||||||
|
ctx2 = OpenSSL::SSL::SSLContext.new
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
52
ruby-2.6.0-use-larger-keys-for-SSL-webrick-tests.patch
Normal file
52
ruby-2.6.0-use-larger-keys-for-SSL-webrick-tests.patch
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
From ef6153f727d118d4e7854c0f52d3d8b0e4ed7817 Mon Sep 17 00:00:00 2001
|
||||||
|
From: normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
||||||
|
Date: Mon, 3 Dec 2018 04:51:08 +0000
|
||||||
|
Subject: [PATCH] webrick: fix tests on Debian sid/unstable with OpenSSL 1.1.1a
|
||||||
|
|
||||||
|
OpenSSL complains abour our keys being small and weak :<
|
||||||
|
Make them big and strong with 2048-bit RSA keys and SHA256 digests
|
||||||
|
|
||||||
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
||||||
|
---
|
||||||
|
lib/webrick/ssl.rb | 4 ++--
|
||||||
|
test/webrick/test_httpproxy.rb | 2 +-
|
||||||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/webrick/ssl.rb b/lib/webrick/ssl.rb
|
||||||
|
index 8a334eaff1..d125083528 100644
|
||||||
|
--- a/lib/webrick/ssl.rb
|
||||||
|
+++ b/lib/webrick/ssl.rb
|
||||||
|
@@ -130,7 +130,7 @@ def create_self_signed_cert(bits, cn, comment)
|
||||||
|
aki = ef.create_extension("authorityKeyIdentifier",
|
||||||
|
"keyid:always,issuer:always")
|
||||||
|
cert.add_extension(aki)
|
||||||
|
- cert.sign(rsa, OpenSSL::Digest::SHA1.new)
|
||||||
|
+ cert.sign(rsa, OpenSSL::Digest::SHA256.new)
|
||||||
|
|
||||||
|
return [ cert, rsa ]
|
||||||
|
end
|
||||||
|
@@ -181,7 +181,7 @@ def setup_ssl_context(config) # :nodoc:
|
||||||
|
unless config[:SSLCertificate]
|
||||||
|
cn = config[:SSLCertName]
|
||||||
|
comment = config[:SSLCertComment]
|
||||||
|
- cert, key = Utils::create_self_signed_cert(1024, cn, comment)
|
||||||
|
+ cert, key = Utils::create_self_signed_cert(2048, cn, comment)
|
||||||
|
config[:SSLCertificate] = cert
|
||||||
|
config[:SSLPrivateKey] = key
|
||||||
|
end
|
||||||
|
diff --git a/test/webrick/test_httpproxy.rb b/test/webrick/test_httpproxy.rb
|
||||||
|
index 452e7b94b7..780d95937a 100644
|
||||||
|
--- a/test/webrick/test_httpproxy.rb
|
||||||
|
+++ b/test/webrick/test_httpproxy.rb
|
||||||
|
@@ -133,7 +133,7 @@ def make_certificate(key, cn)
|
||||||
|
cert.not_after = Time.now + 3600
|
||||||
|
ef = OpenSSL::X509::ExtensionFactory.new(cert, cert)
|
||||||
|
exts.each {|args| cert.add_extension(ef.create_extension(*args)) }
|
||||||
|
- cert.sign(key, "sha1")
|
||||||
|
+ cert.sign(key, "sha256")
|
||||||
|
return cert
|
||||||
|
end if defined?(OpenSSL::SSL)
|
||||||
|
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
|
|
@ -0,0 +1,447 @@
|
||||||
|
From 57bf80dc7d6ef19baf2171a55b538ed56bebb6a7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
||||||
|
Date: Wed, 7 Aug 2019 12:25:24 +0000
|
||||||
|
Subject: [PATCH] merge revision(s) 43730256e800dd8e0c5cc482e9861868590ae037:
|
||||||
|
|
||||||
|
open-uri: Regenerate server certificates for tests
|
||||||
|
|
||||||
|
OpenSSL 1.1.1 requires 2048 bits or more. This change will fix:
|
||||||
|
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-master/log/20190527T003004Z.fail.html.gz#test%2Fopen-uri
|
||||||
|
|
||||||
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
||||||
|
---
|
||||||
|
test/open-uri/test_ssl.rb | 341 ++++++++++++++++++++++++--------------
|
||||||
|
1 file changed, 217 insertions(+), 124 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/open-uri/test_ssl.rb b/test/open-uri/test_ssl.rb
|
||||||
|
index 948cb6a959..337139604f 100644
|
||||||
|
--- a/test/open-uri/test_ssl.rb
|
||||||
|
+++ b/test/open-uri/test_ssl.rb
|
||||||
|
@@ -175,18 +175,18 @@ def test_proxy_cacert_dir
|
||||||
|
end if defined?(OpenSSL::SSL)
|
||||||
|
|
||||||
|
if defined?(OpenSSL::SSL)
|
||||||
|
-# cp /etc/ssl/openssl.cnf . # I copied from OpenSSL 1.0.2h source
|
||||||
|
+# cp /etc/ssl/openssl.cnf . # I copied from OpenSSL 1.1.1b source
|
||||||
|
|
||||||
|
# mkdir demoCA demoCA/private demoCA/newcerts
|
||||||
|
# touch demoCA/index.txt
|
||||||
|
# echo 00 > demoCA/serial
|
||||||
|
-# openssl genrsa -des3 -out demoCA/private/cakey.pem 1024
|
||||||
|
+# openssl genrsa -des3 -out demoCA/private/cakey.pem 2048
|
||||||
|
# openssl req -new -key demoCA/private/cakey.pem -out demoCA/careq.pem -subj "/C=JP/ST=Tokyo/O=RubyTest/CN=Ruby Test CA"
|
||||||
|
# # basicConstraints=CA:TRUE is required; the default openssl.cnf has it in [v3_ca]
|
||||||
|
# openssl ca -config openssl.cnf -extensions v3_ca -out demoCA/cacert.pem -startdate 090101000000Z -enddate 491231235959Z -batch -keyfile demoCA/private/cakey.pem -selfsign -infiles demoCA/careq.pem
|
||||||
|
|
||||||
|
# mkdir server
|
||||||
|
-# openssl genrsa -des3 -out server/server.key 1024
|
||||||
|
+# openssl genrsa -des3 -out server/server.key 2048
|
||||||
|
# openssl req -new -key server/server.key -out server/csr.pem -subj "/C=JP/ST=Tokyo/O=RubyTest/CN=127.0.0.1"
|
||||||
|
# openssl ca -config openssl.cnf -startdate 090101000000Z -enddate 491231235959Z -in server/csr.pem -keyfile demoCA/private/cakey.pem -cert demoCA/cacert.pem -out server/cert.pem
|
||||||
|
|
||||||
|
@@ -199,7 +199,7 @@ def test_proxy_cacert_dir
|
||||||
|
Data:
|
||||||
|
Version: 3 (0x2)
|
||||||
|
Serial Number: 0 (0x0)
|
||||||
|
- Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
+ Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
Issuer: C=JP, ST=Tokyo, O=RubyTest, CN=Ruby Test CA
|
||||||
|
Validity
|
||||||
|
Not Before: Jan 1 00:00:00 2009 GMT
|
||||||
|
@@ -207,49 +207,70 @@ def test_proxy_cacert_dir
|
||||||
|
Subject: C=JP, ST=Tokyo, O=RubyTest, CN=Ruby Test CA
|
||||||
|
Subject Public Key Info:
|
||||||
|
Public Key Algorithm: rsaEncryption
|
||||||
|
- Public-Key: (1024 bit)
|
||||||
|
+ RSA Public-Key: (2048 bit)
|
||||||
|
Modulus:
|
||||||
|
- 00:be:74:41:33:c9:1b:e1:12:78:6b:b4:52:2e:ae:
|
||||||
|
- b6:e2:1e:58:65:57:2d:cb:07:3f:91:c9:53:7a:e7:
|
||||||
|
- 2e:68:2c:0c:5d:8b:16:a7:42:4a:5c:6f:c7:aa:44:
|
||||||
|
- ff:6d:c6:d7:49:0e:b1:5d:03:5b:51:ce:d5:cc:cd:
|
||||||
|
- ab:69:cc:c2:43:76:b1:b2:30:3b:e7:f6:1f:3e:35:
|
||||||
|
- 1d:21:75:41:96:eb:84:a0:34:6f:a4:5d:70:a2:b2:
|
||||||
|
- d5:fe:b9:45:47:a1:e8:ca:e3:b7:bb:4d:37:1c:f3:
|
||||||
|
- 96:d4:2d:80:85:cd:8e:31:96:53:92:a0:fe:e4:4c:
|
||||||
|
- 16:47:5e:c8:27:32:70:a8:6b
|
||||||
|
+ 00:ad:f3:4d:5b:0b:01:54:cc:86:36:d1:93:6b:33:
|
||||||
|
+ 56:25:90:61:d6:9a:a0:f4:24:20:ee:c8:14:ab:0f:
|
||||||
|
+ 4b:89:d8:7c:bb:c0:f8:7f:fb:e9:a2:d5:1c:6b:6f:
|
||||||
|
+ dc:5c:23:b1:49:aa:2c:e8:ca:43:48:64:69:4b:8a:
|
||||||
|
+ bd:44:57:9b:14:d9:7a:b2:49:00:d6:c2:74:67:62:
|
||||||
|
+ 52:1d:a9:32:df:fe:7a:22:20:49:83:e1:cb:3d:dc:
|
||||||
|
+ 1a:2a:f0:36:20:c1:e8:c8:89:d4:51:1a:68:91:20:
|
||||||
|
+ e0:ba:67:0a:b2:6b:f8:e3:8c:f5:ee:a1:36:b1:89:
|
||||||
|
+ ec:23:b6:f2:39:a9:b9:2e:ea:de:d9:86:e5:42:11:
|
||||||
|
+ 46:ed:10:9a:90:76:44:4e:4d:49:2d:49:e8:e3:cb:
|
||||||
|
+ ff:7a:7d:80:cb:bf:c4:c3:69:ba:9c:60:4a:de:af:
|
||||||
|
+ bf:26:78:b8:fb:46:d1:37:d0:89:ba:78:93:6a:37:
|
||||||
|
+ a5:e9:58:e7:e2:e3:7d:7c:95:20:79:41:56:15:cd:
|
||||||
|
+ b2:c6:3b:e1:b7:e7:ba:47:60:9a:05:b1:07:f3:26:
|
||||||
|
+ 72:9d:3b:1b:02:18:3d:d5:de:e6:e9:30:a9:b5:8f:
|
||||||
|
+ 15:1b:40:f9:64:61:54:d3:53:e8:c4:29:4a:89:f3:
|
||||||
|
+ e5:0d:fd:16:61:ee:f2:6d:8a:45:a8:34:7e:53:46:
|
||||||
|
+ 8e:87
|
||||||
|
Exponent: 65537 (0x10001)
|
||||||
|
X509v3 extensions:
|
||||||
|
X509v3 Subject Key Identifier:
|
||||||
|
- 71:DB:DC:BA:F6:7F:75:31:7A:ED:AB:8B:48:93:86:94:1A:FF:30:58
|
||||||
|
+ A0:7E:0B:AD:A3:AD:37:D7:21:0B:75:6F:8A:90:5F:8C:C9:69:DF:98
|
||||||
|
X509v3 Authority Key Identifier:
|
||||||
|
- keyid:71:DB:DC:BA:F6:7F:75:31:7A:ED:AB:8B:48:93:86:94:1A:FF:30:58
|
||||||
|
+ keyid:A0:7E:0B:AD:A3:AD:37:D7:21:0B:75:6F:8A:90:5F:8C:C9:69:DF:98
|
||||||
|
|
||||||
|
- X509v3 Basic Constraints:
|
||||||
|
+ X509v3 Basic Constraints: critical
|
||||||
|
CA:TRUE
|
||||||
|
Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
- 91:1c:45:a5:c0:4e:fc:54:39:62:33:80:7d:03:c1:b8:51:f7:
|
||||||
|
- 56:83:6c:a3:15:50:cf:92:a0:77:a3:34:16:b5:30:f0:33:5a:
|
||||||
|
- be:6a:ac:17:87:70:f8:4e:4d:49:ac:8b:84:fd:e5:0f:15:d7:
|
||||||
|
- 9a:29:cc:a9:f5:97:f5:13:2a:86:3b:2d:f4:b7:b4:a2:7c:e1:
|
||||||
|
- 0e:2a:ff:91:64:31:8f:12:cc:99:bf:e1:de:8f:6f:7c:1b:e4:
|
||||||
|
- cc:56:c8:bb:85:c9:ba:df:7f:07:7a:cd:03:22:2c:b6:f8:06:
|
||||||
|
- 35:72:72:b8:52:eb:62:15:85:2b:8f:8c:bc:27:3c:8b:de:32:
|
||||||
|
- db:95
|
||||||
|
+ 06:ea:06:02:19:9a:cb:94:a2:7e:c0:86:71:66:e7:a5:71:46:
|
||||||
|
+ a2:25:55:f5:e5:58:df:d1:91:58:e6:8a:0e:91:b3:22:4c:88:
|
||||||
|
+ 4d:5f:02:af:0f:73:65:0d:af:9a:f2:e4:36:f3:1f:e8:28:1d:
|
||||||
|
+ 9c:74:72:5b:f7:12:e8:fa:45:d6:df:e5:f1:d3:91:f4:0e:db:
|
||||||
|
+ e2:56:63:ee:82:57:6f:12:ad:d7:0d:de:5a:8c:3d:76:d2:87:
|
||||||
|
+ c9:48:1c:c4:f3:89:63:3c:c2:25:e0:dd:63:a6:4c:6c:5a:07:
|
||||||
|
+ 7b:86:78:62:86:02:a1:ef:0e:41:75:c5:d4:61:ab:c3:3b:9b:
|
||||||
|
+ 51:0b:e6:34:6d:0b:14:5a:2d:aa:d3:58:26:43:8f:4c:d7:45:
|
||||||
|
+ 73:1e:67:66:5e:f3:0c:69:70:27:a1:d5:70:f3:5a:10:98:c8:
|
||||||
|
+ 4f:8a:3b:9f:ad:8e:8d:49:8f:fb:f6:36:5d:4f:70:f9:4f:54:
|
||||||
|
+ 33:cf:a2:a6:1d:8c:61:b9:30:42:f2:49:d1:3d:a1:f1:eb:1e:
|
||||||
|
+ 78:a6:30:f8:8a:48:89:c7:3e:bd:0d:d8:72:04:a6:00:e5:62:
|
||||||
|
+ a4:13:3f:9e:b6:86:25:dc:d1:ff:3a:fc:f5:0e:e4:0e:f7:b8:
|
||||||
|
+ 66:90:fe:4f:c2:54:2a:7f:61:6e:e7:4b:bf:40:7e:75:30:02:
|
||||||
|
+ 5b:bb:91:1b
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
-MIICVDCCAb2gAwIBAgIBADANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQGEwJKUDEO
|
||||||
|
+MIIDXDCCAkSgAwIBAgIBADANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQGEwJKUDEO
|
||||||
|
MAwGA1UECAwFVG9reW8xETAPBgNVBAoMCFJ1YnlUZXN0MRUwEwYDVQQDDAxSdWJ5
|
||||||
|
IFRlc3QgQ0EwHhcNMDkwMTAxMDAwMDAwWhcNNDkxMjMxMjM1OTU5WjBHMQswCQYD
|
||||||
|
VQQGEwJKUDEOMAwGA1UECAwFVG9reW8xETAPBgNVBAoMCFJ1YnlUZXN0MRUwEwYD
|
||||||
|
-VQQDDAxSdWJ5IFRlc3QgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL50
|
||||||
|
-QTPJG+ESeGu0Ui6utuIeWGVXLcsHP5HJU3rnLmgsDF2LFqdCSlxvx6pE/23G10kO
|
||||||
|
-sV0DW1HO1czNq2nMwkN2sbIwO+f2Hz41HSF1QZbrhKA0b6RdcKKy1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CGZrLlKJ+wIZxZuel
|
||||||
|
+cUaiJVX15Vjf0ZFY5ooOkbMiTIhNXwKvD3NlDa+a8uQ28x/oKB2cdHJb9xLo+kXW
|
||||||
|
+3+Xx05H0DtviVmPugldvEq3XDd5ajD120ofJSBzE84ljPMIl4N1jpkxsWgd7hnhi
|
||||||
|
+hgKh7w5BdcXUYavDO5tRC+Y0bQsUWi2q01gmQ49M10VzHmdmXvMMaXAnodVw81oQ
|
||||||
|
+mMhPijufrY6NSY/79jZdT3D5T1Qzz6KmHYxhuTBC8knRPaHx6x54pjD4ikiJxz69
|
||||||
|
+DdhyBKYA5WKkEz+etoYl3NH/Ovz1DuQO97hmkP5PwlQqf2Fu50u/QH51MAJbu5Eb
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
End
|
||||||
|
|
||||||
|
@@ -258,7 +279,7 @@ def test_proxy_cacert_dir
|
||||||
|
Data:
|
||||||
|
Version: 3 (0x2)
|
||||||
|
Serial Number: 1 (0x1)
|
||||||
|
- Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
+ Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
Issuer: C=JP, ST=Tokyo, O=RubyTest, CN=Ruby Test CA
|
||||||
|
Validity
|
||||||
|
Not Before: Jan 1 00:00:00 2009 GMT
|
||||||
|
@@ -266,17 +287,26 @@ def test_proxy_cacert_dir
|
||||||
|
Subject: C=JP, ST=Tokyo, O=RubyTest, CN=127.0.0.1
|
||||||
|
Subject Public Key Info:
|
||||||
|
Public Key Algorithm: rsaEncryption
|
||||||
|
- Public-Key: (1024 bit)
|
||||||
|
+ RSA Public-Key: (2048 bit)
|
||||||
|
Modulus:
|
||||||
|
- 00:bb:bd:74:69:53:58:50:24:79:f2:eb:db:8b:97:
|
||||||
|
- e4:69:a4:dd:48:0c:40:35:62:42:b3:35:8c:96:2a:
|
||||||
|
- 62:76:98:b5:2a:e0:f8:78:33:b6:ff:f8:55:bf:44:
|
||||||
|
- 69:21:d7:b5:0e:bd:8a:dd:31:1b:88:d5:b4:5e:7a:
|
||||||
|
- 82:e0:ba:99:6c:04:76:e9:ff:e6:f8:f5:06:8e:7e:
|
||||||
|
- a4:db:db:eb:43:44:12:a7:ca:ca:2b:aa:5f:83:10:
|
||||||
|
- e2:9e:35:55:e8:e8:af:be:c8:7d:bb:c2:d4:aa:c1:
|
||||||
|
- 1c:57:0b:c0:0c:3a:1d:6e:23:a9:03:26:7c:ea:8c:
|
||||||
|
- f0:86:61:ce:f1:ff:42:c7:23
|
||||||
|
+ 00:cb:b3:71:95:12:70:fc:db:d4:a9:a7:66:d6:d3:
|
||||||
|
+ 09:dd:06:80:19:e1:f2:d6:1e:31:b6:6b:20:75:51:
|
||||||
|
+ dc:a7:37:a9:ac:5b:57:5d:69:36:b6:de:1d:2c:f6:
|
||||||
|
+ 44:64:f8:e8:d6:f0:da:38:6a:ba:c2:b1:9e:dc:bb:
|
||||||
|
+ 79:94:e0:25:0c:ce:76:87:17:5d:79:9e:14:9e:bd:
|
||||||
|
+ 4c:0d:aa:74:10:3a:96:ef:76:82:d5:72:16:b5:c1:
|
||||||
|
+ ac:17:2d:90:83:73:5c:d7:a6:f5:36:0f:4c:55:f3:
|
||||||
|
+ 30:5d:19:dc:01:0e:f8:e6:fe:a5:ad:52:88:59:dc:
|
||||||
|
+ 4a:07:ed:a2:eb:a1:01:63:c4:8a:92:ba:06:80:9b:
|
||||||
|
+ 0d:85:f2:9f:f9:70:ac:d7:ad:f0:7a:3f:b8:92:2a:
|
||||||
|
+ 33:ca:69:d0:01:65:5d:31:38:1d:f6:1f:b2:17:07:
|
||||||
|
+ 7e:ac:88:67:a6:c4:5f:3e:93:94:61:e6:e4:49:9d:
|
||||||
|
+ ba:d4:d2:e8:e3:93:d1:66:79:c5:e3:1d:f8:5a:50:
|
||||||
|
+ 54:58:3d:04:b0:fd:65:d1:b3:8a:b5:8a:30:5f:b2:
|
||||||
|
+ dc:34:1a:14:f7:74:4c:03:29:97:63:5a:d7:de:bb:
|
||||||
|
+ eb:7f:4a:2a:90:59:c0:2b:47:09:82:8f:75:de:14:
|
||||||
|
+ 3f:bc:78:9a:69:25:80:5b:6c:a0:65:12:0d:29:61:
|
||||||
|
+ ac:f9
|
||||||
|
Exponent: 65537 (0x10001)
|
||||||
|
X509v3 extensions:
|
||||||
|
X509v3 Basic Constraints:
|
||||||
|
@@ -284,104 +314,167 @@ def test_proxy_cacert_dir
|
||||||
|
Netscape Comment:
|
||||||
|
OpenSSL Generated Certificate
|
||||||
|
X509v3 Subject Key Identifier:
|
||||||
|
- 7F:17:5A:58:88:96:E1:1F:44:EA:FF:AD:C6:2E:90:E2:95:32:DD:F0
|
||||||
|
+ EC:6B:7C:79:B8:3B:11:1D:42:F3:9A:2A:CF:9A:15:59:D7:F9:D8:C6
|
||||||
|
X509v3 Authority Key Identifier:
|
||||||
|
- keyid:71:DB:DC:BA:F6:7F:75:31:7A:ED:AB:8B:48:93:86:94:1A:FF:30:58
|
||||||
|
+ keyid:A0:7E:0B:AD:A3:AD:37:D7:21:0B:75:6F:8A:90:5F:8C:C9:69:DF:98
|
||||||
|
|
||||||
|
Signature Algorithm: sha256WithRSAEncryption
|
||||||
|
- 1c:80:02:67:f0:4e:a8:5a:6a:73:9c:de:75:ad:7d:2e:e9:ce:
|
||||||
|
- c3:2e:cd:70:b4:21:d9:42:0d:7c:0e:77:9e:97:91:13:02:77:
|
||||||
|
- 4a:cd:f6:fc:26:3d:42:2e:08:85:05:10:df:3a:5f:f0:77:85:
|
||||||
|
- 44:29:41:dd:03:6b:eb:e7:c8:89:8e:d1:57:a8:ac:43:c8:85:
|
||||||
|
- c3:95:64:9f:a5:6e:e9:2e:6e:06:45:21:36:ec:d5:79:f5:0e:
|
||||||
|
- a8:53:b5:f7:02:b0:59:12:e3:ae:73:25:fd:18:ab:23:b2:fc:
|
||||||
|
- a9:f9:60:e5:a7:d8:ba:0f:db:be:17:81:25:90:fd:7a:21:cb:
|
||||||
|
- fa:8b
|
||||||
|
+ 29:14:db:71:e9:a0:86:f8:cc:4d:e4:8a:76:78:a7:ff:4e:94:
|
||||||
|
+ b4:4d:92:dc:57:9a:52:64:46:27:15:8b:4f:2a:18:a7:0d:fc:
|
||||||
|
+ d2:75:ce:4e:49:97:0b:46:71:57:23:e3:a5:c0:c5:71:94:fc:
|
||||||
|
+ f2:1d:3b:06:93:82:03:59:56:d4:fb:09:06:08:b4:97:50:33:
|
||||||
|
+ cf:58:89:dd:91:31:07:26:9a:7e:7f:8d:71:de:09:dc:4f:e5:
|
||||||
|
+ 6b:a3:10:71:d4:50:24:43:a0:1c:f5:2a:d9:1a:fb:e3:d6:f1:
|
||||||
|
+ bc:6b:42:67:16:b4:3b:31:f4:ec:03:7d:78:e2:64:16:57:6d:
|
||||||
|
+ ba:7c:0c:e1:14:b2:7c:75:4e:2b:09:3e:86:e4:aa:cc:7e:5c:
|
||||||
|
+ 2b:bd:8d:26:4d:49:36:74:86:fe:c5:a6:15:4a:af:e8:b4:4e:
|
||||||
|
+ d5:f2:e1:59:c2:fb:7e:c3:c4:f1:63:d8:c2:b0:9a:ae:31:96:
|
||||||
|
+ 90:c3:09:d0:ce:2e:31:90:d7:83:dd:ac:31:cc:f7:87:41:08:
|
||||||
|
+ 92:33:28:52:fa:2d:9e:ad:ae:6a:9f:c3:be:ce:c1:a6:e4:16:
|
||||||
|
+ 2f:69:34:40:86:b6:10:21:0e:31:69:81:9e:fc:fd:c3:06:25:
|
||||||
|
+ 65:37:d3:d9:4a:20:84:aa:e7:0e:60:7c:bf:3f:88:67:ac:e5:
|
||||||
|
+ 8c:e0:61:d6
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
-MIICfDCCAeWgAwIBAgIBATANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQGEwJKUDEO
|
||||||
|
+MIIDgTCCAmmgAwIBAgIBATANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQGEwJKUDEO
|
||||||
|
MAwGA1UECAwFVG9reW8xETAPBgNVBAoMCFJ1YnlUZXN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QQOpbvdoLVcha1wawXLZCDc1zX
|
||||||
|
+pvU2D0xV8zBdGdwBDvjm/qWtUohZ3EoH7aLroQFjxIqSugaAmw2F8p/5cKzXrfB6
|
||||||
|
+P7iSKjPKadABZV0xOB32H7IXB36siGemxF8+k5Rh5uRJnbrU0ujjk9FmecXjHfha
|
||||||
|
+UFRYPQSw/WXRs4q1ijBfstw0GhT3dEwDKZdjWtfeu+t/SiqQWcArRwmCj3XeFD+8
|
||||||
|
+eJppJYBbbKBlEg0pYaz5AgMBAAGjezB5MAkGA1UdEwQCMAAwLAYJYIZIAYb4QgEN
|
||||||
|
+BB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBTsa3x5
|
||||||
|
+uDsRHULzmirPmhVZ1/nYxjAfBgNVHSMEGDAWgBSgfguto6031yELdW+KkF+MyWnf
|
||||||
|
+mDANBgkqhkiG9w0BAQsFAAOCAQEAKRTbcemghvjMTeSKdnin/06UtE2S3FeaUmRG
|
||||||
|
+JxWLTyoYpw380nXOTkmXC0ZxVyPjpcDFcZT88h07BpOCA1lW1PsJBgi0l1Azz1iJ
|
||||||
|
+3ZExByaafn+Ncd4J3E/la6MQcdRQJEOgHPUq2Rr749bxvGtCZxa0OzH07AN9eOJk
|
||||||
|
+FldtunwM4RSyfHVOKwk+huSqzH5cK72NJk1JNnSG/sWmFUqv6LRO1fLhWcL7fsPE
|
||||||
|
+8WPYwrCarjGWkMMJ0M4uMZDXg92sMcz3h0EIkjMoUvotnq2uap/Dvs7BpuQWL2k0
|
||||||
|
+QIa2ECEOMWmBnvz9wwYlZTfT2UoghKrnDmB8vz+IZ6zljOBh1g==
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
End
|
||||||
|
|
||||||
|
TestOpenURISSL::SERVER_KEY = <<'End'
|
||||||
|
-Private-Key: (1024 bit)
|
||||||
|
+RSA Private-Key: (2048 bit, 2 primes)
|
||||||
|
modulus:
|
||||||
|
- 00:bb:bd:74:69:53:58:50:24:79:f2:eb:db:8b:97:
|
||||||
|
- e4:69:a4:dd:48:0c:40:35:62:42:b3:35:8c:96:2a:
|
||||||
|
- 62:76:98:b5:2a:e0:f8:78:33:b6:ff:f8:55:bf:44:
|
||||||
|
- 69:21:d7:b5:0e:bd:8a:dd:31:1b:88:d5:b4:5e:7a:
|
||||||
|
- 82:e0:ba:99:6c:04:76:e9:ff:e6:f8:f5:06:8e:7e:
|
||||||
|
- a4:db:db:eb:43:44:12:a7:ca:ca:2b:aa:5f:83:10:
|
||||||
|
- e2:9e:35:55:e8:e8:af:be:c8:7d:bb:c2:d4:aa:c1:
|
||||||
|
- 1c:57:0b:c0:0c:3a:1d:6e:23:a9:03:26:7c:ea:8c:
|
||||||
|
- f0:86:61:ce:f1:ff:42:c7:23
|
||||||
|
+ 00:cb:b3:71:95:12:70:fc:db:d4:a9:a7:66:d6:d3:
|
||||||
|
+ 09:dd:06:80:19:e1:f2:d6:1e:31:b6:6b:20:75:51:
|
||||||
|
+ dc:a7:37:a9:ac:5b:57:5d:69:36:b6:de:1d:2c:f6:
|
||||||
|
+ 44:64:f8:e8:d6:f0:da:38:6a:ba:c2:b1:9e:dc:bb:
|
||||||
|
+ 79:94:e0:25:0c:ce:76:87:17:5d:79:9e:14:9e:bd:
|
||||||
|
+ 4c:0d:aa:74:10:3a:96:ef:76:82:d5:72:16:b5:c1:
|
||||||
|
+ ac:17:2d:90:83:73:5c:d7:a6:f5:36:0f:4c:55:f3:
|
||||||
|
+ 30:5d:19:dc:01:0e:f8:e6:fe:a5:ad:52:88:59:dc:
|
||||||
|
+ 4a:07:ed:a2:eb:a1:01:63:c4:8a:92:ba:06:80:9b:
|
||||||
|
+ 0d:85:f2:9f:f9:70:ac:d7:ad:f0:7a:3f:b8:92:2a:
|
||||||
|
+ 33:ca:69:d0:01:65:5d:31:38:1d:f6:1f:b2:17:07:
|
||||||
|
+ 7e:ac:88:67:a6:c4:5f:3e:93:94:61:e6:e4:49:9d:
|
||||||
|
+ ba:d4:d2:e8:e3:93:d1:66:79:c5:e3:1d:f8:5a:50:
|
||||||
|
+ 54:58:3d:04:b0:fd:65:d1:b3:8a:b5:8a:30:5f:b2:
|
||||||
|
+ dc:34:1a:14:f7:74:4c:03:29:97:63:5a:d7:de:bb:
|
||||||
|
+ eb:7f:4a:2a:90:59:c0:2b:47:09:82:8f:75:de:14:
|
||||||
|
+ 3f:bc:78:9a:69:25:80:5b:6c:a0:65:12:0d:29:61:
|
||||||
|
+ ac:f9
|
||||||
|
publicExponent: 65537 (0x10001)
|
||||||
|
privateExponent:
|
||||||
|
- 00:af:3a:ec:17:0a:f5:d9:07:d2:d3:4c:15:c5:3b:
|
||||||
|
- 66:b4:bc:6e:d5:ba:a9:8b:aa:45:3b:63:f5:ee:8b:
|
||||||
|
- 6d:0f:e9:04:e0:1a:cf:8f:d2:25:32:d1:a5:a7:3a:
|
||||||
|
- c1:2e:17:5a:25:82:00:c4:e7:fb:1d:42:ea:71:6c:
|
||||||
|
- c4:0f:e1:db:23:ff:1e:d6:c8:d6:60:ca:2d:06:fc:
|
||||||
|
- 54:3c:03:d4:09:96:bb:38:7a:22:a1:61:2c:f7:d0:
|
||||||
|
- d0:90:6c:9f:61:ba:61:30:5a:aa:64:ad:43:3a:53:
|
||||||
|
- 38:e8:ba:cc:8c:51:3e:68:3e:3a:6a:0f:5d:5d:e0:
|
||||||
|
- d6:df:f2:54:93:d3:14:22:a1
|
||||||
|
+ 12:be:d5:b2:01:3b:72:99:8c:4d:7c:81:43:3d:b2:
|
||||||
|
+ 87:ab:84:78:5d:49:aa:98:a6:bc:81:c9:3f:e2:a3:
|
||||||
|
+ aa:a3:bd:b2:85:c9:59:68:48:47:b5:d2:fb:83:42:
|
||||||
|
+ 32:04:91:f0:cd:c3:57:33:c3:32:0d:84:70:0d:b4:
|
||||||
|
+ 97:95:b4:f3:23:c0:d6:97:b8:db:6b:47:bc:7f:f1:
|
||||||
|
+ 12:c4:df:df:6a:74:df:5e:89:95:b8:e5:0c:1e:e1:
|
||||||
|
+ 86:54:84:1b:04:af:c3:8c:b2:be:21:d4:45:88:96:
|
||||||
|
+ a7:ca:ac:6b:50:84:69:45:7f:db:9e:5f:bb:dd:40:
|
||||||
|
+ d6:cf:f0:91:3c:84:d3:38:65:c9:15:f7:9e:37:aa:
|
||||||
|
+ 1a:2e:bc:16:b6:95:be:bc:af:45:76:ba:ad:99:f6:
|
||||||
|
+ ef:6a:e8:fd:f0:31:89:19:c4:04:67:a1:ec:c4:79:
|
||||||
|
+ 59:08:77:ab:0b:65:88:88:02:b1:38:5c:80:4e:27:
|
||||||
|
+ 78:b2:a5:bd:b5:ad:d5:9c:4c:ea:ad:db:05:56:25:
|
||||||
|
+ 70:28:da:22:fb:d8:de:8c:3b:78:fe:3e:cf:ed:1b:
|
||||||
|
+ f9:97:c6:b6:4a:bf:60:08:8f:dc:85:5e:b1:49:ab:
|
||||||
|
+ 87:8b:68:72:f4:6a:3f:bc:db:a3:6c:f7:e8:b0:15:
|
||||||
|
+ bb:4b:ba:37:49:a2:d1:7c:f8:4f:1b:05:11:22:d9:
|
||||||
|
+ 81
|
||||||
|
prime1:
|
||||||
|
- 00:e8:ec:11:fe:e6:2b:23:21:29:d5:40:a6:11:ec:
|
||||||
|
- 4c:ae:4d:08:2a:71:18:ac:d1:3e:40:2f:12:41:59:
|
||||||
|
- 12:09:e2:f7:c2:d7:6b:0a:96:0a:06:e3:90:6a:4e:
|
||||||
|
- b2:eb:25:b7:09:68:e9:13:ab:d0:5a:29:7a:e4:72:
|
||||||
|
- 1a:ee:46:a0:8b
|
||||||
|
+ 00:fb:d2:cb:14:61:00:c1:7a:83:ba:fe:79:97:a2:
|
||||||
|
+ 4d:5a:ea:40:78:96:6e:d2:be:71:5b:c6:2c:1f:c9:
|
||||||
|
+ 18:48:6b:ae:20:86:87:b5:08:0b:17:69:ca:93:cd:
|
||||||
|
+ 00:36:22:51:7b:d5:2d:8c:0c:0e:de:bc:86:a8:07:
|
||||||
|
+ 0e:c5:57:e4:df:be:ed:7d:cc:b1:a4:d6:a8:2b:00:
|
||||||
|
+ 65:2a:69:30:5e:dc:6d:6d:c4:c8:7e:20:34:eb:6f:
|
||||||
|
+ 5e:cf:b3:b8:2e:8d:56:31:44:a8:17:ea:be:65:19:
|
||||||
|
+ ff:da:14:e0:0c:73:56:14:08:47:4c:5b:79:51:74:
|
||||||
|
+ 5d:bc:e7:fe:01:2f:55:27:69
|
||||||
|
prime2:
|
||||||
|
- 00:ce:57:5e:31:e9:c9:a8:5b:1f:55:af:67:e2:49:
|
||||||
|
- 2a:af:90:b6:02:c0:32:2f:ca:ae:1e:de:47:81:73:
|
||||||
|
- a8:f8:37:53:70:93:24:62:77:d4:b8:80:30:9f:65:
|
||||||
|
- 26:20:46:ae:5a:65:6e:6d:af:68:4c:8d:e8:3c:f3:
|
||||||
|
- d1:d1:d9:6e:c9
|
||||||
|
+ 00:cf:14:54:47:bb:5f:5d:d6:2b:2d:ed:a6:8a:6f:
|
||||||
|
+ 36:fc:47:5e:9f:84:ae:aa:1f:f8:44:50:91:15:f5:
|
||||||
|
+ ed:9d:29:d9:2b:2a:19:66:56:2e:96:15:b5:8e:a9:
|
||||||
|
+ 7f:89:27:21:b5:57:55:7e:2a:c5:8c:93:fe:f6:0a:
|
||||||
|
+ a5:17:15:91:91:b3:7d:35:1a:d5:9a:2e:b8:0d:ad:
|
||||||
|
+ e6:97:6d:83:a3:27:29:ee:00:74:ef:57:34:f3:07:
|
||||||
|
+ ad:12:43:37:0c:5c:b7:26:34:bc:4e:3a:43:65:6b:
|
||||||
|
+ 0c:b8:23:ac:77:fd:b2:23:eb:7b:65:70:f6:96:c4:
|
||||||
|
+ 17:2c:aa:24:b8:a5:5e:b7:11
|
||||||
|
exponent1:
|
||||||
|
- 03:f1:02:b8:f2:82:26:5d:08:4d:30:83:de:e7:c5:
|
||||||
|
- c0:69:53:4b:0c:90:e3:53:c3:1e:e8:ed:01:28:15:
|
||||||
|
- b3:0f:21:2c:2d:e3:04:d1:d7:27:98:b0:37:ec:4f:
|
||||||
|
- 00:c5:a9:9c:42:27:37:8a:ff:c2:96:d3:1a:8c:87:
|
||||||
|
- c2:22:75:d3
|
||||||
|
+ 00:92:32:ae:f4:05:dd:0a:76:b6:43:b9:b9:9d:ee:
|
||||||
|
+ fc:39:ec:05:c1:fc:94:1a:85:b6:0a:31:e3:2c:10:
|
||||||
|
+ f3:a8:17:db:df:c6:3a:c3:3f:08:31:6f:99:cc:75:
|
||||||
|
+ 17:ca:55:e2:38:a2:6a:ef:03:91:1e:7f:15:2e:37:
|
||||||
|
+ ea:bb:67:6b:d8:fa:5f:a6:c9:4f:d9:03:46:5e:b0:
|
||||||
|
+ bc:0b:03:46:b1:cc:07:3b:d3:23:13:16:5f:a2:cf:
|
||||||
|
+ e5:9b:70:1b:5d:eb:70:3e:ea:3d:2c:a5:7c:23:f6:
|
||||||
|
+ 14:33:e8:2a:ab:0f:ca:c9:96:84:ce:2f:cd:1f:1d:
|
||||||
|
+ 0f:ce:bc:61:1b:0e:ff:c1:01
|
||||||
|
exponent2:
|
||||||
|
- 6f:17:32:ab:84:c7:01:51:2d:e9:9f:ea:3a:36:52:
|
||||||
|
- 38:fb:9c:42:96:df:6e:43:9c:c3:19:c1:3d:bc:db:
|
||||||
|
- 77:e7:b1:90:a6:67:ac:6b:ff:a6:e5:bd:47:d3:d9:
|
||||||
|
- 56:ff:36:d7:8c:4c:8b:d9:28:3a:2f:1c:9d:d4:57:
|
||||||
|
- 5e:b7:c5:a1
|
||||||
|
+ 00:9e:0b:f3:03:48:73:d1:e7:9a:cf:13:f9:ae:e0:
|
||||||
|
+ 91:03:dc:e8:d0:30:f1:2a:30:fa:48:11:81:9a:54:
|
||||||
|
+ 37:c5:62:e2:37:fa:8a:a6:3b:92:94:c3:fe:ec:e2:
|
||||||
|
+ 5a:cf:70:09:5f:21:47:c3:e2:9b:21:de:f6:92:0c:
|
||||||
|
+ af:d1:bd:89:7b:bd:95:0b:49:ee:cb:1d:6b:26:2d:
|
||||||
|
+ 9a:b7:ea:42:b4:ec:38:29:49:39:f6:4e:05:c0:93:
|
||||||
|
+ 14:39:c3:09:29:ab:3d:b1:b0:40:24:28:7d:b5:d3:
|
||||||
|
+ 0d:43:21:1f:09:f9:9b:d3:a4:6f:6a:8d:db:f6:57:
|
||||||
|
+ b5:24:46:bb:7e:1d:e0:fb:31
|
||||||
|
coefficient:
|
||||||
|
- 45:50:47:66:56:e9:21:d9:40:0e:af:3f:f2:05:77:
|
||||||
|
- ab:e7:08:40:97:88:2a:51:b3:7e:86:b0:b2:03:2e:
|
||||||
|
- 6d:36:3f:46:42:97:7d:5a:a2:93:6c:05:c2:8b:8b:
|
||||||
|
- 2d:af:d5:7d:75:e9:70:f0:2d:21:e3:b9:cf:4d:9a:
|
||||||
|
- c4:97:e2:79
|
||||||
|
+ 10:93:1d:c8:33:a5:c1:d3:84:6a:22:68:e5:60:cc:
|
||||||
|
+ 9c:27:0a:52:0b:58:a3:0c:83:f4:f4:46:09:0c:a1:
|
||||||
|
+ 41:a6:ea:bf:80:9d:0e:5d:d8:3d:25:00:c5:a1:35:
|
||||||
|
+ 7a:8c:ea:95:16:94:c3:7c:8f:2b:e0:53:ea:66:ae:
|
||||||
|
+ 19:be:55:04:3d:ee:e2:4b:a8:69:1b:7e:d8:09:7f:
|
||||||
|
+ ed:7c:ee:95:88:10:dc:4b:5b:bf:81:a4:e8:dc:7e:
|
||||||
|
+ 4f:e5:c3:90:c4:e5:5a:90:10:32:d6:08:b5:1f:5d:
|
||||||
|
+ 09:18:d8:44:28:e4:c4:c7:07:75:9b:9b:b3:80:86:
|
||||||
|
+ 68:9d:fe:68:f3:4d:db:66
|
||||||
|
+writing RSA key
|
||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
-MIICXAIBAAKBgQC7vXRpU1hQJHny69uLl+RppN1IDEA1YkKzNYyWKmJ2mLUq4Ph4
|
||||||
|
-M7b/+FW/RGkh17UOvYrdMRuI1bReeoLguplsBHbp/+b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163wej+4kiozymnQAWVdMTgd9h+yFwd+rIhnpsRfPpOUYebkSZ26
|
||||||
|
+1NLo45PRZnnF4x34WlBUWD0EsP1l0bOKtYowX7LcNBoU93RMAymXY1rX3rvrf0oq
|
||||||
|
+kFnAK0cJgo913hQ/vHiaaSWAW2ygZRINKWGs+QIDAQABAoIBABK+1bIBO3KZjE18
|
||||||
|
+gUM9soerhHhdSaqYpryByT/io6qjvbKFyVloSEe10vuDQjIEkfDNw1czwzINhHAN
|
||||||
|
+tJeVtPMjwNaXuNtrR7x/8RLE399qdN9eiZW45Qwe4YZUhBsEr8OMsr4h1EWIlqfK
|
||||||
|
+rGtQhGlFf9ueX7vdQNbP8JE8hNM4ZckV9543qhouvBa2lb68r0V2uq2Z9u9q6P3w
|
||||||
|
+MYkZxARnoezEeVkId6sLZYiIArE4XIBOJ3iypb21rdWcTOqt2wVWJXAo2iL72N6M
|
||||||
|
+O3j+Ps/tG/mXxrZKv2AIj9yFXrFJq4eLaHL0aj+826Ns9+iwFbtLujdJotF8+E8b
|
||||||
|
+BREi2YECgYEA+9LLFGEAwXqDuv55l6JNWupAeJZu0r5xW8YsH8kYSGuuIIaHtQgL
|
||||||
|
+F2nKk80ANiJRe9UtjAwO3ryGqAcOxVfk377tfcyxpNaoKwBlKmkwXtxtbcTIfiA0
|
||||||
|
+629ez7O4Lo1WMUSoF+q+ZRn/2hTgDHNWFAhHTFt5UXRdvOf+AS9VJ2kCgYEAzxRU
|
||||||
|
+R7tfXdYrLe2mim82/Eden4Suqh/4RFCRFfXtnSnZKyoZZlYulhW1jql/iSchtVdV
|
||||||
|
+firFjJP+9gqlFxWRkbN9NRrVmi64Da3ml22Doycp7gB071c08wetEkM3DFy3JjS8
|
||||||
|
+TjpDZWsMuCOsd/2yI+t7ZXD2lsQXLKokuKVetxECgYEAkjKu9AXdCna2Q7m5ne78
|
||||||
|
+OewFwfyUGoW2CjHjLBDzqBfb38Y6wz8IMW+ZzHUXylXiOKJq7wORHn8VLjfqu2dr
|
||||||
|
+2PpfpslP2QNGXrC8CwNGscwHO9MjExZfos/lm3AbXetwPuo9LKV8I/YUM+gqqw/K
|
||||||
|
+yZaEzi/NHx0PzrxhGw7/wQECgYEAngvzA0hz0eeazxP5ruCRA9zo0DDxKjD6SBGB
|
||||||
|
+mlQ3xWLiN/qKpjuSlMP+7OJaz3AJXyFHw+KbId72kgyv0b2Je72VC0nuyx1rJi2a
|
||||||
|
+t+pCtOw4KUk59k4FwJMUOcMJKas9sbBAJCh9tdMNQyEfCfmb06Rvao3b9le1JEa7
|
||||||
|
+fh3g+zECgYAQkx3IM6XB04RqImjlYMycJwpSC1ijDIP09EYJDKFBpuq/gJ0OXdg9
|
||||||
|
+JQDFoTV6jOqVFpTDfI8r4FPqZq4ZvlUEPe7iS6hpG37YCX/tfO6ViBDcS1u/gaTo
|
||||||
|
+3H5P5cOQxOVakBAy1gi1H10JGNhEKOTExwd1m5uzgIZonf5o803bZg==
|
||||||
|
-----END RSA PRIVATE KEY-----
|
||||||
|
End
|
||||||
|
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
From 9b42fce32bff25e0569581f76f532b9d57865aef Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||||||
|
Date: Mon, 27 Jul 2020 14:56:05 +0200
|
||||||
|
Subject: [PATCH] Timeout the test_bug_reporter_add witout raising error.
|
||||||
|
|
||||||
|
While timeouting the threads might be still good idea, it does not seems
|
||||||
|
the timeout impacts the TestBugReporter#test_bug_reporter_add result,
|
||||||
|
because the output of the child process has been already collected
|
||||||
|
earlier.
|
||||||
|
|
||||||
|
It seems that when the system is under heavy load, the thread might not
|
||||||
|
be sheduled to finish its processing. Even finishing the child process
|
||||||
|
might take tens of seconds and therefore the test case finish might take
|
||||||
|
a while.
|
||||||
|
---
|
||||||
|
test/-ext-/bug_reporter/test_bug_reporter.rb | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
|
||||||
|
index 628fcd0340..2c677cc8a7 100644
|
||||||
|
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
|
||||||
|
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
|
||||||
|
@@ -17,7 +17,7 @@ def test_bug_reporter_add
|
||||||
|
args = ["--disable-gems", "-r-test-/bug_reporter",
|
||||||
|
"-C", tmpdir]
|
||||||
|
stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
|
||||||
|
- assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
|
||||||
|
+ assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT", timeout_error: nil)
|
||||||
|
ensure
|
||||||
|
FileUtils.rm_rf(tmpdir) if tmpdir
|
||||||
|
end
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
162
ruby-2.7.2-psych-fix-yaml-tests.patch
Normal file
162
ruby-2.7.2-psych-fix-yaml-tests.patch
Normal file
|
|
@ -0,0 +1,162 @@
|
||||||
|
From 3c55d93cf68b1a969b90b306de4dd8b88d74a2f2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: nagachika <nagachika@ruby-lang.org>
|
||||||
|
Date: Sat, 13 Jun 2020 11:29:51 +0900
|
||||||
|
Subject: [PATCH] merge revision(s) 7e289cdf3fed588b2d5a6973e29f9ff95cb8d76c:
|
||||||
|
[Backport #16949]
|
||||||
|
|
||||||
|
[ruby/psych] Fixing compatibility with libyaml 0.2.5
|
||||||
|
|
||||||
|
The main issue is that commas aren't allowed in local tags. libyaml
|
||||||
|
was updated to follow the spec, and our tests were out of date.
|
||||||
|
|
||||||
|
See: https://github.com/yaml/libyaml/issues/196
|
||||||
|
|
||||||
|
https://github.com/ruby/psych/commit/3f5e520fd3
|
||||||
|
---
|
||||||
|
test/psych/test_nil.rb | 4 ++--
|
||||||
|
test/psych/test_psych.rb | 17 +++++++----------
|
||||||
|
test/psych/test_yaml.rb | 24 ++++++++++++------------
|
||||||
|
version.h | 4 ++--
|
||||||
|
4 files changed, 23 insertions(+), 26 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb
|
||||||
|
index 910a2e697def..bcbbcb9c9397 100644
|
||||||
|
--- a/test/psych/test_nil.rb
|
||||||
|
+++ b/test/psych/test_nil.rb
|
||||||
|
@@ -5,13 +5,13 @@ module Psych
|
||||||
|
class TestNil < TestCase
|
||||||
|
def test_nil
|
||||||
|
yml = Psych.dump nil
|
||||||
|
- assert_match(/--- \n(?:\.\.\.\n)?/, yml)
|
||||||
|
+ assert_match(/---[ ]?\n(?:\.\.\.\n)?/, yml)
|
||||||
|
assert_nil Psych.load(yml)
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_array_nil
|
||||||
|
yml = Psych.dump [nil]
|
||||||
|
- assert_equal "---\n- \n", yml
|
||||||
|
+ assert_match(/---\n-[ ]?\n/, yml)
|
||||||
|
assert_equal [nil], Psych.load(yml)
|
||||||
|
end
|
||||||
|
|
||||||
|
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb
|
||||||
|
index eeadc864ef4e..e557feffb76a 100644
|
||||||
|
--- a/test/psych/test_psych.rb
|
||||||
|
+++ b/test/psych/test_psych.rb
|
||||||
|
@@ -121,17 +121,17 @@ def test_add_builtin_type
|
||||||
|
|
||||||
|
def test_domain_types
|
||||||
|
got = nil
|
||||||
|
- Psych.add_domain_type 'foo.bar,2002', 'foo' do |type, val|
|
||||||
|
+ Psych.add_domain_type 'foo.bar/2002', 'foo' do |type, val|
|
||||||
|
got = val
|
||||||
|
end
|
||||||
|
|
||||||
|
- Psych.load('--- !foo.bar,2002/foo hello')
|
||||||
|
+ Psych.load('--- !foo.bar/2002:foo hello')
|
||||||
|
assert_equal 'hello', got
|
||||||
|
|
||||||
|
- Psych.load("--- !foo.bar,2002/foo\n- hello\n- world")
|
||||||
|
+ Psych.load("--- !foo.bar/2002:foo\n- hello\n- world")
|
||||||
|
assert_equal %w{ hello world }, got
|
||||||
|
|
||||||
|
- Psych.load("--- !foo.bar,2002/foo\nhello: world")
|
||||||
|
+ Psych.load("--- !foo.bar/2002:foo\nhello: world")
|
||||||
|
assert_equal({ 'hello' => 'world' }, got)
|
||||||
|
end
|
||||||
|
|
||||||
|
@@ -170,16 +170,13 @@ def test_callbacks
|
||||||
|
types = []
|
||||||
|
appender = lambda { |*args| types << args }
|
||||||
|
|
||||||
|
- Psych.add_builtin_type('foo', &appender)
|
||||||
|
- Psych.add_domain_type('example.com,2002', 'foo', &appender)
|
||||||
|
+ Psych.add_domain_type('example.com:2002', 'foo', &appender)
|
||||||
|
Psych.load <<-eoyml
|
||||||
|
-- !tag:yaml.org,2002:foo bar
|
||||||
|
-- !tag:example.com,2002:foo bar
|
||||||
|
+- !tag:example.com:2002:foo bar
|
||||||
|
eoyml
|
||||||
|
|
||||||
|
assert_equal [
|
||||||
|
- ["tag:yaml.org,2002:foo", "bar"],
|
||||||
|
- ["tag:example.com,2002:foo", "bar"]
|
||||||
|
+ ["tag:example.com:2002:foo", "bar"]
|
||||||
|
], types
|
||||||
|
end
|
||||||
|
|
||||||
|
diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb
|
||||||
|
index 5fa759c981b2..0dfd60f89434 100644
|
||||||
|
--- a/test/psych/test_yaml.rb
|
||||||
|
+++ b/test/psych/test_yaml.rb
|
||||||
|
@@ -617,11 +617,11 @@ def test_spec_domain_prefix
|
||||||
|
raise ArgumentError, "Not a Hash in domain.tld,2002/invoice: " + val.inspect
|
||||||
|
end
|
||||||
|
}
|
||||||
|
- Psych.add_domain_type( "domain.tld,2002", 'invoice', &customer_proc )
|
||||||
|
- Psych.add_domain_type( "domain.tld,2002", 'customer', &customer_proc )
|
||||||
|
+ Psych.add_domain_type( "domain.tld/2002", 'invoice', &customer_proc )
|
||||||
|
+ Psych.add_domain_type( "domain.tld/2002", 'customer', &customer_proc )
|
||||||
|
assert_parse_only( { "invoice"=> { "customers"=> [ { "given"=>"Chris", "type"=>"domain customer", "family"=>"Dumars" } ], "type"=>"domain invoice" } }, <<EOY
|
||||||
|
# 'http://domain.tld,2002/invoice' is some type family.
|
||||||
|
-invoice: !domain.tld,2002/invoice
|
||||||
|
+invoice: !domain.tld/2002:invoice
|
||||||
|
# 'seq' is shorthand for 'http://yaml.org/seq'.
|
||||||
|
# This does not effect '^customer' below
|
||||||
|
# because it is does not specify a prefix.
|
||||||
|
@@ -705,7 +705,7 @@ def test_spec_override_anchor
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_spec_explicit_families
|
||||||
|
- Psych.add_domain_type( "somewhere.com,2002", 'type' ) { |type, val|
|
||||||
|
+ Psych.add_domain_type( "somewhere.com/2002", 'type' ) { |type, val|
|
||||||
|
"SOMEWHERE: #{val}"
|
||||||
|
}
|
||||||
|
assert_parse_only(
|
||||||
|
@@ -717,7 +717,7 @@ def test_spec_explicit_families
|
||||||
|
Pz7Y6OjuDg4J+fn5OTk6enp
|
||||||
|
56enmleECcgggoBADs=
|
||||||
|
|
||||||
|
-hmm: !somewhere.com,2002/type |
|
||||||
|
+hmm: !somewhere.com/2002:type |
|
||||||
|
family above is short for
|
||||||
|
http://somewhere.com/type
|
||||||
|
EOY
|
||||||
|
@@ -726,7 +726,7 @@ def test_spec_explicit_families
|
||||||
|
|
||||||
|
def test_spec_application_family
|
||||||
|
# Testing the clarkevans.com graphs
|
||||||
|
- Psych.add_domain_type( "clarkevans.com,2002", 'graph/shape' ) { |type, val|
|
||||||
|
+ Psych.add_domain_type( "clarkevans.com/2002", 'graph/shape' ) { |type, val|
|
||||||
|
if Array === val
|
||||||
|
val << "Shape Container"
|
||||||
|
val
|
||||||
|
@@ -743,13 +743,13 @@ def test_spec_application_family
|
||||||
|
raise ArgumentError, "Invalid graph of type #{val.class}: " + val.inspect
|
||||||
|
end
|
||||||
|
}
|
||||||
|
- Psych.add_domain_type( "clarkevans.com,2002", 'graph/circle', &one_shape_proc )
|
||||||
|
- Psych.add_domain_type( "clarkevans.com,2002", 'graph/line', &one_shape_proc )
|
||||||
|
- Psych.add_domain_type( "clarkevans.com,2002", 'graph/text', &one_shape_proc )
|
||||||
|
+ Psych.add_domain_type( "clarkevans.com/2002", 'graph/circle', &one_shape_proc )
|
||||||
|
+ Psych.add_domain_type( "clarkevans.com/2002", 'graph/line', &one_shape_proc )
|
||||||
|
+ Psych.add_domain_type( "clarkevans.com/2002", 'graph/text', &one_shape_proc )
|
||||||
|
# MODIFIED to remove invalid Psych
|
||||||
|
assert_parse_only(
|
||||||
|
[[{"radius"=>7, "center"=>{"x"=>73, "y"=>129}, "TYPE"=>"Shape: graph/circle"}, {"finish"=>{"x"=>89, "y"=>102}, "TYPE"=>"Shape: graph/line", "start"=>{"x"=>73, "y"=>129}}, {"TYPE"=>"Shape: graph/text", "value"=>"Pretty vector drawing.", "start"=>{"x"=>73, "y"=>129}, "color"=>16772795}, "Shape Container"]], <<EOY
|
||||||
|
-- !clarkevans.com,2002/graph/shape
|
||||||
|
+- !clarkevans.com/2002:graph/shape
|
||||||
|
- !/graph/circle
|
||||||
|
center: &ORIGIN {x: 73, y: 129}
|
||||||
|
radius: 7
|
||||||
|
@@ -771,8 +771,8 @@ def test_spec_float_explicit
|
||||||
|
# have the same type and value.
|
||||||
|
- 10.0
|
||||||
|
- !float 10
|
||||||
|
-- !yaml.org,2002/float '10'
|
||||||
|
-- !yaml.org,2002/float "\\
|
||||||
|
+- !yaml.org/2002/float '10'
|
||||||
|
+- !yaml.org/2002/float "\\
|
||||||
|
1\\
|
||||||
|
0"
|
||||||
|
EOY
|
||||||
91
ruby-2.8.0-Brace-the-fact-that-lchmod-can-EOPNOTSUPP.patch
Normal file
91
ruby-2.8.0-Brace-the-fact-that-lchmod-can-EOPNOTSUPP.patch
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
From 29d9f866f686e81818fb9cf402c4fb479decb282 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
|
||||||
|
<shyouhei@ruby-lang.org>
|
||||||
|
Date: Thu, 23 Jan 2020 15:33:42 +0900
|
||||||
|
Subject: [PATCH 1/2] brace the fact that lchmod(2) can EOPNOTSUPP
|
||||||
|
|
||||||
|
Musl libc has this function as a tiny wrapper of fchmodat(3posix). On
|
||||||
|
the other hand Linux kernel does not support changing modes of a symlink.
|
||||||
|
The operation always fails with EOPNOTSUPP. This fchmodat behaviour is
|
||||||
|
defined in POSIX. We have to take care of such exceptions.
|
||||||
|
---
|
||||||
|
lib/fileutils.rb | 3 ++-
|
||||||
|
test/pathname/test_pathname.rb | 2 +-
|
||||||
|
test/ruby/test_notimp.rb | 19 ++++++++++++-------
|
||||||
|
3 files changed, 15 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
|
||||||
|
index f56d7f9cb9..1a02d5435e 100644
|
||||||
|
--- a/lib/fileutils.rb
|
||||||
|
+++ b/lib/fileutils.rb
|
||||||
|
@@ -1242,6 +1242,7 @@ def chmod(mode)
|
||||||
|
else
|
||||||
|
File.chmod mode, path()
|
||||||
|
end
|
||||||
|
+ rescue Errno::EOPNOTSUPP
|
||||||
|
end
|
||||||
|
|
||||||
|
def chown(uid, gid)
|
||||||
|
@@ -1317,7 +1318,7 @@ def copy_metadata(path)
|
||||||
|
if st.symlink?
|
||||||
|
begin
|
||||||
|
File.lchmod mode, path
|
||||||
|
- rescue NotImplementedError
|
||||||
|
+ rescue NotImplementedError, Errno::EOPNOTSUPP
|
||||||
|
end
|
||||||
|
else
|
||||||
|
File.chmod mode, path
|
||||||
|
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
|
||||||
|
index 8a72b8026d..e381d3fa58 100644
|
||||||
|
--- a/test/pathname/test_pathname.rb
|
||||||
|
+++ b/test/pathname/test_pathname.rb
|
||||||
|
@@ -823,7 +823,7 @@ def test_lchmod
|
||||||
|
old = path.lstat.mode
|
||||||
|
begin
|
||||||
|
path.lchmod(0444)
|
||||||
|
- rescue NotImplementedError
|
||||||
|
+ rescue NotImplementedError, Errno::EOPNOTSUPP
|
||||||
|
next
|
||||||
|
end
|
||||||
|
assert_equal(0444, path.lstat.mode & 0777)
|
||||||
|
diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb
|
||||||
|
index ddebb657bf..daa5a82d7b 100644
|
||||||
|
--- a/test/ruby/test_notimp.rb
|
||||||
|
+++ b/test/ruby/test_notimp.rb
|
||||||
|
@@ -13,11 +13,11 @@ def test_respond_to_fork
|
||||||
|
|
||||||
|
def test_respond_to_lchmod
|
||||||
|
assert_include(File.methods, :lchmod)
|
||||||
|
- if /linux/ =~ RUBY_PLATFORM
|
||||||
|
- assert_equal(false, File.respond_to?(:lchmod))
|
||||||
|
- end
|
||||||
|
- if /freebsd/ =~ RUBY_PLATFORM
|
||||||
|
+ case RUBY_PLATFORM
|
||||||
|
+ when /freebsd/, /linux-musl/
|
||||||
|
assert_equal(true, File.respond_to?(:lchmod))
|
||||||
|
+ when /linux/
|
||||||
|
+ assert_equal(false, File.respond_to?(:lchmod))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
@@ -57,9 +57,14 @@ def test_call_lchmod
|
||||||
|
File.open(f, "w") {}
|
||||||
|
File.symlink f, g
|
||||||
|
newmode = 0444
|
||||||
|
- File.lchmod newmode, "#{d}/g"
|
||||||
|
- snew = File.lstat(g)
|
||||||
|
- assert_equal(newmode, snew.mode & 0777)
|
||||||
|
+ begin
|
||||||
|
+ File.lchmod newmode, "#{d}/g"
|
||||||
|
+ rescue Errno::EOPNOTSUPP
|
||||||
|
+ skip $!
|
||||||
|
+ else
|
||||||
|
+ snew = File.lstat(g)
|
||||||
|
+ assert_equal(newmode, snew.mode & 0777)
|
||||||
|
+ end
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
128
ruby-2.8.0-Moved-not-implemented-method-tests.patch
Normal file
128
ruby-2.8.0-Moved-not-implemented-method-tests.patch
Normal file
|
|
@ -0,0 +1,128 @@
|
||||||
|
From 5400fc3c67446e2f7f35ea317c596e71f0cb1ca4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
Date: Fri, 28 Feb 2020 21:15:37 +0900
|
||||||
|
Subject: [PATCH 2/2] Moved not-implemented method tests [Bug #16662]
|
||||||
|
|
||||||
|
Test not-implemented method with the dedicated methods, instead of
|
||||||
|
platform dependent features.
|
||||||
|
---
|
||||||
|
test/-ext-/test_notimplement.rb | 7 +++
|
||||||
|
test/ruby/test_notimp.rb | 90 ---------------------------------
|
||||||
|
2 files changed, 7 insertions(+), 90 deletions(-)
|
||||||
|
delete mode 100644 test/ruby/test_notimp.rb
|
||||||
|
|
||||||
|
diff --git a/test/-ext-/test_notimplement.rb b/test/-ext-/test_notimplement.rb
|
||||||
|
index 0eba7bdaf8..be8c3623cc 100644
|
||||||
|
--- a/test/-ext-/test_notimplement.rb
|
||||||
|
+++ b/test/-ext-/test_notimplement.rb
|
||||||
|
@@ -10,6 +10,11 @@ def test_funcall_notimplement
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_respond_to
|
||||||
|
+ assert_include(Bug.methods(false), :notimplement)
|
||||||
|
assert_not_respond_to(Bug, :notimplement)
|
||||||
|
end
|
||||||
|
+
|
||||||
|
+ def test_method_inspect_notimplement
|
||||||
|
+ assert_match(/not-implemented/, Bug.method(:notimplement).inspect)
|
||||||
|
+ end
|
||||||
|
end
|
||||||
|
diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb
|
||||||
|
deleted file mode 100644
|
||||||
|
index daa5a82d7b..0000000000
|
||||||
|
--- a/test/ruby/test_notimp.rb
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,90 +0,0 @@
|
||||||
|
-# frozen_string_literal: false
|
||||||
|
-require 'test/unit'
|
||||||
|
-require 'timeout'
|
||||||
|
-require 'tmpdir'
|
||||||
|
-
|
||||||
|
-class TestNotImplement < Test::Unit::TestCase
|
||||||
|
- def test_respond_to_fork
|
||||||
|
- assert_include(Process.methods, :fork)
|
||||||
|
- if /linux/ =~ RUBY_PLATFORM
|
||||||
|
- assert_equal(true, Process.respond_to?(:fork))
|
||||||
|
- end
|
||||||
|
- end
|
||||||
|
-
|
||||||
|
- def test_respond_to_lchmod
|
||||||
|
- assert_include(File.methods, :lchmod)
|
||||||
|
- case RUBY_PLATFORM
|
||||||
|
- when /freebsd/, /linux-musl/
|
||||||
|
- assert_equal(true, File.respond_to?(:lchmod))
|
||||||
|
- when /linux/
|
||||||
|
- assert_equal(false, File.respond_to?(:lchmod))
|
||||||
|
- end
|
||||||
|
- end
|
||||||
|
-
|
||||||
|
- def test_call_fork
|
||||||
|
- GC.start
|
||||||
|
- pid = nil
|
||||||
|
- ps =
|
||||||
|
- case RUBY_PLATFORM
|
||||||
|
- when /linux/ # assume Linux Distribution uses procps
|
||||||
|
- proc {`ps -eLf #{pid}`}
|
||||||
|
- when /freebsd/
|
||||||
|
- proc {`ps -lH #{pid}`}
|
||||||
|
- when /darwin/
|
||||||
|
- proc {`ps -lM #{pid}`}
|
||||||
|
- else
|
||||||
|
- proc {`ps -l #{pid}`}
|
||||||
|
- end
|
||||||
|
- assert_nothing_raised(Timeout::Error, ps) do
|
||||||
|
- Timeout.timeout(EnvUtil.apply_timeout_scale(5)) {
|
||||||
|
- pid = fork {}
|
||||||
|
- Process.wait pid
|
||||||
|
- pid = nil
|
||||||
|
- }
|
||||||
|
- end
|
||||||
|
- ensure
|
||||||
|
- if pid
|
||||||
|
- Process.kill(:KILL, pid)
|
||||||
|
- Process.wait pid
|
||||||
|
- end
|
||||||
|
- end if Process.respond_to?(:fork)
|
||||||
|
-
|
||||||
|
- def test_call_lchmod
|
||||||
|
- if File.respond_to?(:lchmod)
|
||||||
|
- Dir.mktmpdir {|d|
|
||||||
|
- f = "#{d}/f"
|
||||||
|
- g = "#{d}/g"
|
||||||
|
- File.open(f, "w") {}
|
||||||
|
- File.symlink f, g
|
||||||
|
- newmode = 0444
|
||||||
|
- begin
|
||||||
|
- File.lchmod newmode, "#{d}/g"
|
||||||
|
- rescue Errno::EOPNOTSUPP
|
||||||
|
- skip $!
|
||||||
|
- else
|
||||||
|
- snew = File.lstat(g)
|
||||||
|
- assert_equal(newmode, snew.mode & 0777)
|
||||||
|
- end
|
||||||
|
- }
|
||||||
|
- end
|
||||||
|
- end
|
||||||
|
-
|
||||||
|
- def test_method_inspect_fork
|
||||||
|
- m = Process.method(:fork)
|
||||||
|
- if Process.respond_to?(:fork)
|
||||||
|
- assert_not_match(/not-implemented/, m.inspect)
|
||||||
|
- else
|
||||||
|
- assert_match(/not-implemented/, m.inspect)
|
||||||
|
- end
|
||||||
|
- end
|
||||||
|
-
|
||||||
|
- def test_method_inspect_lchmod
|
||||||
|
- m = File.method(:lchmod)
|
||||||
|
- if File.respond_to?(:lchmod)
|
||||||
|
- assert_not_match(/not-implemented/, m.inspect)
|
||||||
|
- else
|
||||||
|
- assert_match(/not-implemented/, m.inspect)
|
||||||
|
- end
|
||||||
|
- end
|
||||||
|
-
|
||||||
|
-end
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
96
ruby.spec
96
ruby.spec
|
|
@ -1,6 +1,6 @@
|
||||||
%global major_version 2
|
%global major_version 2
|
||||||
%global minor_version 5
|
%global minor_version 5
|
||||||
%global teeny_version 3
|
%global teeny_version 8
|
||||||
%global major_minor_version %{major_version}.%{minor_version}
|
%global major_minor_version %{major_version}.%{minor_version}
|
||||||
|
|
||||||
%global ruby_version %{major_minor_version}.%{teeny_version}
|
%global ruby_version %{major_minor_version}.%{teeny_version}
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%global release 104
|
%global release 108
|
||||||
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
||||||
|
|
||||||
# The RubyGems library has to stay out of Ruby directory tree, since the
|
# The RubyGems library has to stay out of Ruby directory tree, since the
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
%global rubygems_dir %{_datadir}/rubygems
|
%global rubygems_dir %{_datadir}/rubygems
|
||||||
|
|
||||||
# Bundled libraries versions
|
# Bundled libraries versions
|
||||||
%global rubygems_version 2.7.6
|
%global rubygems_version 2.7.6.2
|
||||||
%global molinillo_version 0.5.7
|
%global molinillo_version 0.5.7
|
||||||
|
|
||||||
# TODO: The IRB has strange versioning. Keep the Ruby's versioning ATM.
|
# TODO: The IRB has strange versioning. Keep the Ruby's versioning ATM.
|
||||||
|
|
@ -45,8 +45,8 @@
|
||||||
%global openssl_version 2.1.2
|
%global openssl_version 2.1.2
|
||||||
%global power_assert_version 1.1.1
|
%global power_assert_version 1.1.1
|
||||||
%global psych_version 3.0.2
|
%global psych_version 3.0.2
|
||||||
%global rake_version 12.3.0
|
%global rake_version 12.3.3
|
||||||
%global rdoc_version 6.0.1
|
%global rdoc_version 6.0.1.1
|
||||||
%global test_unit_version 3.2.7
|
%global test_unit_version 3.2.7
|
||||||
%global xmlrpc_version 0.3.0
|
%global xmlrpc_version 0.3.0
|
||||||
|
|
||||||
|
|
@ -71,6 +71,10 @@
|
||||||
%bcond_without hardening_test
|
%bcond_without hardening_test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# LTO appears to cause some issue to SEGV handler.
|
||||||
|
# https://bugs.ruby-lang.org/issues/17052
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
Summary: An interpreter of object-oriented scripting language
|
Summary: An interpreter of object-oriented scripting language
|
||||||
Name: ruby
|
Name: ruby
|
||||||
Version: %{ruby_version}
|
Version: %{ruby_version}
|
||||||
|
|
@ -102,8 +106,8 @@ Source14: test_systemtap.rb
|
||||||
|
|
||||||
# The load directive is supported since RPM 4.12, i.e. F21+. The build process
|
# The load directive is supported since RPM 4.12, i.e. F21+. The build process
|
||||||
# fails on older Fedoras.
|
# fails on older Fedoras.
|
||||||
%{?load:%{SOURCE4}}
|
%{load:%{SOURCE4}}
|
||||||
%{?load:%{SOURCE5}}
|
%{load:%{SOURCE5}}
|
||||||
|
|
||||||
# Fix ruby_version abuse.
|
# Fix ruby_version abuse.
|
||||||
# https://bugs.ruby-lang.org/issues/11002
|
# https://bugs.ruby-lang.org/issues/11002
|
||||||
|
|
@ -136,6 +140,9 @@ Patch9: ruby-2.3.1-Rely-on-ldd-to-detect-glibc.patch
|
||||||
# Add Gem.operating_system_defaults to allow packagers to override defaults.
|
# Add Gem.operating_system_defaults to allow packagers to override defaults.
|
||||||
# https://github.com/rubygems/rubygems/pull/2116
|
# https://github.com/rubygems/rubygems/pull/2116
|
||||||
Patch10: ruby-2.5.0-Add-Gem.operating_system_defaults.patch
|
Patch10: ruby-2.5.0-Add-Gem.operating_system_defaults.patch
|
||||||
|
# Fix compatibility with libyaml 0.2.5
|
||||||
|
# https://bugs.ruby-lang.org/issues/16949
|
||||||
|
Patch14: ruby-2.7.2-psych-fix-yaml-tests.patch
|
||||||
# Don't force libraries used to build Ruby to its dependencies.
|
# Don't force libraries used to build Ruby to its dependencies.
|
||||||
# https://bugs.ruby-lang.org/issues/14422
|
# https://bugs.ruby-lang.org/issues/14422
|
||||||
Patch15: ruby-2.6.0-library-options-to-MAINLIBS.patch
|
Patch15: ruby-2.6.0-library-options-to-MAINLIBS.patch
|
||||||
|
|
@ -143,27 +150,36 @@ Patch15: ruby-2.6.0-library-options-to-MAINLIBS.patch
|
||||||
# https://github.com/rubygems/rubygems/pull/2367
|
# https://github.com/rubygems/rubygems/pull/2367
|
||||||
Patch16: ruby-2.5.1-Avoid-need-of-C++-compiler-to-pass-the-test-suite.patch
|
Patch16: ruby-2.5.1-Avoid-need-of-C++-compiler-to-pass-the-test-suite.patch
|
||||||
# https://github.com/ruby/rdoc/commit/d05e6269d4a4dfd701f5ddb3ae34306cba891511
|
# https://github.com/ruby/rdoc/commit/d05e6269d4a4dfd701f5ddb3ae34306cba891511
|
||||||
|
# Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add.
|
||||||
|
# https://bugs.ruby-lang.org/issues/16492
|
||||||
|
Patch19: ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch
|
||||||
Patch20: ruby-2.6.0-rdoc-6.0.1-fix-template-typo.patch
|
Patch20: ruby-2.6.0-rdoc-6.0.1-fix-template-typo.patch
|
||||||
# Properly harden package using -fstack-protector-strong.
|
# Properly harden package using -fstack-protector-strong.
|
||||||
# https://bugs.ruby-lang.org/issues/15053
|
# https://bugs.ruby-lang.org/issues/15053
|
||||||
Patch24: ruby-2.6.0-configure-fstack-protector-strong.patch
|
Patch24: ruby-2.6.0-configure-fstack-protector-strong.patch
|
||||||
# Fix Tokyo TZ tests.
|
|
||||||
# https://github.com/ruby/ruby/commit/e71ca6cdcf108e6a2fa47ec9fadefe7554717908
|
|
||||||
Patch25: ruby-2.6.0-Update-for-tzdata-2018f.patch
|
|
||||||
# Refresh expired certificates.
|
|
||||||
# https://bugs.ruby-lang.org/issues/15502
|
|
||||||
# https://github.com/ruby/ruby/commit/6f9b40ea53d8f3fb2a5b1c7ac55c207d42c77ef4
|
|
||||||
Patch11: ruby-2.6.0-Try-to-update-cert.patch
|
|
||||||
|
|
||||||
# Fix some OpenSSL 1.1.1 test failures.
|
|
||||||
# https://github.com/ruby/ruby/commit/1dfc377ae3b174b043d3f0ed36de57b0296b34d0
|
|
||||||
Patch19: ruby-2.6.0-net-http-net-ftp-fix-session-resumption-with-TLS-1.3.patch
|
|
||||||
# Add support for .include directive used by OpenSSL config files.
|
# Add support for .include directive used by OpenSSL config files.
|
||||||
# https://github.com/ruby/openssl/pull/216
|
# https://github.com/ruby/openssl/pull/216
|
||||||
Patch22: ruby-2.6.0-config-support-include-directive.patch
|
Patch22: ruby-2.6.0-config-support-include-directive.patch
|
||||||
# Use larger keys to prevent test failures.
|
# Use larger keys to prevent test failures.
|
||||||
# https://github.com/ruby/openssl/pull/217
|
# https://github.com/ruby/openssl/pull/217
|
||||||
Patch23: ruby-2.6.0-use-larger-keys-for-SSL-tests.patch
|
Patch23: ruby-2.6.0-use-larger-keys-for-SSL-tests.patch
|
||||||
|
# Fix lchmod test failures.
|
||||||
|
# https://github.com/ruby/ruby/commit/a19228f878d955eaf2cce086bcf53f46fdf894b9
|
||||||
|
Patch41: ruby-2.8.0-Brace-the-fact-that-lchmod-can-EOPNOTSUPP.patch
|
||||||
|
# https://github.com/ruby/ruby/commit/72c02aa4b79731c7f25c9267f74b347f1946c704
|
||||||
|
Patch42: ruby-2.8.0-Moved-not-implemented-method-tests.patch
|
||||||
|
# Use larger keys for test_ssl test failures.
|
||||||
|
# https://github.com/ruby/ruby/commit/a3843824c455d0b0efcfc5af03cbcebaac090eda
|
||||||
|
Patch43: ruby-2.6.0-use-larger-keys-for-SSL-tests2.patch
|
||||||
|
# Regenerate server certificates with larger keys for open-uri tests.
|
||||||
|
# https://github.com/ruby/ruby/commit/eaddc972820d49212c495542816f9f7845e7828c
|
||||||
|
Patch44: ruby-2.6.4-open-uri-regenerate-server-certificates-for-tests.patch
|
||||||
|
# Use larger keys for webrick test failures.
|
||||||
|
# https://github.com/ruby/ruby/commit/a063f71a7ccc733d8ab4b997dfc3ffb1ab987afc
|
||||||
|
Patch45: ruby-2.6.0-use-larger-keys-for-SSL-webrick-tests.patch
|
||||||
|
# Use larger keys for drb test failures.
|
||||||
|
# https://github.com/ruby/ruby/commit/fb0009cfdc203247f808f4dcd72c7baf272172ce
|
||||||
|
Patch46: ruby-2.6.0-use-larger-keys-for-SSL-drb-tests.patch
|
||||||
|
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
Suggests: rubypick
|
Suggests: rubypick
|
||||||
|
|
@ -189,6 +205,7 @@ BuildRequires: procps
|
||||||
%{?with_hardening_test:BuildRequires: %{_bindir}/checksec}
|
%{?with_hardening_test:BuildRequires: %{_bindir}/checksec}
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
# This package provides %%{_bindir}/ruby-mri therefore it is marked by this
|
# This package provides %%{_bindir}/ruby-mri therefore it is marked by this
|
||||||
# virtual provide. It can be installed as dependency of rubypick.
|
# virtual provide. It can be installed as dependency of rubypick.
|
||||||
|
|
@ -546,7 +563,7 @@ rm -rf ext/fiddle/libffi*
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
%patch10 -p1
|
%patch10 -p1
|
||||||
%patch11 -p1
|
%patch14 -p1
|
||||||
%patch15 -p1
|
%patch15 -p1
|
||||||
%patch16 -p1
|
%patch16 -p1
|
||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
|
|
@ -554,7 +571,12 @@ rm -rf ext/fiddle/libffi*
|
||||||
%patch22 -p1
|
%patch22 -p1
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch24 -p1
|
%patch24 -p1
|
||||||
%patch25 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
|
%patch43 -p1
|
||||||
|
%patch44 -p1
|
||||||
|
%patch45 -p1
|
||||||
|
%patch46 -p1
|
||||||
|
|
||||||
# Provide an example of usage of the tapset:
|
# Provide an example of usage of the tapset:
|
||||||
cp -a %{SOURCE3} .
|
cp -a %{SOURCE3} .
|
||||||
|
|
@ -736,7 +758,7 @@ sed -i 's/^/%lang(ja) /' .ruby-doc.ja
|
||||||
%check
|
%check
|
||||||
%if 0%{?with_hardening_test}
|
%if 0%{?with_hardening_test}
|
||||||
# Check Ruby hardening.
|
# Check Ruby hardening.
|
||||||
checksec -f libruby.so.%{ruby_version} | \
|
checksec --file=libruby.so.%{ruby_version} | \
|
||||||
grep "Full RELRO.*Canary found.*NX enabled.*DSO.*No RPATH.*No RUNPATH.*Yes.*\d*.*\d*.*libruby.so.%{ruby_version}"
|
grep "Full RELRO.*Canary found.*NX enabled.*DSO.*No RPATH.*No RUNPATH.*Yes.*\d*.*\d*.*libruby.so.%{ruby_version}"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
@ -782,7 +804,15 @@ sed -i '/def test_mdns_each_address$/,/^ end$/ s/^/#/' test/resolv/test_mdns.rb
|
||||||
# https://github.com/rubygems/rubygems/issues/2388
|
# https://github.com/rubygems/rubygems/issues/2388
|
||||||
DISABLE_TESTS="$DISABLE_TESTS -n !/test_do_not_allow_invalid_client_cert_auth_connection/"
|
DISABLE_TESTS="$DISABLE_TESTS -n !/test_do_not_allow_invalid_client_cert_auth_connection/"
|
||||||
|
|
||||||
make check TESTS="-v $DISABLE_TESTS"
|
# Disable File.lchmod specs, which fails when building against glibc 2.31.9000.
|
||||||
|
# https://bugs.ruby-lang.org/issues/16749
|
||||||
|
MSPECOPTS="$MSPECOPTS -P 'File.lchmod returns false from \#respond_to?'"
|
||||||
|
MSPECOPTS="$MSPECOPTS -P 'File.lchmod raises a NotImplementedError when called'"
|
||||||
|
|
||||||
|
# Give an option to increase the timeout in tests.
|
||||||
|
# https://bugs.ruby-lang.org/issues/16921
|
||||||
|
%{?test_timeout_scale:RUBY_TEST_TIMEOUT_SCALE="%{test_timeout_scale}"} \
|
||||||
|
make check TESTS="-v $DISABLE_TESTS" MSPECOPT="-fs $MSPECOPTS"
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license BSDL
|
%license BSDL
|
||||||
|
|
@ -1101,6 +1131,28 @@ make check TESTS="-v $DISABLE_TESTS"
|
||||||
%{gem_dir}/specifications/xmlrpc-%{xmlrpc_version}.gemspec
|
%{gem_dir}/specifications/xmlrpc-%{xmlrpc_version}.gemspec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 07 2021 Jun Aruga <jaruga@redhat.com> - 2.5.8-108
|
||||||
|
- Fix FTBFS due to incompatible load directive.
|
||||||
|
|
||||||
|
* Mon Oct 26 2020 Jun Aruga <jaruga@redhat.com> - 2.5.8-107
|
||||||
|
- Update to Ruby 2.5.8.
|
||||||
|
|
||||||
|
* Wed Oct 14 2020 Jun Aruga <jaruga@redhat.com> - 2.5.5-106
|
||||||
|
- Fix checksec 2.0+ compatibility.
|
||||||
|
- Fix FTBFS due to glibc 2.31.9000 implementing lchmod(2).
|
||||||
|
- Fix FTBFS due to libyaml 0.2.5.
|
||||||
|
- Disable LTO, which appear to cause issues with SIGSEV handler.
|
||||||
|
- Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add.
|
||||||
|
- Use larger keys for test_ssl test failures.
|
||||||
|
- Regenerate server certificates with larger keys for open-uri tests.
|
||||||
|
- Use larger keys for webrick test failures.
|
||||||
|
- Use larger keys for drb test failures.
|
||||||
|
- Regenerate certificates with larger keys for rubygems tests.
|
||||||
|
|
||||||
|
* Tue Apr 30 2019 Jun Aruga <jaruga@redhat.com> - 2.5.5-105
|
||||||
|
- Update to Ruby 2.5.5.
|
||||||
|
- Fix ".include =" support in openssl.cnf (rhbz#1668916).
|
||||||
|
|
||||||
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 2.5.3-104
|
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 2.5.3-104
|
||||||
- Rebuilt for libcrypt.so.2 (#1666033)
|
- Rebuilt for libcrypt.so.2 (#1666033)
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (ruby-2.5.3.tar.xz) = 6dcae0e8d0bacdb2cbde636e2030596308b5af53f2eb85d3adccb67b02e6f8f9751e8117d12f8484829fdd9d995f6e327f701d9b433bcf94f1f59d13a1fd7518
|
SHA512 (ruby-2.5.8.tar.xz) = 2886be764a454425c5beef2777c64a70ee0d048b07896b327633d904f5077fea4299526689f9e2ac4dcd2fc4811cf9a6c8ce75367ed35d29dfe1a54222872e0d
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue