Struct rustls::AllowAnyAnonymousOrAuthenticatedClient [−][src]
pub struct AllowAnyAnonymousOrAuthenticatedClient { /* fields omitted */ }A ClientCertVerifier that will allow both anonymous and authenticated
clients, without any name checking.
Client authentication will be requested during the TLS handshake. If the
client offers a certificate then this acts like
AllowAnyAuthenticatedClient, otherwise this acts like NoClientAuth.
Methods
impl AllowAnyAnonymousOrAuthenticatedClient[src]
impl AllowAnyAnonymousOrAuthenticatedClientpub fn new(roots: RootCertStore) -> Arc<ClientCertVerifier>[src]
pub fn new(roots: RootCertStore) -> Arc<ClientCertVerifier>Construct a new AllowAnyAnonymousOrAuthenticatedClient.
roots is the list of trust anchors to use for certificate validation.