mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
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;
|
ret = ASN_PARSE_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret == 0) {
|
||||||
|
pkcs7->contentOID = contentType;
|
||||||
|
}
|
||||||
|
|
||||||
if (ret == 0 && GetAlgoId(pkiMsg, &idx, &encOID, oidBlkType,
|
if (ret == 0 && GetAlgoId(pkiMsg, &idx, &encOID, oidBlkType,
|
||||||
pkiMsgSz) < 0) {
|
pkiMsgSz) < 0) {
|
||||||
ret = ASN_PARSE_E;
|
ret = ASN_PARSE_E;
|
||||||
|
Reference in New Issue
Block a user