Commit b1b607c
committed
Cargo: update to rustls 0.22, associated updates
For the time being, this branch continues to unconditionally use *ring*
as the crypto provider. Follow-up work to expose this as a choice (e.g
allowing aws-lc-rs as a provider) may be interesting.
Deps:
* updated rustls 0.21 -> 0.22
* added pki-types 1.0
Linux deps:
* rustls-native-certs 0.6 -> 0.7
* webpki 0.101 -> 0.102
Android deps:
* webpki 0.101 -> 0.102
WASM32 deps:
* webpki-roots 0.25 -> 0.26
Summary of breaking change updates:
* `ServerName`, `Certificate`, and `OwnedTrustAnchor` types are now
sourced from `pki_types`, with an associated generic lifetime. The
`OwnedTrustAnchor` type is now just `TrustAnchor`.
* The 'dangerous' rustls crate feature was removed, and associated items
moved into new locations with the import path emphasizing danger.
* "Other error" types changed to use a specific `rustls::OtherError`
inner variant.
* `SystemTime` for verifiers replaced with `pki_types::UnixTime`.
* Default fns on `ServerCertVerifier` trait were removed, must be
reconstituted with `rustls::verify_tls12_signature`,
`rustls::verify_tls13_signature` and
`WebPkiSupportedAlgorithms.supported_schemes` using
a `CryptoProvider`.
* `ServerName` now supports a `to_str` operation, avoiding the need to
`match` and handle unsupported name types.
* `WebPkiVerifier` was renamed to `WebPkiServerVerifier`, handled as an
`Arc` and constructed with a builder.1 parent 0479b6e commit b1b607c
File tree
11 files changed
+339
-302
lines changed- src
- tests
- verification_mock
- verification_real_world
- verification
11 files changed
+339
-302
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments