Re: [Wireshark-dev] asn2wrs documentation?

2015-09-16 Thread Kukosa Tomáš
Hi Peter, >> Another possibility would be to define own dissector function for the >> RSAPublicKey fields instead of calling default dissect_ber_integer(). >> E.g. something like this: >> >> #.FN_BODY RSAPublicKey/modulus >> gint8 ber_class; >> gboolean pc, ind; >> gint32 tag; >>

Re: [Wireshark-dev] asn2wrs documentation?

2015-09-16 Thread Peter Wu
Hi Tomáš, On Tue, Sep 15, 2015 at 02:29:02PM +, Kukosa Tomáš wrote: > Unfortunately asn2wrs can not help with it. > Changing TYPE_ATTR does not change called dissection function. It > changes just field type. > The field ber.64bit_uint_as_bytes comes from function > dissect_ber_integer64()

Re: [Wireshark-dev] asn2wrs documentation?

2015-09-15 Thread Kukosa Tomáš
Hi Peter, Unfortunately asn2wrs can not help with it. Changing TYPE_ATTR does not change called dissection function. It changes just field type. The field ber.64bit_uint_as_bytes comes from function dissect_ber_integer64() of packet-ber.c. Maybe the dissect_ber_integer64() should check whether

[Wireshark-dev] asn2wrs documentation?

2015-09-15 Thread Peter Wu
Hi, I am working on improving dissection support of the subjectPublicKey field in X.509 Certificates[1]. Right now these opaque BIT STRING types are shown as a sequence of bytes, but I would like to dissect the other fields (like modulus and exponent for RSA and public key y for DSA). (This work i