This changes the "ERR" code to have all access to state (a hash table of
[openssl.git] / tools / c_rehash.in
index 26db8999d8c8bf9173c99f5e29b10cfd87bdd3a5..69da98ff2cf2e71e58b5f2b26624696a084c8e43 100644 (file)
@@ -100,7 +100,7 @@ sub check_file {
 
 sub link_hash_cert {
                my $fname = $_[0];
-               my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in $fname`;
+               my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in "$fname"`;
                chomp $hash;
                chomp $fprint;
                $fprint =~ s/^.*=//;
@@ -130,7 +130,7 @@ sub link_hash_cert {
 
 sub link_hash_crl {
                my $fname = $_[0];
-               my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in $fname`;
+               my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in "$fname"`;
                chomp $hash;
                chomp $fprint;
                $fprint =~ s/^.*=//;