aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-hashes.sh
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-08-22 22:31:01 +0000
committerRob Austein <sra@hactrn.net>2006-08-22 22:31:01 +0000
commit4a6a95015a09560b8928cea70abe852135125a39 (patch)
tree5788685c88d219582da4ec62a7dd559235fe254e /scripts/check-hashes.sh
parenta63e4bdcd636f46ffcf5700b3bdf593d15fc3dd8 (diff)
# on 2006/08/18 00:25:02, sra did:
save awk svn path=/scripts/check-hashes.sh; revision=217
Diffstat (limited to 'scripts/check-hashes.sh')
-rw-r--r--scripts/check-hashes.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/check-hashes.sh b/scripts/check-hashes.sh
index 8ea3b8f3..f004a427 100644
--- a/scripts/check-hashes.sh
+++ b/scripts/check-hashes.sh
@@ -7,5 +7,9 @@ cd `dirname $0`
: ${switches='-verbose -crl_check_all -policy_check -explicit_policy -policy 1.3.6.1.5.5.7.14.2 -x509_strict'}
: ${hashtree=hashed}
-find $hashtree -type f -name '*.[0-9]*' 2>&1 -exec \
+find $hashtree -type f -name '*.[0-9]*' 2>&1 -print -exec \
$openssl verify $switches -CApath $(find $hashtree -type d | tr \\012 : | sed 's=:$==') {} \;
+
+# Hack for analyzing results of running this script:
+#
+# awk -F: '/^hashed/ && NF == 1 {f = $0; p = 1; next} /^hashed/ && NF == 2 && $1 == f && $2 == " OK" {next} p {print "\n" f; p = 0} {print}' check-hashes.log