Blame SOURCES/0035-OpenSSL-always-provide-OBJ_create-with-name-strings.patch

d1e1c8
From 44b211bcf7ad58ff29e6495e1c3978e4660cb7d1 Mon Sep 17 00:00:00 2001
d1e1c8
From: Peter Jones <pjones@redhat.com>
d1e1c8
Date: Tue, 15 Jan 2019 18:04:34 -0500
d1e1c8
Subject: [PATCH 35/62] OpenSSL: always provide OBJ_create() with name strings.
d1e1c8
d1e1c8
Some versions of OpenSSL seem to go back and forth as to whether NULL
d1e1c8
for these names are okay.  Don't risk it.
d1e1c8
d1e1c8
Signed-off-by: Peter Jones <pjones@redhat.com>
d1e1c8
Upstream-commit-id: 46b76a01717
d1e1c8
---
d1e1c8
 shim.c | 4 +++-
d1e1c8
 1 file changed, 3 insertions(+), 1 deletion(-)
d1e1c8
d1e1c8
diff --git a/shim.c b/shim.c
d1e1c8
index a0eb19b91fe..d7ee2b6de6f 100644
d1e1c8
--- a/shim.c
d1e1c8
+++ b/shim.c
d1e1c8
@@ -388,7 +388,9 @@ static BOOLEAN verify_eku(UINT8 *Cert, UINTN CertSize)
d1e1c8
 	EXTENDED_KEY_USAGE *eku;
d1e1c8
 	ASN1_OBJECT *module_signing;
d1e1c8
 
d1e1c8
-	module_signing = OBJ_nid2obj(OBJ_create(OID_EKU_MODSIGN, NULL, NULL));
d1e1c8
+        module_signing = OBJ_nid2obj(OBJ_create(OID_EKU_MODSIGN,
d1e1c8
+                                                "modsign-eku",
d1e1c8
+                                                "modsign-eku"));
d1e1c8
 
d1e1c8
 	x509 = d2i_X509 (NULL, &Temp, (long) CertSize);
d1e1c8
 	if (x509 != NULL) {
d1e1c8
-- 
d1e1c8
2.26.2
d1e1c8