aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-03 10:31:17 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-03 10:31:17 +0100
commit7c83dbeee30c8566b689edc1dc01a5773d487b9a (patch)
treed64f6c1788ee61720f1daeec928d67087c49e04a
parentc4f50c620f788a864733c766d5a1794eb42532e2 (diff)
downloadgnunet-7c83dbeee30c8566b689edc1dc01a5773d487b9a.tar.gz
gnunet-7c83dbeee30c8566b689edc1dc01a5773d487b9a.zip
add check for certutil and openssl
-rwxr-xr-xsrc/service/gns/test_proxy.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/service/gns/test_proxy.sh b/src/service/gns/test_proxy.sh
index bb63a436e..aa59504ee 100755
--- a/src/service/gns/test_proxy.sh
+++ b/src/service/gns/test_proxy.sh
@@ -1,5 +1,18 @@
1#!/bin/bash 1#!/bin/bash
2# This file is in the public domain. 2# This file is in the public domain.
3
4if ! which certutil > /dev/null
5then
6 echo "certutil required"
7 exit 77
8fi
9
10if ! which openssl > /dev/null
11then
12 echo "certutil required"
13 exit 77
14fi
15
3TEST_DOMAIN="www.test" 16TEST_DOMAIN="www.test"
4GNUNET_TMP="$(gnunet-config -f -s PATHS -o GNUNET_TMP)" 17GNUNET_TMP="$(gnunet-config -f -s PATHS -o GNUNET_TMP)"
5PROXY_CACERT="$(gnunet-config -f -c test_gns_proxy.conf -s gns-proxy -o PROXY_CACERT)" 18PROXY_CACERT="$(gnunet-config -f -c test_gns_proxy.conf -s gns-proxy -o PROXY_CACERT)"