Ethereal-dev: Fwd: 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: Tue, 08 Jun 2004 06:48:19 +0200
It seems there was some problem somewhere between our mail server and Ethereal mailing
list. Therefore I send it again. Please, check in.
Tomas -------- Original Message -------- Subject: Re: [Ethereal-dev] H235 & ASN1 compiler Date: Mon, 07 Jun 2004 09:05:29 +0200 From: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx> Organization: ANF DATA To: Ethereal development <ethereal-dev@xxxxxxxxxxxx> 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 compilerHi, 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 undefinedvariableimp 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 _________________________________________________ -- _________________________________________________ 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
- Prev by Date: Re: [Ethereal-dev] [DCE RPC] Incorrect dissection with CVS version 20040603153321
- Next by Date: Re: [Ethereal-dev] Re: [PATCH] Well known port number for outgoing traffic ? [Was: Order of subdissectors:suggestion of a trick]
- Previous by thread: Re: [Ethereal-dev] H235 & ASN1 compiler
- Next by thread: [Ethereal-dev] Current CVS snapshot doesn't compile with MSVC on Win32
- Index(es):
- Get Wireshark
- Download
- Code of Conduct