Open rbdixon opened 7 years ago
Thanks for the report. I think the constraint is the problem in this case, there's definitely no support for FROM
(which I think is a so-called alphabet constraint), but the SIZE
might be accepted for VisibleString.
I don't think constraints make it through the encoding, so you could try removing the constraints and hope for the best.
This was my thought, too. I did some goofing around and this fails as well:
Test DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
FQDN ::= VisibleString() (SIZE (1..255))
END
I'll noodle around on this a bit. Just thought I'd bring it up in case there was an obvious issue.
Actually... when I turn the brain on:
Test DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
FQDN ::= VisibleString(SIZE (1..255))
END
This works. Let me give this a whirl.
This is valid according to ASN.1 Playground:
This is excerpted from Wireshark's ULP support.
The example above fails with:
I believe that VisibleString is supported since it is parsed correctly elsewhere in my ASN.1 example. Any advice on getting this going?