Samuel-Tyler / fast_ber

A C++11 ASN.1 BER Encoding and Decoding Library
Boost Software License 1.0
84 stars 11 forks source link

syntax error when using nameless NULL #12

Closed jbulow closed 4 years ago

jbulow commented 4 years ago

In a asn1 file usually compiled with objective systems asn1 compiler there is:

someSeq ::= SEQUENCE
{
  NULL
}

fast_ber chokes in this:

syntax error, unexpected ASN_NULL, expecting COMPONENTS or ... or } or GENERIC_IDENTIFIER_LOWERCASE

asn1c also compiles this declaration fine.

Samuel-Tyler commented 4 years ago

Thank you very much for taking the time to submit a bug report!

Are you able to share your ASN.1 schema with me so I can resolve any other issues together?

Sam

jbulow commented 4 years ago

Unfortunately, the legal circumstances for the ASN.1 schema I used is a bit unclear. At the moment, the best I can do is to try out new versions of fast_ver on that schema file.

Samuel-Tyler commented 4 years ago

I've added support for anonymous sequence members:

https://github.com/Samuel-Tyler/fast_ber/commit/6f616f2e1e28657d571166789322da326efa372c

Samuel-Tyler commented 4 years ago

Please let me know if you encounter any other issues.