summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2019-01-15 18:04:34 -0500
committerPeter Jones <pjones@redhat.com>2020-07-23 20:53:24 -0400
commit44b211bcf7ad58ff29e6495e1c3978e4660cb7d1 (patch)
treea7b95474e68ba2d191e8f7af5d168fbf854396ca /shim.c
parent5d30a31fef4eb7e773da24c5e6c20576282a9c3a (diff)
downloadefi-boot-shim-44b211bcf7ad58ff29e6495e1c3978e4660cb7d1.tar.gz
efi-boot-shim-44b211bcf7ad58ff29e6495e1c3978e4660cb7d1.zip
OpenSSL: always provide OBJ_create() with name strings.
Some versions of OpenSSL seem to go back and forth as to whether NULL for these names are okay. Don't risk it. Signed-off-by: Peter Jones <pjones@redhat.com> Upstream-commit-id: 46b76a01717
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index a0eb19b9..d7ee2b6d 100644
--- a/shim.c
+++ b/shim.c
@@ -388,7 +388,9 @@ static BOOLEAN verify_eku(UINT8 *Cert, UINTN CertSize)
EXTENDED_KEY_USAGE *eku;
ASN1_OBJECT *module_signing;
- module_signing = OBJ_nid2obj(OBJ_create(OID_EKU_MODSIGN, NULL, NULL));
+ module_signing = OBJ_nid2obj(OBJ_create(OID_EKU_MODSIGN,
+ "modsign-eku",
+ "modsign-eku"));
x509 = d2i_X509 (NULL, &Temp, (long) CertSize);
if (x509 != NULL) {