Skip to content

pkcs8+spki: use blanket impls for Decode* traits#785

Merged
tarcieri merged 1 commit intomasterfrom
pkcs8+spki/use-blanket-impls-for-decode-traits
Dec 11, 2022
Merged

pkcs8+spki: use blanket impls for Decode* traits#785
tarcieri merged 1 commit intomasterfrom
pkcs8+spki/use-blanket-impls-for-decode-traits

Conversation

@tarcieri
Copy link
Member

Previously these traits had TryFrom bounds for e.g. PrivateKeyInfo, which limits the applicability of these traits.

This commit changes to using blanket impls for TryFrom, which allows types to handle parsing raw DER on their own, as in the ring-compat crate.

Previously these traits had `TryFrom` bounds for e.g. `PrivateKeyInfo`,
which limits the applicability of these traits.

This commit changes to using blanket impls for `TryFrom`, which allows
types to handle parsing raw DER on their own, as in the `ring-compat`
crate.
@tarcieri tarcieri merged commit 06ff4ec into master Dec 11, 2022
@tarcieri tarcieri deleted the pkcs8+spki/use-blanket-impls-for-decode-traits branch December 11, 2022 14:47
This was referenced Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant