From f4959cca8d023013d75b1dfb7edf321eaba5625e Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 21 May 2021 01:42:10 +0700 Subject: [PATCH] set content type parsed --- wolfcrypt/src/pkcs7.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c index a1d0a3f32..2aa848def 100644 --- a/wolfcrypt/src/pkcs7.c +++ b/wolfcrypt/src/pkcs7.c @@ -11398,6 +11398,10 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in, ret = ASN_PARSE_E; } + if (ret == 0) { + pkcs7->contentOID = contentType; + } + if (ret == 0 && GetAlgoId(pkiMsg, &idx, &encOID, oidBlkType, pkiMsgSz) < 0) { ret = ASN_PARSE_E;