Ethereal-dev: Re: [Ethereal-dev] ASN.1 parsing?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Matthijs Melchior <mmelchior@xxxxxxxxx>
Date: Sun, 25 May 2003 23:20:36 +0200
Yaniv Kaul wrote:

Thanks, but I need ASN1 DER.

Richard Sharpe wrote:

On Sun, 25 May 2003, Yaniv Kaul wrote:

Is there a function available for dissectors to parse ASN.1 streams?

Yes, have a look at the kerberos dissector, the spnego dissector or the gssapi dissector. They all have to deal with ASN.1.

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com

Well, I am building a general ASN.1 dissector that can read the output
from the asn1 compiler named 'snacc' to make sense of the datastream
and annotate it.   It is not ready for publication.


The current ethereal ASN.1 decode functions handle the BER encoding.
This is also applicable to the DER encoding, since DER is an extra
set of rules on top of BER to garantee there is only ONE way to
encode a value.  A decoder does not need to know about this.

--
Regards,
----------------------------------------------------------------  -o)
Matthijs Melchior                                       Maarssen  /\\
mmelchior@xxxxxxxxx                                  Netherlands _\_v
---------------------------------------------------------------- ----