-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
Codecov Report
@@ 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
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
9a8beba
to
ce0be38
Compare
cert.verify_for_usage( | ||
ALL_SIGALGS, | ||
&anchors, | ||
&[ca], | ||
&[ca.clone()], |
There was a problem hiding this comment.
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(_))
?
There was a problem hiding this comment.
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]
.
See rustls/pki-types#1 for more context.
The
cargo package
andcargo 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.