diff options
Diffstat (limited to 'crypto/asymmetric_keys/pkcs7_parser.c')
-rw-r--r-- | crypto/asymmetric_keys/pkcs7_parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/asymmetric_keys/pkcs7_parser.c b/crypto/asymmetric_keys/pkcs7_parser.c index 758acabf2d81..8f3056cd0399 100644 --- a/crypto/asymmetric_keys/pkcs7_parser.c +++ b/crypto/asymmetric_keys/pkcs7_parser.c | |||
@@ -547,9 +547,7 @@ int pkcs7_sig_note_set_of_authattrs(void *context, size_t hdrlen, | |||
547 | struct pkcs7_signed_info *sinfo = ctx->sinfo; | 547 | struct pkcs7_signed_info *sinfo = ctx->sinfo; |
548 | 548 | ||
549 | if (!test_bit(sinfo_has_content_type, &sinfo->aa_set) || | 549 | if (!test_bit(sinfo_has_content_type, &sinfo->aa_set) || |
550 | !test_bit(sinfo_has_message_digest, &sinfo->aa_set) || | 550 | !test_bit(sinfo_has_message_digest, &sinfo->aa_set)) { |
551 | (ctx->msg->data_type == OID_msIndirectData && | ||
552 | !test_bit(sinfo_has_ms_opus_info, &sinfo->aa_set))) { | ||
553 | pr_warn("Missing required AuthAttr\n"); | 551 | pr_warn("Missing required AuthAttr\n"); |
554 | return -EBADMSG; | 552 | return -EBADMSG; |
555 | } | 553 | } |