Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: rusticata/der-parser

der-parser-8.2.0

07 Mar 10:48
der-parser-8.2.0
Compare
Choose a tag to compare
Loading

What's Changed

  • Fix parser name to parse_der_visiblestring for VisibleString (Closes #64).
    Keep previous function for compatibility (mark it as deprecated).
  • Fix clippy warnings (rustc 1.67.1)
  • Update test-case from 2.0 to 3.0

Full Changelog: der-parser-8.1.0...der-parser-8.2.0

der-parser-7.0.0

10 Feb 13:34
der-parser-7.0.0
Compare
Choose a tag to compare
Loading

This release marks the beginning of the merge with the asn1-rs crate. This will break things.

However, this is necessary, because the asn1-rs crate is much cleaner and supports more types
and features (like serialization, custom derive, etc.).
Ultimately, this crate will become a frontend to asn1-rs, that will be optional: crate users can
switch to asn1-rs and use it directly.

Changed/Fixed

MSRV: The minimum supported rust version is now 1.53.

BerObjectHeader:

  • BerSize has been renamed to Length
  • BerClass has been renamed to Class
  • BerTag has been renamed to Tag
  • Header fields are now private. Getters/setters have been added, and must be used to access/modify fields

BerObjectContent:

  • Unknown variant now contains an Any object, with both the header and object content
  • Private variant has been merged into Unknown
  • BmpString, GeneralString, GraphicString, T61String, VideotexString and ObjectDescriptor are now decoded
  • GeneralizedTime and UtcTime are now decoded

BerError:

  • Add error types UnexpectedClass and UnexpectedTag
  • Store expected and found item in error to help debugging
  • Keep InvalidTag for tags with invalid form (length/encoding/etc.)
  • Use displaydoc for BerError
  • Parsing an indefinite length in DER now raises IndefiniteLengthUnexpected
  • Error: when a DER constraint fails, store constraint identifier

DER:

  • DerClass and DerTag have been deprecated. Use Class and Tag instead.
  • DerObjectHeader has been deprecated. Use Header instead.

Oid:

  • The Oid object is now the same as asn1_rs::Oid (simply reexported)
  • Remove dependency on crate der-oid-macro

Misc:

  • ber_read_element_content_as now requires a non-zero depth, or it
    will raise a BerMaxDepth error (previously, 0 allowed one level of parsing)
  • crate rusticata-macros is now re-exported (#55)

Thanks

Full Changelog: https://github.com/rusticata/der-parser/commits/der-parser-7.0.0

der-parser-6.0.1

27 Jan 08:16
der-parser-6.0.1
Compare
Choose a tag to compare
Loading

What's Changed

  • Report number of missing bytes when having a complete header and incomplete data

Full Changelog: https://github.com/rusticata/der-parser/commits/der-parser-6.0.1

Morty Proxy This is a proxified and sanitized view of the page, visit original site.