Skip to content

Query: Failure to parse X.681 Information Object Class syntax (&Type) on binary compiled from master branch. #510

Description

@ok8722971

💡 Question Regarding ASN.1 Information Object Class Syntax Parsing

Hello,

I am encountering an issue when attempting to compile an ASN.1 module that utilizes the ASN.1 Information Object Class syntax (specifically the &Type field).

I understand that official version tags have not been updated since v0.9.29, but I have consistently cloned and compiled the code from the master branch, which is expected to contain the necessary support for features defined in X.681.

Despite compiling from the current master branch, the compiler reports a parsing failure:

  • Compiler Reported Version: v0.9.29
  • Execution Path: /usr/local/bin/asn1c
  • Compilation Command: asn1c ENPExtensions.asn.txt

Observed Error Message:

FATAL: Next literal "&Type" not found ! in ENPExtensions.asn.txt FATAL: Parsing ObjectSet ExtensionSet failed at 21 in ENPExtensions.asn.txt ...

Relevant ASN.1 Snippet:

The error seems to point to the class definition:

EXTENSION ::= CLASS {
  &id   OCTET STRING (SIZE (16)) UNIQUE,
  &Type  <-- The literal the parser cannot find
} WITH SYNTAX {&id &Type}

ENPExtensions.asn.txt

🔍 My Questions and Request for Guidance
Feature Support Confirmation: I believe the support for ASN.1 Information Object Class (X.681) was merged into the master branch in past commits. Could you please confirm if this feature is currently expected to be fully functional on the latest master branch?

Versioning Discrepancy: Since the compiled binary still reports v0.9.29, I want to confirm if this reported version number accurately reflects the feature set, or if it is just a static tag and I should rely on the Git history.

Local Compilation: I suspect there might be an issue with my local compilation or installation process, preventing the latest parser features from being used. I run git pull, autoreconf -i, ./configure, make, and sudo make install.

Any guidance on how to ensure the latest parser features are correctly built and executed would be greatly appreciated.

Thank you for maintaining this valuable tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions