pub struct CertVerifier<'a, CipherSuite, Clock, const CERT_SIZE: usize>where
Clock: TlsClock,
CipherSuite: TlsCipherSuite,{ /* private fields */ }Available on crate feature
webpki only.Implementations§
Source§impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>where
Clock: TlsClock,
CipherSuite: TlsCipherSuite,
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>where
Clock: TlsClock,
CipherSuite: TlsCipherSuite,
pub fn new(ca: Certificate<&'a [u8]>) -> Self
Trait Implementations§
Source§impl<CipherSuite, Clock, const CERT_SIZE: usize> TlsVerifier<CipherSuite> for CertVerifier<'_, CipherSuite, Clock, CERT_SIZE>where
CipherSuite: TlsCipherSuite,
Clock: TlsClock,
impl<CipherSuite, Clock, const CERT_SIZE: usize> TlsVerifier<CipherSuite> for CertVerifier<'_, CipherSuite, Clock, CERT_SIZE>where
CipherSuite: TlsCipherSuite,
Clock: TlsClock,
Source§fn set_hostname_verification(&mut self, hostname: &str) -> Result<(), TlsError>
fn set_hostname_verification(&mut self, hostname: &str) -> Result<(), TlsError>
Host verification is enabled by passing a server hostname.
Source§fn verify_certificate(
&mut self,
transcript: &CipherSuite::Hash,
cert: ServerCertificate<'_>,
) -> Result<(), TlsError>
fn verify_certificate( &mut self, transcript: &CipherSuite::Hash, cert: ServerCertificate<'_>, ) -> Result<(), TlsError>
Verify a certificate. Read more
Source§fn verify_signature(
&mut self,
verify: CertificateVerifyRef<'_>,
) -> Result<(), TlsError>
fn verify_signature( &mut self, verify: CertificateVerifyRef<'_>, ) -> Result<(), TlsError>
Verify the certificate signature. Read more
Auto Trait Implementations§
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Freeze for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> RefUnwindSafe for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Send for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Sync for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Unpin for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> UnsafeUnpin for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> UnwindSafe for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more