Struct rustls::server::AllowAnyAuthenticatedClient
source · [−]pub struct AllowAnyAuthenticatedClient { /* private fields */ }
Expand description
A ClientCertVerifier
that will ensure that every client provides a trusted
certificate, without any name checking. Optionally, client certificates will
have their revocation status checked using the DER encoded CRLs provided.
Implementations
sourceimpl AllowAnyAuthenticatedClient
impl AllowAnyAuthenticatedClient
sourcepub fn new(roots: RootCertStore) -> Self
pub fn new(roots: RootCertStore) -> Self
Construct a new AllowAnyAuthenticatedClient
.
roots
is the list of trust anchors to use for certificate validation.
sourcepub fn with_crls(
self,
crls: impl IntoIterator<Item = UnparsedCertRevocationList>
) -> Result<Self, CertRevocationListError>
pub fn with_crls(
self,
crls: impl IntoIterator<Item = UnparsedCertRevocationList>
) -> Result<Self, CertRevocationListError>
Update the verifier to validate client certificates against the provided DER format unparsed certificate revocation lists (CRLs).
Auto Trait Implementations
impl RefUnwindSafe for AllowAnyAuthenticatedClient
impl Send for AllowAnyAuthenticatedClient
impl Sync for AllowAnyAuthenticatedClient
impl Unpin for AllowAnyAuthenticatedClient
impl UnwindSafe for AllowAnyAuthenticatedClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more