pub fn batch_add_certificates(&self, der_certs: &[Vec<u8>]) -> Option<(usize, usize)> {
        match self.mode.write().deref_mut() {
            ClientCertVerifyMode::AllowAnyClient => None,
            ClientCertVerifyMode::MustVerifyClientCert(verifier) => Some(
                verifier
                    .roots
                    .add_parsable_certificates(der_certs),
            ),
        }
    }
/// Parses the given DER-encoded certificates and add all that can be parsed
/// to the underlying authenticated client certificate store
/// in a best-effort fashion if currently serving only authenticated clients.
///
/// This is because large collections of root certificates often
/// include ancient or syntactically invalid certificates.
///
/// Returns the number of certificates added, and the number that were ignored
/// wrapped inside `Some`. If currently serving anonymous clients, returns
/// `None` and the function is a no-op.
///
/// This is possibly a mutating operation managed by interior mutability
/// (mutex).
Parses the given DER-encoded certificates and add all that can be parsed
to the underlying authenticated client certificate store
in a best-effort fashion if currently serving only authenticated clients.

This is because large collections of root certificates often
include ancient or syntactically invalid certificates.

Returns the number of certificates added, and the number that were ignored
wrapped inside `Some`. If currently serving anonymous clients, returns
`None` and the function is a no-op.

This is possibly a mutating operation managed by interior mutability
(mutex).
Parses the given DER - encoded certificates and add all that can be parsed to the underlying authenticated client certificate store in a best - effort fashion if currently serving only authenticated clients . This is because large collections of root certificates often include ancient or syntactically invalid certificates . Returns the number of certificates added and the number that were ignored wrapped inside ` Some ` . If currently serving anonymous clients returns ` None ` and the function is a no - op . This is possibly a mutating operation managed by interior mutability ( mutex ) .
pub fn batch_add_certificates(&self, der_certs: &[Vec<u8>]) -> Option<(usize, usize)> {
        match self.mode.write().deref_mut() {
            ClientCertVerifyMode::AllowAnyClient => None,
            ClientCertVerifyMode::MustVerifyClientCert(verifier) => Some(
                verifier
                    .roots
                    .add_parsable_certificates(der_certs),
            ),
        }
    }
pub fn batch_add_certificates ( & self , der_certs : & [ Vec < u8 > ] ) -> Option < ( usize , usize ) > { match self . mode . write ( ) . deref_mut ( ) { ClientCertVerifyMode :: AllowAnyClient => None , ClientCertVerifyMode :: MustVerifyClientCert ( verifier ) => Some ( verifier . roots . add_parsable_certificates ( der_certs ) , ) , } }
Parses the given DER-encoded certificates and add all that can be parsed
to the underlying authenticated client certificate store
in a best-effort fashion if currently serving only authenticated clients.
Parses the given DER - encoded certificates and add all that can be parsed to the underlying authenticated client certificate store in a best - effort fashion if currently serving only authenticated clients .
&self
der_certs
&[Vec<u8>]
&self
der_certs
&[Vec<u8>]