Dmitriy Anisimkov <[email protected]> writes:

> Is there way to decode binary stream with indefinite number of ASN.1
> defined records ?
> asn1Decoding is decoding only when file contains exact one record.
>
> I tried http://www.semantix.gr/asn1scc/ and http://lionet.info/asn1c
> generated decoders.
>
> Them decoded all records from binary file.
>
> Maybe libtasn1 has this possibility in API ?

The asn1Decoding tool can only decode one instance of the ASN.1 data.
You can indeed write your own tool to decode multiple instances of the
same struct from a stream, either using just the APIs directly or
modifying the asn1Decoding tool to do what you want.

/Simon

Reply via email to