Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2569e56

Browse filesBrowse files
richardlauaduh95
authored andcommitted
tools: switch back to official OpenSSL
Change `tools/dep_updaters/update-openssl.sh` to fetch updates from official OpenSSL. PR-URL: #57301 Refs: #57142 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent f8dde3a commit 2569e56
Copy full SHA for 2569e56

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎tools/dep_updaters/update-openssl.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-openssl.sh
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ cleanup() {
1111

1212
download() {
1313
LATEST_TAG_NAME="$("$NODE" --input-type=module <<'EOF'
14-
const res = await fetch('https://api.github.com/repos/quictls/openssl/git/matching-refs/tags/openssl-3.0');
14+
const res = await fetch('https://api.github.com/repos/openssl/openssl/git/matching-refs/tags/openssl-3.0');
1515
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
1616
const releases = await res.json()
17-
const latest = releases.findLast(({ ref }) => ref.includes('quic'));
17+
const latest = releases.at(-1);
1818
if(!latest) throw new Error(`Could not find latest release`);
1919
console.log(latest.ref.replace('refs/tags/',''));
2020
EOF
@@ -39,14 +39,14 @@ EOF
3939

4040
OPENSSL_TARBALL="openssl.tar.gz"
4141

42-
curl -sL -o "$OPENSSL_TARBALL" "https://api.github.com/repos/quictls/openssl/tarball/$LATEST_TAG_NAME"
42+
curl -sL -o "$OPENSSL_TARBALL" "https://api.github.com/repos/openssl/openssl/tarball/$LATEST_TAG_NAME"
4343

4444
log_and_verify_sha256sum "openssl" "$OPENSSL_TARBALL"
4545

4646
gzip -dc "$OPENSSL_TARBALL" | tar xf -
4747

4848
rm "$OPENSSL_TARBALL"
49-
mv quictls-openssl-* openssl
49+
mv openssl-openssl-* openssl
5050
echo "Replacing existing OpenSSL..."
5151
rm -rf "$DEPS_DIR/openssl/openssl"
5252
mv "$WORKSPACE/openssl" "$DEPS_DIR/openssl/"
@@ -56,7 +56,7 @@ EOF
5656
echo "Please git add openssl, and commit the new version:"
5757
echo ""
5858
echo "$ git add -A deps/openssl/openssl"
59-
echo "$ git commit -m \"deps: upgrade openssl sources to quictls/openssl-$NEW_VERSION\""
59+
echo "$ git commit -m \"deps: upgrade openssl sources to openssl/openssl-$NEW_VERSION\""
6060
echo ""
6161
# The last line of the script should always print the new version,
6262
# as we need to add it to $GITHUB_ENV variable.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.