mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2001] [CLOSED] Separate default rustls::ClientConfig for each protocol #2751
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#2751
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2001
Author: @daxpedda
Created: 8/21/2023
Status: ❌ Closed
Base:
main← Head:alpn-config📝 Commits (7)
14f6833Addwebpki-rootsandnative-certsfeatures59aeb66Falliblerustls-native-certsinitializatione9ca987StoreClientConfigper connection provider8a75049UseRootCertStore::add_parsable_certificates()de614dbFix example requiring root certificates140966bMakeQuicClientStreamBuilderconstruction non-fallible98afd7cSeparate defaultrustls::ClientConfigfor each protocol📊 Changes
18 files changed (+468 additions, -125 deletions)
View changed files
📝
Cargo.lock(+15 -3)📝
Cargo.toml(+2 -2)📝
crates/client/Cargo.toml(+3 -1)📝
crates/proto/Cargo.toml(+7 -4)📝
crates/proto/src/error.rs(+7 -0)📝
crates/proto/src/https/https_client_stream.rs(+28 -6)📝
crates/proto/src/quic/mod.rs(+1 -1)📝
crates/proto/src/quic/quic_client_stream.rs(+36 -11)📝
crates/resolver/Cargo.toml(+5 -1)📝
crates/resolver/examples/custom_provider.rs(+24 -6)📝
crates/resolver/src/config.rs(+2 -0)📝
crates/resolver/src/https.rs(+37 -22)📝
crates/resolver/src/name_server/connection_provider.rs(+72 -9)📝
crates/resolver/src/quic.rs(+117 -15)📝
crates/resolver/src/tls/dns_over_rustls.rs(+74 -31)📝
crates/resolver/src/tls/mod.rs(+2 -3)📝
util/Cargo.toml(+5 -2)📝
util/src/dns.rs(+31 -8)📄 Description
This PR separates the default configuration used by each protocol to allow correct default ALPN and SNI configuration.
The certificates provided by
webpki-rootsare parsed only once, theClientConfigis cloned and then modified for each protocol. The clone doesn't actually clone the certificates, as they are stored in anArc<WebPkiVerifier>, which avoids re-parsing the certificates over and over again but more importantly doesn't multiply the memory usage for each clonedClientConfig.See #1990 for more details on the issue addressed here.
Based on #1943.
Fixes #1990.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.