diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-03 10:31:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-03 10:31:17 +0100 |
commit | 7c83dbeee30c8566b689edc1dc01a5773d487b9a (patch) | |
tree | d64f6c1788ee61720f1daeec928d67087c49e04a | |
parent | c4f50c620f788a864733c766d5a1794eb42532e2 (diff) | |
download | gnunet-7c83dbeee30c8566b689edc1dc01a5773d487b9a.tar.gz gnunet-7c83dbeee30c8566b689edc1dc01a5773d487b9a.zip |
add check for certutil and openssl
-rwxr-xr-x | src/service/gns/test_proxy.sh | 13 |
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 | |||
4 | if ! which certutil > /dev/null | ||
5 | then | ||
6 | echo "certutil required" | ||
7 | exit 77 | ||
8 | fi | ||
9 | |||
10 | if ! which openssl > /dev/null | ||
11 | then | ||
12 | echo "certutil required" | ||
13 | exit 77 | ||
14 | fi | ||
15 | |||
3 | TEST_DOMAIN="www.test" | 16 | TEST_DOMAIN="www.test" |
4 | GNUNET_TMP="$(gnunet-config -f -s PATHS -o GNUNET_TMP)" | 17 | GNUNET_TMP="$(gnunet-config -f -s PATHS -o GNUNET_TMP)" |
5 | PROXY_CACERT="$(gnunet-config -f -c test_gns_proxy.conf -s gns-proxy -o PROXY_CACERT)" | 18 | PROXY_CACERT="$(gnunet-config -f -c test_gns_proxy.conf -s gns-proxy -o PROXY_CACERT)" |