hickory-dns/crates
Daniel McCarney 5aeb1d0209 resolver: err for dns-over-rustls w/o roots
If we find that we've constructed a Rustls root cert store that has no
trust anchors, return an early error. This makes the problem obvious
and avoids surfacing some other less specific error cause when we first
try to validate a peer certificate with an empty root store.

In order for our new early error to be surfaced correctly the
`name_sever_pool.rs` `parallel_conn_loop` fn needs its error handling
adjusted. Previously it would always compare the new error produced by
trying to build the TLS config against the default error it starts its
loop with, `ProtoErrorKind::NoConnections`. Since the error being
returned is another `ProtoErrorKind`, and the error specificity
comparison considers two `ProtoErrorKinds` equivalent in the general
case, the default error was always returned and the new error thrown
away.
2024-04-14 07:33:30 +02:00
..
async-std-resolver cleanup rust docs 2024-01-06 21:31:56 -05:00
client Fix a typo in crate description 2024-01-25 17:02:35 +01:00
proto error: wrap io::Error in Arc for clone 2024-04-14 07:30:55 +02:00
recursor cleanup rust docs 2024-01-06 21:31:56 -05:00
resolver resolver: err for dns-over-rustls w/o roots 2024-04-14 07:33:30 +02:00
server Break when socket is unexpectedly shut down 2024-03-16 13:21:54 -04:00