Skip to content

Commit

Permalink
Merge string protection from main trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
levitte committed Oct 11, 2002
1 parent 8423604 commit 449d39f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/c_rehash.in
Original file line number Diff line number Diff line change
Expand Up @@ -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/^.*=//;
Expand Down Expand Up @@ -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/^.*=//;
Expand Down

0 comments on commit 449d39f

Please sign in to comment.