From df2cbc3b3ce7afbe061b5acbdda908b7456b35b8 Mon Sep 17 00:00:00 2001 From: Chafik Date: Fri, 13 Dec 2024 21:01:59 +0100 Subject: [PATCH 1/2] Use openssl from github.com instead of git.openssl.org --- iSSH2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iSSH2.sh b/iSSH2.sh index 86892ad..12fc5ad 100755 --- a/iSSH2.sh +++ b/iSSH2.sh @@ -60,7 +60,7 @@ getLibssh2Version () { getOpensslVersion () { if type git >/dev/null 2>&1; then - LIBSSL_VERSION=`git ls-remote --tags git://git.openssl.org/openssl.git | egrep "OpenSSL(_[0-9])+[a-zA-Z]?$" | cut -f 2,3,4 -d _ | sort -t _ -r | head -n 1 | tr _ .` + LIBSSL_VERSION=`git ls-remote --tags https://github.com/openssl/openssl.git | egrep "OpenSSL(_[0-9])+[a-zA-Z]?$" | cut -f 2,3,4 -d _ | sort -t _ -r | head -n 1 | tr _ .` LIBSSL_AUTO=true else >&2 echo "Install git to automatically get the latest OpenSSL version or use the --openssl argument" From 530428788d1c5a399df4fec5dd0e811eb231eebe Mon Sep 17 00:00:00 2001 From: Chafik Date: Sat, 14 Dec 2024 10:56:03 +0100 Subject: [PATCH 2/2] Download tarball from GitHub as well --- iSSH2-openssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iSSH2-openssl.sh b/iSSH2-openssl.sh index 01a9b45..f17de4a 100755 --- a/iSSH2-openssl.sh +++ b/iSSH2-openssl.sh @@ -37,7 +37,7 @@ mkdir -p "$LIBSSLDIR" LIBSSL_TAR="openssl-$LIBSSL_VERSION.tar.gz" -downloadFile "https://www.openssl.org/source/$LIBSSL_TAR" "$LIBSSLDIR/$LIBSSL_TAR" +downloadFile "https://github.com/openssl/openssl/releases/download/openssl-$LIBSSL_VERSION/$LIBSSL_TAR" "$LIBSSLDIR/$LIBSSL_TAR" LIBSSLSRC="$LIBSSLDIR/src/" mkdir -p "$LIBSSLSRC"