Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd7d66f2 authored by Vivek Goyal's avatar Vivek Goyal Committed by David Howells
Browse files

pefile: Handle pesign using the wrong OID



The pesign utility had a bug where it was using OID_msIndividualSPKeyPurpose
instead of OID_msPeImageDataObjId - so allow both OIDs.

Signed-off-by: default avatarVivek Goyal <vgoyal@redhat.com>
Acked-by: default avatarVivek Goyal <vgoyal@redhat.com>
parent 4c0b4b1d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -58,7 +58,13 @@ int mscode_note_content_type(void *context, size_t hdrlen,
		return -EBADMSG;
	}

	if (oid != OID_msIndividualSPKeyPurpose) {
	/*
	 * pesign utility had a bug where it was putting
	 * OID_msIndividualSPKeyPurpose instead of OID_msPeImageDataObjId
	 * So allow both OIDs.
	 */
	if (oid != OID_msPeImageDataObjId &&
	    oid != OID_msIndividualSPKeyPurpose) {
		pr_err("Unexpected content type OID %u\n", oid);
		return -EBADMSG;
	}