Skip to content

Commit

Permalink
Automatically detect OpenSSL 3.0.10+ LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-E committed Dec 12, 2023
1 parent 7b5cc81 commit dfd43ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iSSH2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 git://git.openssl.org/openssl.git | egrep "openssl-3\.0\.[1-9][0-9]$" | cut -f 2 -d - | sort -t - -r | head -n 1`
LIBSSL_AUTO=true
else
>&2 echo "Install git to automatically get the latest OpenSSL version or use the --openssl argument"
Expand Down

0 comments on commit dfd43ab

Please sign in to comment.