Kim Gräsman

Results 88 comments of Kim Gräsman

Thanks Ilya! Looks like there's a pretty simple mechanical translation from the fancy syntax.

Hello Mourad, I'm having trouble seeing the bigger picture. What do you suggest asn1ate is doing wrong? Thanks!

`constraint.py` is part of pyasn1, not asn1ate. But it could very well be that asn1ate is producing the wrong data for pyasn1, so I don't think you should modify pyasn1....

I think I understand what the problem is now, but a small, contained example ASN.1 fragment would definitely help.

Thanks, just what I needed. I'll try and look into this.

Probably, yes. Can you provide a self-contained example? I.e. how is MyType defined?

The problem is the last component: ``` sqnInit SEQUENCE (SIZE (3)) OF OCTET STRING (SIZE (6)) DEFAULT {'000000000000'H, '000000000000'H, '000000000000'H } ``` specifically the curly-brace form on DEFAULT. We don't...

I think, and this is a big maybe, that you can omit the DEFAULT clause entirely. If I recall correctly, DEFAULTs are handled encode-time, so if you're decoding, you'll always...

From #26 -- this actually runs clean through the parser, but generates nonsense pyasn1 code: ``` Clearance ::= SEQUENCE { policyId [0] OBJECT IDENTIFIER, classList [1] ClassList DEFAULT {unclassified}, securityCategories...

No, I think that's fine! The current grammar is a little broken with regards to constraints, and I have a branch somewhere with a better generalization. But doesn't appear to...