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

Switch to using the pki-types crate #24

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Switch to using the pki-types crate #24

merged 3 commits into from
Sep 1, 2023

Conversation

djc
Copy link
Member

@djc djc commented Aug 12, 2023

For more context, see rustls/pki-types#1.

This adjusts the Item variant names to match the names used in pki-types (and make the names comply with the API naming guidelines).

I also tacked on a change to yield impl Iterator types from the various helper functions instead of allocating a Vec directly. This is maybe more efficient but may not pull off its weight in extra API complexity vs how this API gets used?

One option here would be to bring this functionality into rustls-pki-types directly under an extra feature flag (or perhaps unconditionally with a small internal base64 implementation, compared to the current dependency with aggressively-ish MSRV that is under not-so-great management).

@djc djc requested review from cpu and ctz August 12, 2023 19:03
@djc djc marked this pull request as draft August 30, 2023 13:34
src/pemfile.rs Show resolved Hide resolved
@djc djc marked this pull request as ready for review August 31, 2023 09:35
_ => {}
};
}
pub fn certs(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, these changes worked out well in the rustls tests.

@djc djc merged commit 6f0724b into main Sep 1, 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.

3 participants