Skip to main content

CertVerifier

Struct CertVerifier 

Source
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,

Source

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,

Source§

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>

Verify a certificate. Read more
Source§

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>
where <CipherSuite as TlsCipherSuite>::Hash: Freeze,

§

impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> RefUnwindSafe for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
where <CipherSuite as TlsCipherSuite>::Hash: RefUnwindSafe, Clock: RefUnwindSafe,

§

impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Send for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
where <CipherSuite as TlsCipherSuite>::Hash: Send, Clock: Send,

§

impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Sync for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
where <CipherSuite as TlsCipherSuite>::Hash: Sync, Clock: Sync,

§

impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> Unpin for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
where <CipherSuite as TlsCipherSuite>::Hash: Unpin, Clock: Unpin,

§

impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> UnsafeUnpin for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
where <CipherSuite as TlsCipherSuite>::Hash: UnsafeUnpin,

§

impl<'a, CipherSuite, Clock, const CERT_SIZE: usize> UnwindSafe for CertVerifier<'a, CipherSuite, Clock, CERT_SIZE>
where <CipherSuite as TlsCipherSuite>::Hash: UnwindSafe, Clock: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,