pub struct AllowAnyAnonymousOrAuthenticatedClient { /* private fields */ }
Expand description

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.

Implementations

Construct a new AllowAnyAnonymousOrAuthenticatedClient.

roots is the list of trust anchors to use for certificate validation.

Update the verifier to validate client certificates against the provided DER format unparsed certificate revocation lists (CRLs).

Wrap this verifier in an Arc and coerce it to dyn ClientCertVerifier

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.