c_rehash: Drop the issuer_name_hash= prefix from the CRL hash
authorTomas Mraz <tomas@openssl.org>
Mon, 13 Jun 2022 15:10:15 +0000 (17:10 +0200)
committerMatt Caswell <matt@openssl.org>
Mon, 20 Jun 2022 10:44:52 +0000 (11:44 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
tools/c_rehash.in

index 2f735d68c9c8a663d63d8ad063715714c8f5c4bd..343cdc1e7575e90d1298364be6f5c8dac50ed0db 100644 (file)
@@ -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/^.*=//;