-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
doc: update instructions for openssl updates #42353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
d49349b
3c02585
98ef750
aacc6db
fed3e3a
ffa837f
4fc48ea
fe64c39
3c31d65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,15 @@ | |
| This document describes how to update `deps/openssl/`. | ||
|
|
||
| If you need to provide updates across all active release lines you will | ||
| currently need to generate three PRs as follows: | ||
| currently need to generate four PRs as follows: | ||
|
|
||
| * a PR for master which is generated following the instructions | ||
| below. | ||
| below for OpenSSL 3.0.x. | ||
| * a PR for 16.x following the instructions in the v16.x-staging version | ||
| of this guide. | ||
| * a PR for 14.x following the instructions in the v14.x-staging version | ||
| of this guide. | ||
| * a PR which uses the same commit from the second PR to apply the | ||
| * a PR which uses the same commit from the third PR to apply the | ||
| updates to the openssl source code, with a new commit generated | ||
| by following steps 2 onwards on the 12.x line. This is | ||
| necessary because the configuration files have embedded timestamps | ||
|
|
@@ -90,7 +92,7 @@ This updates all sources in deps/openssl/openssl by: | |
| $ git commit openssl | ||
| ``` | ||
|
|
||
| ### OpenSSL 3.0.0 | ||
| ### OpenSSL 3.0.x | ||
|
mhdawson marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```console | ||
| % git clone https://github.com/quictls/openssl | ||
|
|
@@ -104,14 +106,15 @@ This updates all sources in deps/openssl/openssl by: | |
| ``` | ||
|
|
||
| ```text | ||
| deps: upgrade openssl sources to quictls/openssl-3.0.0-alpha-16 | ||
| deps: upgrade openssl sources to quictls/openssl-3.0.2 | ||
|
|
||
| This updates all sources in deps/openssl/openssl by: | ||
| $ git clone git@github.com:quictls/openssl.git | ||
| $ cd openssl | ||
| $ git checkout openssl-3.0.2+quic | ||
| $ cd ../node/deps/openssl | ||
| $ rm -rf openssl | ||
| $ cp -R ../openssl openssl | ||
| $ cp -R ../../../openssl openssl | ||
| $ rm -rf openssl/.git* openssl/.travis* | ||
| $ git add --all openssl | ||
| $ git commit openssl | ||
|
|
@@ -152,6 +155,8 @@ please ask @shigeki for details. | |
| Update all architecture dependent files. Do not forget to git add or remove | ||
| files if they are changed before committing: | ||
|
|
||
| ### OpenSSL 1.1.1 | ||
|
|
||
| ```console | ||
| % git add deps/openssl/config/archs | ||
| % git add deps/openssl/openssl/include/crypto/bn_conf.h | ||
|
|
@@ -160,6 +165,16 @@ files if they are changed before committing: | |
| % git commit | ||
| ``` | ||
|
|
||
| ### OpenSSL 3.0.x | ||
|
|
||
| ```console | ||
| $ make -C deps/openssl/config | ||
| $ git add deps/openssl/config/archs | ||
| $ git add deps/openssl/openssl | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @richard this matches what is in the commit comments below and looks like what we have done. It is probably also related to #42081 as I don't think we want to change right now as we get releases out, but worth looking to see if possibly we can revert to adding just those three, find out why more were needed and possibly ask @danbev when he gets back.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I take that back since I guess the the examples were only showing the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW AFAICT the big difference between OpenSSL 1.1.1 and 3.0.x in Node.js is the |
||
| $ git add deps/openssl/config | ||
| $ git commit | ||
| ``` | ||
|
|
||
| The commit message can be written as (with the openssl version set | ||
| to the relevant value): | ||
|
|
||
|
|
@@ -178,7 +193,7 @@ to the relevant value): | |
| $ git commit | ||
| ``` | ||
|
|
||
| ### OpenSSL 3.0.0 | ||
| ### OpenSSL 3.0.x | ||
|
|
||
| ```text | ||
| deps: update archs files for quictls/openssl-3.0.0-alpha-16 | ||
|
|
@@ -188,6 +203,7 @@ regenerated and committed by: | |
| $ make -C deps/openssl/config | ||
| $ git add deps/openssl/config/archs | ||
| $ git add deps/openssl/openssl | ||
| $ git add deps/openssl/config | ||
|
mhdawson marked this conversation as resolved.
Outdated
|
||
| $ git commit | ||
| ``` | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.