-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow previous commit to (a) conclusion:
- impl PemObject for simple types that have one associated SectionType, via PemObjectFilter. - impl PemObject directly for the multiplexed PrivateKeyDer type - make iterators yield their source types (ie, `CertificateDer::iter_pem_file` yields `CertificateDer`s, rather than `(SectionType::Certificate, Vec<u8>)` tuples which avoids boilerplate in common usage (eg, "get me the certificates from this file"). This removes the ability to use those iterators directly (to do one-pass parsing of multiple types), so impl `PemObject` for the tuple type too. There is a test that relies on this to verify that we don't mess up the order of PEM sections.
- Loading branch information
Showing
4 changed files
with
101 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.