Skip to content

Commit

Permalink
Allow redirects when downloading openssl (#590)
Browse files Browse the repository at this point in the history
clean up trivial function
  • Loading branch information
alex authored Jun 5, 2024
1 parent e15d6ca commit 22f01d1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cryptography-linux/install_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ set -xe
OPENSSL_URL="https://www.openssl.org/source/"
source /root/openssl-version.sh

function check_sha256sum {
local fname=$1
local sha256=$2
echo "${sha256} ${fname}" | sha256sum -c -
}

curl -#O "${OPENSSL_URL}/${OPENSSL_VERSION}.tar.gz"
check_sha256sum ${OPENSSL_VERSION}.tar.gz ${OPENSSL_SHA256}
curl -#LO "${OPENSSL_URL}/${OPENSSL_VERSION}.tar.gz"
echo "${OPENSSL_SHA256} ${OPENSSL_VERSION}.tar.gz" | sha256sum -c -
tar zxf ${OPENSSL_VERSION}.tar.gz
pushd ${OPENSSL_VERSION}
./config $OPENSSL_BUILD_FLAGS --prefix=/opt/pyca/cryptography/openssl --openssldir=/opt/pyca/cryptography/openssl
Expand Down

0 comments on commit 22f01d1

Please sign in to comment.