wstrange / asn1lib

Dart ASN1 Encoder / Decoder
BSD 2-Clause "Simplified" License
30 stars 30 forks source link

added relaxedParsing optional parameter #59

Closed JChrist closed 2 years ago

JChrist commented 2 years ago

This flag controls whether the parser should throw on (yet) unsupported ASN1 structures (default), or attempt to parse them as generic ASN1Object instead (when enabled).

This is similar to pull request (and the comments on it) as https://github.com/wstrange/asn1lib/pull/56, since I honestly believe it would be useful to have this feature (I need it for once :)

wstrange commented 2 years ago

Thanks for the PR! It looks great.

The format check is failing - can you take a quick look and see if you can fix it (probably just dart format on the new code).

JChrist commented 2 years ago

Strangely enough, Android Studio's Reformat Code with dart format produced it like this, probably something with my local settings. I ran it again in the console with dart format -o write . and I think I got it (the constructor initializer seemed to be the issue).

wstrange commented 2 years ago

Thanks for the PR - much appreciated.

I pushed the new version pub.dev