asn1c: fix CHARACTER STRING definition

This commit is contained in:
p1-bmu 2021-12-01 08:41:32 +01:00
parent 26c1a0a6bd
commit e1bd91c781
1 changed files with 8 additions and 1 deletions

View File

@ -546,9 +546,16 @@ def build_implicit_mod():
transfer-syntax [4] OBJECT IDENTIFIER, transfer-syntax [4] OBJECT IDENTIFIER,
fixed [5] NULL fixed [5] NULL
}, },
string-value [1] OCTET STRING data-value-descriptor [1] ObjectDescriptor OPTIONAL,
string-value [2] OCTET STRING
} }
""".strip())) """.strip()))
_CHARACTER_STRING._parse_const(clean_text("""
(WITH COMPONENTS {
...,
data-value-descriptor ABSENT
})
""".strip()))
_path_pop() _path_pop()
_CHARACTER_STRING._text_def = '' _CHARACTER_STRING._text_def = ''
_CHARACTER_STRING._mod = '_IMPL_' _CHARACTER_STRING._mod = '_IMPL_'