packet-ber.c currently only implements those parts of x.690 that dissectors
actually use.
today that is kerberos (which actually is DER and not BER but that is not a
difference that a decoder only
implementation need to worry about)
other missing parts of BER should/can be added as is needed.
as for object identifiers, those should be similar to the function in
packet-per.c
so some cut-n-paste should work.
SET OF should for most cases be possible to implement as
dissect_ber_set_of(){
offset=dissect_ber_sequence_of()
return offset;
}
OK. a set of aggregate differs from a sequence of in that the elements may
be encoded "out of order" but:
1, is that actually used in any known implementations?
perhaps rewrite dissect_ber_sequence_of() to be able to handle out of order
element encodings and make set of == sequence of
or just make already today set of == sequence of without changing anything
and see if anyone complains?
I do recall, but dont hold me to this because it might be wrong, that for
DER that it is required that set of elements are encoded in the
same order they are defined in asn1 which for DER would make set of and
sequence of for all purposes equivalent.
----- Original Message -----
From: "Tomas Kukosa"
Sent: Monday, March 08, 2004 8:22 PM
Subject: Re: [Ethereal-dev] Trying to work with packet-ber.c ...
> I have implemented an 'OBJECT IDENTIFIER' and I will think of a 'SET OF'.
> I try to make most important packet-ber extensions till Friday.
>
>
> Yaniv Kaul wrote:
>
> > 1. How do I dissect a 'SET OF'?
> > 2. How do I dissect an 'OBJECT IDENTIFIER' ?
> >
> > I must say that it *looks* like it's much easier to work with asn1.c
> > functions than packet-ber.c
> > Perhaps it takes time to get used to.
> > The only example is packet-kerberos.c, which is nice, but doesn't always
> > give all that's needed.
> >
> > _______________________________________________
> > Ethereal-dev mailing list
> > Ethereal-dev@xxxxxxxxxxxx
> > http://www.ethereal.com/mailman/listinfo/ethereal-dev
> >
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>