MCPcopy Index your code
hub / github.com/RustPython/RustPython / verify_server_cert

Method verify_server_cert

crates/stdlib/src/ssl/cert.rs:848–858  ·  view source on GitHub ↗
(
        &self,
        _end_entity: &CertificateDer<'_>,
        _intermediates: &[CertificateDer<'_>],
        _server_name: &ServerName<'_>,
        _ocsp_response: &[u8],
        _now: UnixTime,

Source from the content-addressed store, hash-verified

846
847impl ServerCertVerifier for NoVerifier {
848 fn verify_server_cert(
849 &self,
850 _end_entity: &CertificateDer<'_>,
851 _intermediates: &[CertificateDer<'_>],
852 _server_name: &ServerName<'_>,
853 _ocsp_response: &[u8],
854 _now: UnixTime,
855 ) -> Result<ServerCertVerified, rustls::Error> {
856 // Accept all certificates without verification
857 Ok(ServerCertVerified::assertion())
858 }
859
860 fn verify_tls12_signature(
861 &self,

Callers

nothing calls this directly

Calls 7

extract_first_dns_nameFunction · 0.85
is_self_signedFunction · 0.85
verify_hostnameFunction · 0.85
ErrClass · 0.50
as_refMethod · 0.45
iterMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected