forked from wolfSSL/wolfssl
remove contentOID check
This commit is contained in:
@ -12672,7 +12672,7 @@ int wc_PKCS7_EncodeCompressedData(PKCS7* pkcs7, byte* output, word32 outputSz)
|
|||||||
compressedDataSeqSz = SetSequence(totalSz, compressedDataSeq);
|
compressedDataSeqSz = SetSequence(totalSz, compressedDataSeq);
|
||||||
totalSz += compressedDataSeqSz;
|
totalSz += compressedDataSeqSz;
|
||||||
|
|
||||||
if (pkcs7->version == 3 && pkcs7->contentOID == COMPRESSED_DATA) {
|
if (pkcs7->version == 3) {
|
||||||
/* RFC 4108 section 2
|
/* RFC 4108 section 2
|
||||||
* When the SignedData is version 3 and eContent is compressedData then
|
* When the SignedData is version 3 and eContent is compressedData then
|
||||||
* the encoding is :
|
* the encoding is :
|
||||||
@ -12687,10 +12687,7 @@ int wc_PKCS7_EncodeCompressedData(PKCS7* pkcs7, byte* output, word32 outputSz)
|
|||||||
contentInfoContentSeqSz = 0;
|
contentInfoContentSeqSz = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* pkcs7->contentOID should be ENCRYPTED_DATA, FIRMWARE_PKG_DATA is just
|
/* EncryptedData eContent type is encoded with:
|
||||||
* an octet string for eContent.
|
|
||||||
*
|
|
||||||
* EncryptedData eContent type is encoded with:
|
|
||||||
* EncryptedData {
|
* EncryptedData {
|
||||||
* version
|
* version
|
||||||
* EncryptedContentInfo {
|
* EncryptedContentInfo {
|
||||||
|
Reference in New Issue
Block a user