summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-06-13 17:10:15 +0200
committerMatt Caswell <matt@openssl.org>2022-06-20 11:45:57 +0100
commit8a3579a7b7067a983e69a4eda839ac408c120739 (patch)
treec5c6bea6b7f74a0712f5aac197e469512507c73f /tools
parent2c9c35870601b4a44d86ddbf512b38df38285cfa (diff)
c_rehash: Drop the issuer_name_hash= prefix from the CRL hash
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 2f735d68c9..343cdc1e75 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -222,6 +222,7 @@ sub link_hash {
"-fingerprint", "-noout",
"-in", $fname);
chomp $hash;
+ $hash =~ s/^.*=// if !$is_cert;
chomp $fprint;
return if !$hash;
$fprint =~ s/^.*=//;