aboutsummaryrefslogtreecommitdiff
path: root/security/openssl-quictls/files/patch-CVE-2022-2068
blob: 367fd562181be1e23ad544d4376f7fb0ac879f9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 8a3579a7b7067a983e69a4eda839ac408c120739 Mon Sep 17 00:00:00 2001
From: Tomas Mraz <tomas@openssl.org>
Date: Mon, 13 Jun 2022 17:10:15 +0200
Subject: [PATCH] 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>
---
 tools/c_rehash.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 2f735d68c9c8..343cdc1e7575 100644
--- tools/c_rehash.in.orig
+++ 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/^.*=//;