forked from wolfSSL/wolfssl
add setting contentOID with decode enveloped data
This commit is contained in:
@@ -10503,6 +10503,10 @@ WOLFSSL_API int wc_PKCS7_DecodeEnvelopedData(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;
|
||||
|
Reference in New Issue
Block a user