]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - testdata/dnscrypt_cert.tdir/precheck.sh
Apply upstream fix 08968baec1122a58bb90d8f97ad948a75f8a5d69:
[FreeBSD/FreeBSD.git] / testdata / dnscrypt_cert.tdir / precheck.sh
1 # dnscrypt precheck.sh
2
3 # if no dnscrypt; exit
4 if grep "define USE_DNSCRYPT 1" $PRE/config.h; then
5         echo "have dnscrypt"
6 else
7         echo "no dnscrypt"
8         exit 0
9 fi
10
11 # if no xchacha20 support in unbound; exit
12 if grep "define USE_DNSCRYPT_XCHACHA20 1" $PRE/config.h; then
13         xchacha20=1
14 else
15         xchacha20=0
16 fi