Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crl: add OwnedCertRevocationList constructor
Previously it was only possible to build an `OwnedCertRevocationList` by first parsing a `BorrowedCertRevocationList` and then calling `to_owned`. This is convenient if you already have a `BorrowedCertRevocationList`, but downstream consumers like Rustls may want to construct a `OwnedCertRevocationList` directly. This commit adds a new `OwnedCertRevocationList::from_der` fn that can perform the construction in one step, avoiding the caller having to deal with two `Result`'s (one from creating the `BorrowedCertRevocationList` and then one from calling `to_owned`).
- Loading branch information