summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/util/fipslink.pl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/util/fipslink.pl')
-rwxr-xr-xcrypto/openssl/util/fipslink.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/openssl/util/fipslink.pl b/crypto/openssl/util/fipslink.pl
index 3597bc1..8b6fbad 100755
--- a/crypto/openssl/util/fipslink.pl
+++ b/crypto/openssl/util/fipslink.pl
@@ -43,7 +43,12 @@ die "First stage Link failure" if $? != 0;
print "$fips_premain_dso $fips_target\n";
-$fips_hash=`$fips_premain_dso $fips_target`;
+system("$fips_premain_dso $fips_target >$fips_target.sha1");
+die "Get hash failure" if $? != 0;
+open my $sha1_res, '<', $fips_target.".sha1" or die "Get hash failure";
+$fips_hash=<$sha1_res>;
+close $sha1_res;
+unlink $fips_target.".sha1";
chomp $fips_hash;
die "Get hash failure" if $? != 0;
OpenPOWER on IntegriCloud