mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-04 19:03:28 +02:00
SCRIPTS: build-ssl: allow to build a FIPS version without FIPS
build-ssl.sh is always prepending a "v" to the version, preventing to build a FIPS version without FIPS enabled. This patch checks if FIPS is in the version string to chose to add the "v" or not. Example: AWS_LC_VERSION=AWS-LC-FIPS-3.0.0 BUILDSSL_DESTDIR=/opt/awslc-3.0.0 ./scripts/build-ssl.sh
This commit is contained in:
@@ -136,8 +136,14 @@ build_boringssl () {
|
||||
|
||||
download_aws_lc () {
|
||||
if [ ! -f "${BUILDSSL_TMPDIR}/aws-lc-${AWS_LC_VERSION}.tar.gz" ]; then
|
||||
if [ "${AWS_LC_VERSION#*FIPS}" != "${AWS_LC_VERSION}" ]; then
|
||||
WGETFILE="${AWS_LC_VERSION}.tar.gz"
|
||||
else
|
||||
WGETFILE="v${AWS_LC_VERSION}.tar.gz"
|
||||
fi
|
||||
|
||||
wget -q -O "${BUILDSSL_TMPDIR}/aws-lc-${AWS_LC_VERSION}.tar.gz" \
|
||||
"https://github.com/aws/aws-lc/archive/refs/tags/v${AWS_LC_VERSION}.tar.gz"
|
||||
"https://github.com/aws/aws-lc/archive/refs/tags/${WGETFILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user