mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
93 stars 70 forks source link

oer: OPEN TYPE encoding fix #164

Closed v0-e closed 7 months ago

v0-e commented 7 months ago

Fixes the encoding of a OER OPEN TYPE to use its own encoder function instead of the CHOICE encoder. Basically replaces the encoding of the tag (of the CHOICE) for the length of the encoded contained (open) type. The decoder logic was unchanged.

Related with issues vlm/asn1c#326, #44. Relevant comments: https://github.com/mouse07410/asn1c/issues/44#issuecomment-477600095, https://github.com/mouse07410/asn1c/issues/44#issuecomment-477834559.

X.696 30. (2021)

mouse07410 commented 7 months ago

I've been looking for a patch like this for quite a long time. Thank you, @v0-e