[Git][NTPsec/ntpsec][master] Disable NTS automatically for older OpenSSL
Matt Selsky
gitlab at mg.gitlab.com
Thu Aug 27 00:41:31 UTC 2020
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
8786c9c0 by Matt Selsky at 2020-08-26T22:19:05+00:00
Disable NTS automatically for older OpenSSL
- - - - -
1 changed file:
- tests/option-tester.sh
Changes:
=====================================
tests/option-tester.sh
=====================================
@@ -25,6 +25,15 @@ then
LINUX="--enable-seccomp"
fi
+DISABLE_NTS=""
+if pkg-config --version 2>/dev/null 1>/dev/null
+then
+ if ! pkg-config openssl --atleast-version=1.1.1
+ then
+ DISABLE_NTS="--disable-nts"
+ fi
+fi
+
if [ -z ${PYTHON} ]
then
PYTHON="python"
@@ -35,7 +44,7 @@ doit ()
DIR=test-$1
[ ! -d $DIR ] && mkdir $DIR
rm -rf $DIR/*
- $PYTHON ./waf configure --out=$DIR $2 2>&1 | tee $DIR/test.log
+ $PYTHON ./waf configure $DISABLE_NTS --out=$DIR $2 2>&1 | tee $DIR/test.log
WAF1=$?
WAF2=0
WAF3=0
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/8786c9c0fbaac18e9bb40dea684e3fc6e2191c5c
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/8786c9c0fbaac18e9bb40dea684e3fc6e2191c5c
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200827/f12e6f31/attachment.htm>
More information about the vc
mailing list