diff options
author | Rob Austein <sra@hactrn.net> | 2014-01-09 20:56:06 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-01-09 20:56:06 +0000 |
commit | b603ea6e8677d61d93f05cb43aa8c1769c1e9d6c (patch) | |
tree | 4acda8c9d9ba25800d820a4bb6636fd626dc0c24 /scripts/Old/make-hashes.pl | |
parent | 06023dcd60af34a84c3a71f1a597e477cfa8f408 (diff) |
Update more copyrights, clean up module doc blocks.
svn path=/trunk/; revision=5624
Diffstat (limited to 'scripts/Old/make-hashes.pl')
-rw-r--r-- | scripts/Old/make-hashes.pl | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/scripts/Old/make-hashes.pl b/scripts/Old/make-hashes.pl deleted file mode 100644 index 4b58a9d0..00000000 --- a/scripts/Old/make-hashes.pl +++ /dev/null @@ -1,42 +0,0 @@ -# -*- Perl -*- -# $Id$ - -use strict; - -my $openssl = "/u/sra/isc/route-pki/subvert-rpki.hactrn.net/openssl/openssl/apps/openssl"; -my $dir = "hashed"; - -my @cmds; -my %hashes; - -exit unless (@ARGV); - -open(F, "-|", "find", @ARGV, qw{-type f ( -name *.cer -o -name *.crl )}) - or die("Couldn't run find: $!\n"); - -@ARGV = (); - -while (<F>) { - chomp; - my $f = $_; - my $type = /\.cer$/ ? "x509" : "crl"; - $_ = "$dir/$f"; - s=/[^/]+$==; - my $d = $_; - my $h = `$openssl $type -inform DER -in $f -noout -hash`; - chomp($h); - $h .= "."; - $h .= "r" if ($type eq "crl"); - $h .= 0 + $hashes{$d}{$h}++; - push(@cmds, "$openssl $type -inform DER -outform PEM -out $d/$h -in $f\n"); -} - -close(F); - -print("rm -rf $dir\n"); - -print("test -d $_ || mkdir -p $_\n") - foreach (sort(keys(%hashes))); - -print($_) - foreach (@cmds); |