Merge pull request #4055 from JacobBarthelmeh/PKCS7

set content type parsed
This commit is contained in:
Chris Conlon
2021-05-24 13:21:19 -06:00
committed by GitHub

View File

@ -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;