eerimoq / asn1tools

ASN.1 parsing, encoding and decoding.
MIT License
289 stars 98 forks source link

error: '<' not supported between instances of 'NoneType' and 'NoneType' #62

Open mxpv opened 4 years ago

mxpv commented 4 years ago

I'm trying to generate c/rust source code with command line:

➜  asn1tools generate_c_source --codec uper rfc5280.asn
error: '<' not supported between instances of 'NoneType' and 'NoneType'

rfc5280.asn from https://github.com/eerimoq/asn1tools/blob/master/tests/files/ietf/rfc5280.asn Python 3.7.4 asn1tools --version 0.146.5

What did I miss? Thanks.

eerimoq commented 4 years ago

Not sure, but it looks like lots of fields in that spec does not have a maximum size. There are many limitations in the C source code generator, and maximum size is one. Have a look in the readme.