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 #147

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Switch to using the pki-types crate #147

merged 1 commit into from
Sep 1, 2023

Conversation

djc
Copy link
Member

@djc djc commented Aug 7, 2023

See rustls/pki-types#1 for more context.

The cargo package and cargo deny failures in CI are expected given the temporary introduction of a git dependency. I'd expect we can release a pki-types 1.0.0-alpha.1 before we merge this, but want to get PRs to a bunch of other crates in place (and, ideally, reviewed) before we do that.

@djc djc requested review from cpu and ctz August 7, 2023 14:52
@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #147 (9e25d3a) into main (02b8423) will increase coverage by 0.02%.
The diff coverage is 98.70%.

@@            Coverage Diff             @@
##             main     #147      +/-   ##
==========================================
+ Coverage   96.54%   96.57%   +0.02%     
==========================================
  Files          15       15              
  Lines        4376     4385       +9     
==========================================
+ Hits         4225     4235      +10     
+ Misses        151      150       -1     
Files Changed Coverage Δ
src/trust_anchor.rs 98.48% <98.21%> (+1.65%) ⬆️
src/end_entity.rs 100.00% <100.00%> (ø)
src/verify_cert.rs 97.34% <100.00%> (+0.03%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

src/end_entity.rs Show resolved Hide resolved
src/trust_anchor.rs Show resolved Hide resolved
@djc djc marked this pull request as ready for review August 31, 2023 09:34
@djc djc mentioned this pull request Aug 31, 2023
13 tasks
cert.verify_for_usage(
ALL_SIGALGS,
&anchors,
&[ca],
&[ca.clone()],
Copy link
Member

Choose a reason for hiding this comment

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

this clone is ~free, right? because ca will be a CertificateDer(Der::Borrowed(_))?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, in this case ca should be a CertificateDer<'static> holding a &'static [u8].

@djc djc added this pull request to the merge queue Sep 1, 2023
Merged via the queue into main with commit f2e45fb Sep 1, 2023
46 checks passed
@djc djc deleted the pki-types branch September 1, 2023 08:14
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