We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1589a63 commit 85cf196Copy full SHA for 85cf196
rustls-platform-verifier/src/verification/others.rs
@@ -78,18 +78,10 @@ impl Verifier {
78
}
79
80
81
- let mut num_extra_roots = 0;
82
- let (added, ignored) =
83
- root_store.add_parsable_certificates(extra_roots.into_iter().inspect(|_| {
84
- num_extra_roots += 1;
85
- }));
86
-
87
- if num_extra_roots > 0 {
88
- if ignored > 0 {
89
- log::warn!("{ignored} extra CA root certificates were ignored due to errors");
90
- } else {
91
- log::debug!("Loaded {added} CA root certificates from extra roots");
92
- }
+ // While we ignore invalid certificates from the system, we forward errors from
+ // parsing the extra roots to the caller.
+ for cert in extra_roots {
+ root_store.add(cert)?;
93
94
95
#[cfg(all(
0 commit comments