Skip to content

Commit c327ea3

Browse files
authored
Merge pull request #10904 from aidangarske/fix/pkcs7-stream-signed-content
Fix PKCS7 streamed SignedData dropping content
2 parents 2494da4 + 9b1aad4 commit c327ea3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,6 +3192,9 @@ static int wc_PKCS7_EncodeContentStreamHelper(wc_PKCS7* pkcs7, int cipherType,
31923192
ret = wc_HashUpdate(&esd->hash, esd->hashType,
31933193
contentData, (word32)contentDataSz);
31943194
}
3195+
else {
3196+
ret = 0;
3197+
}
31953198
break;
31963199

31973200
#ifndef NO_AES

0 commit comments

Comments
 (0)