diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asymmetric_keys/mscode_parser.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/mscode_parser.c b/crypto/asymmetric_keys/mscode_parser.c index 09336c32b3d4..214a992123cd 100644 --- a/crypto/asymmetric_keys/mscode_parser.c +++ b/crypto/asymmetric_keys/mscode_parser.c | |||
@@ -58,7 +58,13 @@ int mscode_note_content_type(void *context, size_t hdrlen, | |||
58 | return -EBADMSG; | 58 | return -EBADMSG; |
59 | } | 59 | } |
60 | 60 | ||
61 | if (oid != OID_msIndividualSPKeyPurpose) { | 61 | /* |
62 | * pesign utility had a bug where it was putting | ||
63 | * OID_msIndividualSPKeyPurpose instead of OID_msPeImageDataObjId | ||
64 | * So allow both OIDs. | ||
65 | */ | ||
66 | if (oid != OID_msPeImageDataObjId && | ||
67 | oid != OID_msIndividualSPKeyPurpose) { | ||
62 | pr_err("Unexpected content type OID %u\n", oid); | 68 | pr_err("Unexpected content type OID %u\n", oid); |
63 | return -EBADMSG; | 69 | return -EBADMSG; |
64 | } | 70 | } |