Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Switch to using the pki-types crate#24

Merged
djc merged 3 commits intomainfrom
pki-types
Sep 1, 2023
Merged

Switch to using the pki-types crate#24
djc merged 3 commits intomainfrom
pki-types

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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants