asn1tools icon indicating copy to clipboard operation
asn1tools copied to clipboard

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

Open mxpv opened this issue 6 years ago • 1 comments

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.

mxpv avatar Oct 14 '19 02:10 mxpv

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.

eerimoq avatar Oct 23 '19 07:10 eerimoq