lapo-luchini / asn1js

JavaScript generic ASN.1 parser
ISC License
586 stars 161 forks source link

Possible incorrect type inferring #78

Closed RufusJWB closed 8 months ago

RufusJWB commented 10 months ago

While decoding CMP messages (it can be reproduced with the CMP example) I noticed, that the type inferring for CHOICEs might be wrong:

image

In my understanding, the SENDER field should have an inner field of type "Name" and not "AnotherName".

RufusJWB commented 10 months ago

Actually the recipient field is also incorrect.

olibu commented 10 months ago

Can you provide the show example?

RufusJWB commented 10 months ago

Can you provide the show example?

It's already here:

image

lapo-luchini commented 8 months ago

I improved recognition and now it shows the correct choice. Thanks for noticing this!

RufusJWB commented 8 months ago

thank you for fixing! Your little tool truly makes life easier for us poor people working directly with DER encoded data structures. I'd love to see it integrated into the debugger window of Visual Studio Code as formatter...