Releases: rusticata/der-parser
Releases · rusticata/der-parser
der-parser-8.2.0
What's Changed
- Fix parser name to
parse_der_visiblestring
forVisibleString
(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
:
BerSize
has been renamed toLength
BerClass
has been renamed toClass
BerTag
has been renamed toTag
- Header fields are now private. Getters/setters have been added, and must be used to access/modify fields
BerObjectContent
:
Unknown
variant now contains anAny
object, with both the header and object contentPrivate
variant has been merged intoUnknown
BmpString
,GeneralString
,GraphicString
,T61String
,VideotexString
andObjectDescriptor
are now decodedGeneralizedTime
andUtcTime
are now decoded
BerError
:
- Add error types
UnexpectedClass
andUnexpectedTag
- Store expected and found item in error to help debugging
- Keep
InvalidTag
for tags with invalid form (length/encoding/etc.) - Use
displaydoc
forBerError
- Parsing an indefinite length in DER now raises
IndefiniteLengthUnexpected
- Error: when a DER constraint fails, store constraint identifier
DER
:
DerClass
andDerTag
have been deprecated. UseClass
andTag
instead.DerObjectHeader
has been deprecated. UseHeader
instead.
Oid
:
- The
Oid
object is now the same asasn1_rs::Oid
(simply reexported) - Remove dependency on crate
der-oid-macro
Misc:
ber_read_element_content_as
now requires a non-zerodepth
, or it
will raise aBerMaxDepth
error (previously, 0 allowed one level of parsing)- crate
rusticata-macros
is 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