pub struct DigServerCertVerifier { /* private fields */ }Expand description
Client-side verifier: verifies the SERVER’s leaf chains to the DigNetwork CA (serverAuth), pins
its peer_id, and checks the BLS binding.
Implementations§
Source§impl DigServerCertVerifier
impl DigServerCertVerifier
Sourcepub fn new(
expected: Option<PeerId>,
captured: CapturedPeerId,
binding_policy: BindingPolicy,
captured_bls: CapturedBlsPub,
) -> Self
pub fn new( expected: Option<PeerId>, captured: CapturedPeerId, binding_policy: BindingPolicy, captured_bls: CapturedBlsPub, ) -> Self
Build a verifier that pins expected (or accepts any DigNetwork-CA peer when None), captures
the derived id + BLS pubkey, and applies binding_policy.
Trait Implementations§
Source§impl Debug for DigServerCertVerifier
impl Debug for DigServerCertVerifier
Source§impl ServerCertVerifier for DigServerCertVerifier
impl ServerCertVerifier for DigServerCertVerifier
Source§fn verify_server_cert(
&self,
end_entity: &CertificateDer<'_>,
intermediates: &[CertificateDer<'_>],
_server_name: &ServerName<'_>,
_ocsp_response: &[u8],
now: UnixTime,
) -> Result<ServerCertVerified, TlsError>
fn verify_server_cert( &self, end_entity: &CertificateDer<'_>, intermediates: &[CertificateDer<'_>], _server_name: &ServerName<'_>, _ocsp_response: &[u8], now: UnixTime, ) -> Result<ServerCertVerified, TlsError>
Verify the end-entity certificate
end_entity is valid for the
hostname dns_name and chains to at least one trust anchor. Read moreSource§fn verify_tls12_signature(
&self,
message: &[u8],
cert: &CertificateDer<'_>,
dss: &DigitallySignedStruct,
) -> Result<HandshakeSignatureValid, TlsError>
fn verify_tls12_signature( &self, message: &[u8], cert: &CertificateDer<'_>, dss: &DigitallySignedStruct, ) -> Result<HandshakeSignatureValid, TlsError>
Verify a signature allegedly by the given server certificate. Read more
Source§fn verify_tls13_signature(
&self,
message: &[u8],
cert: &CertificateDer<'_>,
dss: &DigitallySignedStruct,
) -> Result<HandshakeSignatureValid, TlsError>
fn verify_tls13_signature( &self, message: &[u8], cert: &CertificateDer<'_>, dss: &DigitallySignedStruct, ) -> Result<HandshakeSignatureValid, TlsError>
Verify a signature allegedly by the given server certificate. Read more
Source§fn 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 moreSource§fn requires_raw_public_keys(&self) -> bool
fn requires_raw_public_keys(&self) -> bool
Returns whether this verifier requires raw public keys as defined
in RFC 7250.
Source§fn root_hint_subjects(&self) -> Option<&[DistinguishedName]>
fn root_hint_subjects(&self) -> Option<&[DistinguishedName]>
Return the
DistinguishedNames of certificate authorities that this verifier trusts. Read moreAuto Trait Implementations§
impl Freeze for DigServerCertVerifier
impl RefUnwindSafe for DigServerCertVerifier
impl Send for DigServerCertVerifier
impl Sync for DigServerCertVerifier
impl Unpin for DigServerCertVerifier
impl UnsafeUnpin for DigServerCertVerifier
impl UnwindSafe for DigServerCertVerifier
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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