Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cms and pkcs7 overlap #1045

Closed
tarcieri opened this issue May 4, 2023 · 2 comments · Fixed by #1062
Closed

cms and pkcs7 overlap #1045

tarcieri opened this issue May 4, 2023 · 2 comments · Fixed by #1062

Comments

@tarcieri
Copy link
Member

tarcieri commented May 4, 2023

The cms and pkcs7 crates seem to have a lot of overlap.

Should we pick one to be the place for CMS-related functionality and retire the other?

cc @carl-wallace

@carl-wallace
Copy link
Contributor

Possibly. The cms crate is more complete with regard to CMS structures. I prefer how ContentInfo is handled there as well (unsurprisingly). The cms crate more consistent with how structures are defined in x509, ocsp, cmpv2 and crmf. The pkcs7 crate may predate x509, which is when lots of stuff was added to der. The pkcs7 crate is mostly SignedData focused. Not sure offhand how much the structures other than ContentInfo differ.

tarcieri added a commit that referenced this issue May 13, 2023
This commit adds a deprecation notice to README.md for the `pkcs7` crate
announcing `cms` as its official successor.

Notably `pkcs7` predates many of the other format-related crates and
uses entirely reference-based conventions which we migrated away from in
the `x509-cert` crate. `cms` uses the newer conventions, and is more
complete as a Cryptographic Message Syntax implementation.

We will not be accepting pull requests for `pkcs7` and are leaving its
source code for now only to aid in porting functionality not yet present
in the `cms` crate.

When the next breaking release of `der` occurs, we will delete the
`pkcs7` source code from the repository, leaving only the deprecation
notice to help assist people migrating.

Closes #1045.
@tarcieri
Copy link
Member Author

I added a deprecation notice to pkcs7 in #1062.

Let's use cms as the basis for all work on Cryptographic Message Syntax.

tarcieri added a commit that referenced this issue May 13, 2023
This commit adds a deprecation notice to README.md for the `pkcs7` crate
announcing `cms` as its official successor.

Notably `pkcs7` predates many of the other format-related crates and
uses entirely reference-based conventions which we migrated away from in
the `x509-cert` crate. `cms` uses the newer conventions, and is more
complete as a Cryptographic Message Syntax implementation.

We will not be accepting pull requests for `pkcs7` and are leaving its
source code for now only to aid in porting functionality not yet present
in the `cms` crate.

When the next breaking release of `der` occurs, we will delete the
`pkcs7` source code from the repository, leaving only the deprecation
notice to help assist people migrating.

Closes #1045.
tarcieri added a commit that referenced this issue May 13, 2023
This commit adds a deprecation notice to README.md for the `pkcs7` crate
announcing `cms` as its official successor.

Notably `pkcs7` predates many of the other format-related crates and
uses entirely reference-based conventions which we migrated away from in
the `x509-cert` crate. `cms` uses the newer conventions, and is more
complete as a Cryptographic Message Syntax implementation.

We will not be accepting pull requests for `pkcs7` and are leaving its
source code for now only to aid in porting functionality not yet present
in the `cms` crate.

When the next breaking release of `der` occurs, we will delete the
`pkcs7` source code from the repository, leaving only the deprecation
notice to help assist people migrating.

Closes #1045.
tarcieri added a commit that referenced this issue May 13, 2023
This commit adds a deprecation notice to README.md for the `pkcs7` crate
announcing `cms` as its official successor.

Notably `pkcs7` predates many of the other format-related crates and
uses entirely reference-based conventions which we migrated away from in
the `x509-cert` crate. `cms` uses the newer conventions, and is more
complete as a Cryptographic Message Syntax implementation.

We will not be accepting pull requests for `pkcs7` and are leaving its
source code for now only to aid in porting functionality not yet present
in the `cms` crate.

When the next breaking release of `der` occurs, we will delete the
`pkcs7` source code from the repository, leaving only the deprecation
notice to help assist people migrating.

Closes #1045.
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 a pull request may close this issue.

2 participants