Releases: rusticata/der-parser
Releases · rusticata/der-parser
der-parser-8.2.0
What's Changed
- Fix parser name to
parse_der_visiblestringforVisibleString(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
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:
BerSizehas been renamed toLengthBerClasshas been renamed toClassBerTaghas been renamed toTag- Header fields are now private. Getters/setters have been added, and must be used to access/modify fields
BerObjectContent:
Unknownvariant now contains anAnyobject, with both the header and object contentPrivatevariant has been merged intoUnknownBmpString,GeneralString,GraphicString,T61String,VideotexStringandObjectDescriptorare now decodedGeneralizedTimeandUtcTimeare now decoded
BerError:
- Add error types
UnexpectedClassandUnexpectedTag - Store expected and found item in error to help debugging
- Keep
InvalidTagfor tags with invalid form (length/encoding/etc.) - Use
displaydocforBerError - Parsing an indefinite length in DER now raises
IndefiniteLengthUnexpected - Error: when a DER constraint fails, store constraint identifier
DER:
DerClassandDerTaghave been deprecated. UseClassandTaginstead.DerObjectHeaderhas been deprecated. UseHeaderinstead.
Oid:
- The
Oidobject is now the same asasn1_rs::Oid(simply reexported) - Remove dependency on crate
der-oid-macro
Misc:
ber_read_element_content_asnow requires a non-zerodepth, or it
will raise aBerMaxDeptherror (previously, 0 allowed one level of parsing)- crate
rusticata-macrosis now re-exported (#55)
Thanks
- @lilyball
- @erikmarkmartin
Full Changelog: https://github.com/rusticata/der-parser/commits/der-parser-7.0.0
der-parser-6.0.1
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