mozilla-services / pkcs7

DEPRECATED - Implements a subset of PKCS#7/Cryptographic Message Syntax (rfc2315, rfc5652)
https://go.mozilla.org/pkcs7
MIT License
70 stars 92 forks source link

fixes ber decoding with longer certs #53

Closed manavk-p closed 3 years ago

manavk-p commented 3 years ago

Allows for longer certs, such as some AWS certs, to be decoded properly. Taken from https://github.com/fullsailor/pkcs7/pull/17

manavk-p commented 3 years ago

@ jvehent This PR pulls in a change from a PR to fullsailor's repo. It allows for longer certs to be decoded without error.

bernata commented 3 years ago

@g-k there are still some issues with this PR; the go.mod in particular and i think it would be useful to have a real cert that demonstrates the need for this fix. If I fix those two issues [or more if you have them], do you feel it would be ok to merge?

g-k commented 3 years ago

@bernata Yes, I can take look, but I won't get to it until at least the end of the month.

Can you open a new PR with:

Thanks!

g-k commented 3 years ago

Superseded by #61