|
if is_partial_chain && self.extra_roots.is_some() { |
Under windows, extra roots are added only when TrustStatus.dwErrorStatus is CERT_TRUST_IS_PARTIAL_CHAIN. But the error is CERT_TRUST_IS_UNTRUSTED_ROOT when the cert is self-signed and the issuer is itself.