This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to make ANSI MAP ASN.1 spec compile-able in OSS ASN.1 studio

0

I tried to compile ASN.1 spec in asn1/ansi_map /ansi_map.asn in OSS ASN.1 studio but failed. The error indicates there're duplicated tags in several messages, for example:

AuthenticationFailureReport ::= [PRIVATE 18] SET 
 {
    ...
    reportType  [44] IMPLICIT ReportType,
    ...
    reportType2 [44] IMPLICIT ReportType OPTIONAL,
    ...
 }

It seems the tags here are used as unique type identifiers, but in my understanding, tag in a complex type (sequence,choice) should be used to mark the order of members. Can anyone suggest on how to make it fully compliant with ASN.1 standard syntax?

asked 08 Feb '14, 07:15

TB_BT's gravatar image

TB_BT
6224
accept rate: 0%


One Answer:

1

The ansi_map.asn is hand crafted to make the Wireshark dissector. I'm not sure how useful it would be for any other purpose. The tags are listed in the order of apperance in the refered standard document.

answered 09 Feb '14, 09:47

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

The implied info in your reply is enough for me, thanks.

(10 Feb '14, 20:47) TB_BT