aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-08-22 22:30:39 +0000
committerRob Austein <sra@hactrn.net>2006-08-22 22:30:39 +0000
commitbf44331cca85a3e6acd001f1c114e4da146e4885 (patch)
tree2fc33b5aa9aa05d2677acb69a7f3f6290c64c4bf
parentce6c39cb4737a44dfadc8a3494a94a4eec8a9a60 (diff)
# on 2006/08/15 18:43:32, sra did:
allow veriable overrides svn path=/scripts/check-hashes.sh; revision=214
-rw-r--r--scripts/check-hashes.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/check-hashes.sh b/scripts/check-hashes.sh
index ead94e6f..8ea3b8f3 100644
--- a/scripts/check-hashes.sh
+++ b/scripts/check-hashes.sh
@@ -3,9 +3,9 @@
cd `dirname $0`
-openssl=/u/sra/isc/route-pki/subvert-rpki.hactrn.net/openssl/trunk/apps/openssl
+: ${openssl=/u/sra/isc/route-pki/subvert-rpki.hactrn.net/openssl/trunk/apps/openssl}
+: ${switches='-verbose -crl_check_all -policy_check -explicit_policy -policy 1.3.6.1.5.5.7.14.2 -x509_strict'}
+: ${hashtree=hashed}
-capth=$(echo $(find hashed -type d) | tr \\040 :)
-
-find hashed -type f -name '*.?' |
-xargs $openssl verify -verbose -crl_check_all -policy_check -explicit_policy -policy 1.3.6.1.5.5.7.14.2 -x509_strict -CApath $capth
+find $hashtree -type f -name '*.[0-9]*' 2>&1 -exec \
+ $openssl verify $switches -CApath $(find $hashtree -type d | tr \\012 : | sed 's=:$==') {} \;