Skip to content

Switch to using the pki-types crate#147

Merged
djc merged 1 commit intomainfrom
pki-types
Sep 1, 2023
Merged

Switch to using the pki-types crate#147
djc merged 1 commit intomainfrom
pki-types

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

@djc djc force-pushed the pki-types branch 5 times, most recently from 9a8beba to ce0be38 Compare August 30, 2023 13:24
@djc djc marked this pull request as draft August 30, 2023 13:33
@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
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
@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