summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-30 12:15:30 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-30 12:15:30 +0000
commit7fff6639911e4467c8f687924a1e7dc465ff5c17 (patch)
tree1d47517c478ede59b5f46872b929e4ea18e75e36 /tools
parent3df44c0571162175c162b3cfaa79ac5da3afea1a (diff)
downloadopenssl-new-7fff6639911e4467c8f687924a1e7dc465ff5c17.tar.gz
Recent changes from 0.9.6-stable.
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 1a17605728..132c0e4ceb 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -101,7 +101,7 @@ sub check_file {
sub link_hash_cert {
my $fname = $_[0];
$fname =~ s/'/'\\''/g;
- 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/^.*=//;
@@ -131,7 +131,8 @@ sub link_hash_cert {
sub link_hash_crl {
my $fname = $_[0];
- my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in $fname`;
+ $fname =~ s/'/'\\''/g;
+ my ($hash, $fprint) = `"$openssl" crl -hash -fingerprint -noout -in '$fname'`;
chomp $hash;
chomp $fprint;
$fprint =~ s/^.*=//;