ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] H235 & ASN1 compiler

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

From: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Mon, 07 Jun 2004 09:05:29 +0200
Hi Ronnie,
  your solution concerning duplicated value_string is right.

The undefined variable imp in a ber_structure is caused with unsupported case when the information about tag for imported type is necessary. The 1st fix which should make output compileable is attached. It uses -1 (i.e. unknown) for tag of imported type and writes warning about it. The whole solution will follow.

The patch for the ASN1 compiler is attached.

Changes in the asn2eth compiler:
- duplicated value_string for INTEGER with named values is fixed
- documentation string was changed
- partial solution for tag of imported type



Ronnie Sahlberg wrote:
Hi Tomas

I encountered a problem with the asn2eth compiler emitting the value_string
for an
enumerated integer twice.

I tracked it down in the compiler to these two places and commenting out the
second instance
stopped it from emitting it twice.

Please see attached diff.
Is this the right solution to the problem? I am not a python person and have
not grasped the compiler
and how it works yet.


I also renamed a BER constant from BER_UNI_TAG_UCTTime to
BER_UNI_TAG_UTCTime as that is what
X.680 calls it.


----- Original Message ----- From: "Ronnie Sahlberg"
Sent: Friday, June 04, 2004 11:16 PM
Subject: Re: [Ethereal-dev] H235 & ASN1 compiler



Hi,

I have checked in your changes in the other mail.

I am still trying to battle with X509 and have made some progress. Thanks
for the feedback below.

The compiler can as i understand it not handle parameterized types   so i
massaged the asn1 file to
not use parameterized types at all.
Now it then generates a pretty complete dissector (with dependencies on
other modules however)
but it will not compile.

The compiler has generated a ber_structure containing an undefined

variable

imp
For example, see the structure :  static ber_sequence
T_signedCertificate_sequence[] = {

The compiler also complains about the unknown define   BER_UNI_TAG_UTCTime
in the generated file.


Please assist.



------------------------------------------------------------------------

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev

--
_________________________________________________

ANF DATA              ANF DATA spol. s r. o.
a SIEMENS Company     M-palác, Heršpická 5
                      639 00 Brno
                      Czech Republic
Tomáš Kukosa          Tel.: +420 - 5 4310 6822
PSE ECT AES 6         Fax: +420 - 5 4324 8780
Room: 8.24            mailto:tomas.kukosa@xxxxxxxxxxx
_________________________________________________

Attachment: asn2eth.py.diff.gz
Description: GNU Zip compressed data