From 9500a84da2f33da72b2a113610847d1ce3e9b8b8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 06 2022 18:29:49 +0000 Subject: import rh-nodejs14-nodejs-14.18.2-1.el7 --- diff --git a/.gitignore b/.gitignore index 1b97368..1472b88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ SOURCES/node-ssl-shim-70e39fd.tar.gz -SOURCES/node-v14.17.5-stripped.tar.gz +SOURCES/node-v14.18.2-stripped.tar.gz diff --git a/.rh-nodejs14-nodejs.metadata b/.rh-nodejs14-nodejs.metadata index 3b3af77..a010fee 100644 --- a/.rh-nodejs14-nodejs.metadata +++ b/.rh-nodejs14-nodejs.metadata @@ -1,2 +1,2 @@ a49b02166a7bdba54fb45cba26a18fa48928ca0e SOURCES/node-ssl-shim-70e39fd.tar.gz -a1399887c30332381bbcbcaac21035c0b301619f SOURCES/node-v14.17.5-stripped.tar.gz +2fbd74467b816a6319c33e0df147817a87b6bd39 SOURCES/node-v14.18.2-stripped.tar.gz diff --git a/SOURCES/0001-Link-with-ssl-shim.patch b/SOURCES/0001-Link-with-ssl-shim.patch index b026050..30ff22f 100644 --- a/SOURCES/0001-Link-with-ssl-shim.patch +++ b/SOURCES/0001-Link-with-ssl-shim.patch @@ -1,7 +1,7 @@ -From 17d303f0b77132f0676c259515abef8e83a688e3 Mon Sep 17 00:00:00 2001 +From ac25a4c4c88d234b52bdc3d47d5d8d5d9783aaa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Tue, 28 Apr 2020 11:15:24 +0200 -Subject: [PATCH] Link with ssl-shim +Subject: [PATCH 1/7] Link with ssl-shim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -35,7 +35,7 @@ index 43dbda7bbf..070f212d96 100644 }], diff --git a/src/node_crypto.cc b/src/node_crypto.cc -index bd40705e6b..dbef9d42f0 100644 +index 61db9f04bb..798568bb8f 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1158,7 +1158,7 @@ void SecureContext::AddRootCerts(const FunctionCallbackInfo& args) { @@ -61,5 +61,5 @@ index bef98b3e24..d46730c9ba 100644 namespace crypto { -- -2.31.1 +2.33.1 diff --git a/SOURCES/0002-Use-OpenSSL-1.0-API.patch b/SOURCES/0002-Use-OpenSSL-1.0-API.patch index bbdc0af..24d2554 100644 --- a/SOURCES/0002-Use-OpenSSL-1.0-API.patch +++ b/SOURCES/0002-Use-OpenSSL-1.0-API.patch @@ -1,7 +1,7 @@ -From ea610f38a05ca2b256e1f8b1d0dd8b33abc521ec Mon Sep 17 00:00:00 2001 +From e3830b75429a24e10939323941074ce9fa938e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 7 Jul 2021 13:37:46 +0200 -Subject: [PATCH] Use OpenSSL 1.0 API +Subject: [PATCH 2/7] Use OpenSSL 1.0 API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -36,7 +36,7 @@ Signed-off-by: Jan Staněk 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc -index dbef9d42f0..c9de7d8a19 100644 +index 798568bb8f..d246132209 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -127,7 +127,11 @@ template int SSLWrap::SetCACerts(SecureContext* sc); @@ -143,5 +143,5 @@ index 6473b652ac..da1033fdef 100644 StackOfX509 CloneSSLCerts(X509Pointer&& cert, -- -2.31.1 +2.33.1 diff --git a/SOURCES/0003-Backport-necessary-OpenSSL-features.patch b/SOURCES/0003-Backport-necessary-OpenSSL-features.patch index fd3dc6b..35735a2 100644 --- a/SOURCES/0003-Backport-necessary-OpenSSL-features.patch +++ b/SOURCES/0003-Backport-necessary-OpenSSL-features.patch @@ -1,7 +1,7 @@ -From 68c182525ba6d8289fcc58536373c51f9d20f07e Mon Sep 17 00:00:00 2001 +From 8c2d8893a51440e20c2e3c22f8981b64cf4fd643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 7 Jul 2021 13:37:47 +0200 -Subject: [PATCH] Backport necessary OpenSSL features +Subject: [PATCH 3/7] Backport necessary OpenSSL features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -52,7 +52,7 @@ Signed-off-by: Jan Staněk 2 files changed, 184 insertions(+), 26 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc -index c9de7d8a19..31e8276e97 100644 +index d246132209..81ac3b5dd4 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -541,6 +541,11 @@ inline void SecureContext::Reset() { @@ -373,5 +373,5 @@ index dbc46fbec8..d27125042b 100644 // SSLWrap implicitly depends on the inheriting class' handle having an -- -2.31.1 +2.33.1 diff --git a/SOURCES/0004-Disable-unsupported-OpenSSL-features.patch b/SOURCES/0004-Disable-unsupported-OpenSSL-features.patch index 11588db..dbec230 100644 --- a/SOURCES/0004-Disable-unsupported-OpenSSL-features.patch +++ b/SOURCES/0004-Disable-unsupported-OpenSSL-features.patch @@ -1,7 +1,7 @@ -From e7e0a4fc073b3d17fcdee6cebea74f1aae4e6f69 Mon Sep 17 00:00:00 2001 +From 76a36980372b8dbf82a0ada18a1ebae3d94c5fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 7 Jul 2021 13:37:48 +0200 -Subject: [PATCH] Disable unsupported OpenSSL features +Subject: [PATCH 4/7] Disable unsupported OpenSSL features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -24,27 +24,35 @@ Content-Transfer-Encoding: 8bit - Remove TLSv1.3 CLI options +- Remove usage of OPENSSL_secure_{malloc,clear_free} + + Unsupported in OpenSSL 1.0. + + The expected semantics is the same as using the regular versions, + so the possibility of using the secure heap was simply removed. + Signed-off-by: Jan Staněk --- doc/api/cli.md | 18 ------------------ doc/api/tls.md | 15 +++++++-------- src/env.h | 11 ++++++++++- + src/node_crypto.cc | 8 ++++++-- src/node_crypto_common.cc | 12 ++++++++++++ src/node_crypto_common.h | 6 ++++++ src/node_options.cc | 10 +++++++++- .../test-tls-cli-max-version-1.3.js | 0 .../test-tls-cli-min-max-conflict.js | 0 .../test-tls-cli-min-version-1.3.js | 0 - 9 files changed, 44 insertions(+), 28 deletions(-) + 10 files changed, 50 insertions(+), 30 deletions(-) rename test/{parallel => known_issues}/test-tls-cli-max-version-1.3.js (100%) rename test/{parallel => known_issues}/test-tls-cli-min-max-conflict.js (100%) rename test/{parallel => known_issues}/test-tls-cli-min-version-1.3.js (100%) diff --git a/doc/api/cli.md b/doc/api/cli.md -index 6e0702498a..a8ef339430 100644 +index 3f3e5e4eeb..48e51fcdfa 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md -@@ -813,14 +813,6 @@ added: +@@ -893,14 +893,6 @@ added: Set [`tls.DEFAULT_MAX_VERSION`][] to 'TLSv1.2'. Use to disable support for TLSv1.3. @@ -59,7 +67,7 @@ index 6e0702498a..a8ef339430 100644 ### `--tls-min-v1.0`