summaryrefslogtreecommitdiff
path: root/testdata/dnscrypt_cert_chacha.tdir/precheck.sh
blob: 00fa4bc76067b65b28bd7a85fde12a21457e759b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# dnscrypt precheck.sh

# if no dnscrypt; exit
if grep "define USE_DNSCRYPT 1" $PRE/config.h; then
        echo "have dnscrypt"
else
        echo "no dnscrypt"
        exit 0
fi

# if no xchacha20 support in unbound; exit
if grep "define USE_DNSCRYPT_XCHACHA20 1" $PRE/config.h; then
        xchacha20=1
else
        xchacha20=0
fi