ASN1 decoding error


 
Thread Tools Search this Thread
Top Forums Programming ASN1 decoding error
# 1  
Old 04-07-2017
ASN1 decoding error

Hi, fellows
i am modifying asn1 schema to be able to decode a file, but i am hitting a error on one of the fields using free online tool asn1-playground. I suspect i need to change type and have tried with IDENTIFIER but it doesn't help...any ideas check the schema and file down , please

Code:
D0033E: Tag mismatch or tag not expected: [UNIVERSAL 16] (expected tag [UNIVERSAL 2]); check field 'extensionProvider' (type: INTEGER) of field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.
          *SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 16
            <skipped>
D0049E: Field omitted: "extensionProvider"; check field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.
D0049E: Field omitted: "extensionVersion"; check field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.
D0049E: Field omitted: "extensionData"; check field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.

The schema looks like that way for the specific structure:

Code:
 ManagementExtensions ::= SET OF ManagementExtension  
ManagementExtension ::= SEQUENCE {
    identifier        OBJECT IDENTIFIER,
    significance      [1]  BOOLEAN,
    information    [2]  InformationExtensions
}

InformationExtensions ::= SEQUENCE 
{
    -- operator specific record extensions
    extensionProvider    INTEGER,
    extensionVersion    INTEGER,
    extensionData        ALURecordExtensions
}



and the decoded file is like :

Code:
recordExtensions {
    {
      identifier { 1 3 6 1 4 1 637 78 0 104 0 },
      significance FALSE,
      information InformationExtensions : {
        extensionProvider 1,
        extensionVersion 2,
        extensionData {
          system-Local-Time-Offset "-0400"
        }
      }
    }
  },




Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 04-07-2017 at 10:58 AM.. Reason: Added CODE tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python Programming for asn1 file

Hi. Has anyone here got an experience doing conversion from asn1 format to a readable format so that it can be processed by Oracle? I want to load the data into a table. This is a CDR file. Attached is the pairing file. Please remove the .txt at the end.... (1 Reply)
Discussion started by: aimy
1 Replies

2. Shell Programming and Scripting

Decoding and pattern matching

Hello, I have a huge file with over 700,00 SNPs with 18 columns. One column is in the format --+-+ ---++ ????? -???? Now i have another list which corresponds to this code in a particular order A-1 B-7 C-11 D-3 E-100 Now I need to match the expression above to the pattern,... (1 Reply)
Discussion started by: nans
1 Replies

3. Shell Programming and Scripting

FTP decoding

I am trying to understand a UNIX script which FTPs certain files from a remote location to the local machine. I understand the basic FTP command but the UNIX script uses the following command: ftp -n -i -v > $logftp_trg 2>&1 <<! open $MFX_FTP_SERVER user $MFX_FTP_LOGIN $MFX_FTP_PWD Can anyone... (5 Replies)
Discussion started by: Bhavesh Sharma
5 Replies

4. Shell Programming and Scripting

Help with decoding the 'find' command syntax

Hi folks, I just want to understand what this find command does. The syntax "- - -" is cumbersome and unusual. Please let me know what it is for? find - - - share/ ../share/ -type f ! -path '*/CVS*' (8 Replies)
Discussion started by: royalibrahim
8 Replies

5. UNIX for Dummies Questions & Answers

Decoding a string

Hi, If my input string is 3a3b4c then my result should be aaabbbcccc. Please guide me how to achieve this in a bash script. Thanks (18 Replies)
Discussion started by: pandeesh
18 Replies

6. UNIX for Dummies Questions & Answers

URL decoding with awk

The challenge: Decode URL's, i.e. convert %HEX to the corresponding special characters, using only UNIX base utilities, and without having to type out each special character. I have an anonymous C code snippet where the author assigns each hex digit a number from 0 to 16 and then does some... (2 Replies)
Discussion started by: uiop44
2 Replies

7. IP Networking

Packet decoding

Hi, wondering if anyone can suggest a tool to me that will let me either cut & paste hex or type it in for packet decoding. I want to be able to decode a packet as done with tcpdump or wireshark, but I want to be able to manually input the hex myself. (2 Replies)
Discussion started by: Breakology
2 Replies

8. Shell Programming and Scripting

decoding commands

hi please can anyone help me in decoding shell commands. i need a way to decode the encrypted shell commands. (8 Replies)
Discussion started by: rochitsharma
8 Replies

9. Programming

Decoding of Core Dump

Hi ALL, Is it possible to decode the core dumb file to find the error? I get an Memory Core Dumb error with an core file. Regards, P. Prathaban. (3 Replies)
Discussion started by: p_prathaban
3 Replies
Login or Register to Ask a Question