fullsailor / pkcs7

Implements a subset of PKCS#7/Crytpographic Message Syntax (rfc2315, rfc5652)
MIT License
123 stars 201 forks source link

Fix indefinite form parsing to parse nested indefinite form correctly. #17

Closed addie9000 closed 7 years ago

addie9000 commented 7 years ago

Search indefinite form's terminator from the last is failed if there are two or more indefinite in constructed form. I fixed it by changing the logic to parse indefinite form.

This could fix issue #11

jimdoescode commented 7 years ago

This fixed an issue I was having with parsing a detached PKCS 7 signature.

jessepeterson commented 7 years ago

As noted in micromdm/micromdm#211 this fix allows us to parse some CMS detached signatures as well.

fullsailor commented 7 years ago

Thanks for fixing the indefinite length handling. This has plagued many users for a while.