diff options
| author | Peter Jones <pjones@redhat.com> | 2019-01-15 18:04:34 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:53:24 -0400 |
| commit | 44b211bcf7ad58ff29e6495e1c3978e4660cb7d1 (patch) | |
| tree | a7b95474e68ba2d191e8f7af5d168fbf854396ca /shim.c | |
| parent | 5d30a31fef4eb7e773da24c5e6c20576282a9c3a (diff) | |
| download | efi-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |
