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

update webpki #2015

Closed
webern opened this issue Mar 22, 2022 · 0 comments · Fixed by #2551
Closed

update webpki #2015

webern opened this issue Mar 22, 2022 · 0 comments · Fixed by #2551
Milestone

Comments

@webern
Copy link
Contributor

webern commented Mar 22, 2022

What I'd like:

It looks like our webpki-roots-shim is incompatible with the next major version of webpki roots (0.22):

$ cargo build
   Compiling webpki-roots v0.22.2 (/home/mjb/repos/bottlerocket/sources/webpki-roots-shim)
error[E0432]: unresolved import `webpki::trust_anchor_util`
  --> webpki-roots-shim/src/lib.rs:10:13
   |
10 | use webpki::trust_anchor_util::cert_der_as_trust_anchor;
   |             ^^^^^^^^^^^^^^^^^ could not find `trust_anchor_util` in `webpki`

error[E0423]: expected function, tuple struct or tuple variant, found type alias `TLSServerTrustAnchors`
  --> webpki-roots-shim/src/lib.rs:17:9
   |
17 |         TLSServerTrustAnchors(&ROOTS)
   |         ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: can't use a type alias as a constructor

warning: use of deprecated type alias `webpki::TLSServerTrustAnchors`: use TlsServerTrustAnchors
  --> webpki-roots-shim/src/lib.rs:11:14
   |
11 | use webpki::{TLSServerTrustAnchors, TrustAnchor};
   |              ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated type alias `webpki::TLSServerTrustAnchors`: use TlsServerTrustAnchors
  --> webpki-roots-shim/src/lib.rs:14:38
   |
14 |     pub static ref TLS_SERVER_ROOTS: TLSServerTrustAnchors<'static> = {
   |                                      ^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0423, E0432.
For more information about an error, try `rustc --explain E0423`.
warning: `webpki-roots` (lib) generated 2 warnings
error: could not compile `webpki-roots` due to 2 previous errors; 2 warnings emitted
FAIL: 101

Any alternatives you've considered:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants