rusticata / x509-parser

X.509 parser written in pure Rust. Fast, zero-copy, safe.
Other
206 stars 67 forks source link

Update der-parser requirement from 6.0.0 to 7.0.0 #117

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on der-parser to permit the latest version.

Release notes

Sourced from der-parser's releases.

der-parser-7.0.0

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

... (truncated)

Changelog

Sourced from der-parser's changelog.

7.0.0

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

... (truncated)

Commits
  • c929856 Update CHANGELOG
  • 937bc5b Re-export rusticata-macros (closes #55)
  • 2c14662 Add note for depth argument of ber_read_element_content_as
  • fbb4f3b loosen some lifetime restrictions
  • f08888f Add Visit and VisitMut patterns to iterate objects and update printer to use it
  • 74d3e27 Set version to 7.0.0 and update MSRV to 1.53
  • c730642 Set version to 7.0.0
  • b1e13f5 Use published release 0.3.0 of asn1-rs
  • 7373900 Update rustdoc intra-doc broken link warning name but ignore failures in CI
  • 1101291 Ignore clippy::unused_unit warning in unit tests
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Looks like der-parser is up-to-date now, so this is no longer needed.