On Thu, Jun 19, 2014 at 5:04 PM, Karel Slany <[email protected]> wrote: > Hello, > I've run into a problem with asn1_der_decoding() recently. I have to > decode some DER data which I'm obtaining from a third party source. The > problem is that most of the time the obtained DER data contain some > additional trailing bytes. [...] > A solution to my this problem may be: > * relaxing the test at the end of the function (example in the supplied > patch) > * introducing a new function witch such properties (this function could > also give a hint about the real DER size) > My personal favourite is the second choice. Please let me know whether > you are willing to accept any of these changes/enhancements. If so, I > could send you a patch with the changes.
Yes. Introducing an asn1_der_decoding which can accept flags and can return the actual size of the DER data (e.g., by providing the size as a pointer to integer) would also be my preferred option. regards, Nikos
