asn1tools icon indicating copy to clipboard operation
asn1tools copied to clipboard

Named constants not being saved and used

Open Dave-Krch opened this issue 1 year ago • 0 comments

In my specification i have something like this:

defVal INTEGER ::= 255

TestInt ::= INTEGER

Test4Seq ::= SEQUENCE {
    a TestInt DEFAULT defVal
}

which is valid ASN1 Syntax and default value of a in the sequence should be 255. But asn1tools does not set the default value.

Also when defining integer with named constant values, like this:

DeltaLongitude ::= INTEGER {oneMicrodegreeEast (10), oneMicrodegreeWest (-10), unavailable(131072)} (-131071..131072)

The values are not compiled from the asn1 specification either.

Is this known limitation or am I missing something in the asn1 code?

Dave-Krch avatar Nov 25 '24 12:11 Dave-Krch