Struct rustls::WebPKIVerifier
source · [−]Expand description
Default ServerCertVerifier
, see the trait impl for more information.
Fields
time: fn() -> Result<Time, TLSError>
time provider
Implementations
sourceimpl WebPKIVerifier
impl WebPKIVerifier
sourcepub fn new() -> WebPKIVerifier
pub fn new() -> WebPKIVerifier
Create a new WebPKIVerifier
sourcepub fn verification_schemes() -> Vec<SignatureScheme>
pub fn verification_schemes() -> Vec<SignatureScheme>
Returns the signature verification methods supported by webpki.
Trait Implementations
sourceimpl ServerCertVerifier for WebPKIVerifier
impl ServerCertVerifier for WebPKIVerifier
sourcefn verify_server_cert(
&self,
roots: &RootCertStore,
presented_certs: &[Certificate],
dns_name: DNSNameRef<'_>,
ocsp_response: &[u8]
) -> Result<ServerCertVerified, TLSError>
fn verify_server_cert(
&self,
roots: &RootCertStore,
presented_certs: &[Certificate],
dns_name: DNSNameRef<'_>,
ocsp_response: &[u8]
) -> Result<ServerCertVerified, TLSError>
Will verify the certificate is valid in the following ways:
- Signed by a trusted
RootCertStore
CA - Not Expired
- Valid for DNS entry
- OCSP data is present
sourcefn verify_tls12_signature(
&self,
message: &[u8],
cert: &Certificate,
dss: &DigitallySignedStruct
) -> Result<HandshakeSignatureValid, TLSError>
fn verify_tls12_signature(
&self,
message: &[u8],
cert: &Certificate,
dss: &DigitallySignedStruct
) -> Result<HandshakeSignatureValid, TLSError>
Verify a signature allegedly by the given server certificate. Read more
sourcefn verify_tls13_signature(
&self,
message: &[u8],
cert: &Certificate,
dss: &DigitallySignedStruct
) -> Result<HandshakeSignatureValid, TLSError>
fn verify_tls13_signature(
&self,
message: &[u8],
cert: &Certificate,
dss: &DigitallySignedStruct
) -> Result<HandshakeSignatureValid, TLSError>
Verify a signature allegedly by the given server certificate. Read more
sourcefn supported_verify_schemes(&self) -> Vec<SignatureScheme>
fn supported_verify_schemes(&self) -> Vec<SignatureScheme>
Return the list of SignatureSchemes that this verifier will handle,
in
verify_tls12_signature
and verify_tls13_signature
calls. Read moreAuto Trait Implementations
impl RefUnwindSafe for WebPKIVerifier
impl Send for WebPKIVerifier
impl Sync for WebPKIVerifier
impl Unpin for WebPKIVerifier
impl UnwindSafe for WebPKIVerifier
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more