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)
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)
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)
Updates the requirements on der-parser to permit the latest version.
Release notes
Sourced from der-parser's releases.
... (truncated)
Changelog
Sourced from der-parser's changelog.
... (truncated)
Commits
c929856
Update CHANGELOG937bc5b
Re-export rusticata-macros (closes #55)2c14662
Add note fordepth
argument ofber_read_element_content_as
fbb4f3b
loosen some lifetime restrictionsf08888f
Add Visit and VisitMut patterns to iterate objects and update printer to use it74d3e27
Set version to 7.0.0 and update MSRV to 1.53c730642
Set version to 7.0.0b1e13f5
Use published release 0.3.0 of asn1-rs7373900
Update rustdoc intra-doc broken link warning name but ignore failures in CI1101291
Ignore clippy::unused_unit warning in unit testsDependabot 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)