set content type parsed

This commit is contained in:
Jacob Barthelmeh
2021-05-21 01:42:10 +07:00
parent 0e23d40250
commit f4959cca8d

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;