blob: e5024163cacd6566d5b412ffdec1f4b45209fe0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From: Raphael Geissert <geissert@debian.org>
Date: Tue, 12 Dec 2017 23:35:24 +0100
Subject: [PATCH] block_digicert_malaysia
Description: make X509_verify_cert indicate that any certificate whose
name contains "Digicert Sdn. Bhd." (from Malaysia) is revoked.
Forwarded: not-needed
Origin: vendor
Last-Update: 2011-11-05
Imported from openssl1.0_1.0.2q-2.debian.tar.xz
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
crypto/x509/x509_vfy.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c
index 77bdb18882ce..f7f8ed76e05b 100644
--- a/crypto/x509/x509_vfy.c
+++ b/crypto/x509/x509_vfy.c
@@ -1122,10 +1122,11 @@ static int check_ca_blacklist(X509_STORE_CTX *ctx)
for (i = sk_X509_num(ctx->chain) - 1; i >= 0; i--)
{
x = sk_X509_value(ctx->chain, i);
- /* Mark DigiNotar certificates as revoked, no matter
- * where in the chain they are.
+ /* Mark certificates containing the following names as
+ * revoked, no matter where in the chain they are.
*/
- if (x->name && strstr(x->name, "DigiNotar"))
+ if (x->name && (strstr(x->name, "DigiNotar") ||
+ strstr(x->name, "Digicert Sdn. Bhd.")))
{
ctx->error = X509_V_ERR_CERT_REVOKED;
ctx->error_depth = i;
|