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

Method peer_certificates

crates/stdlib/src/ssl/compat.rs:372–377  ·  view source on GitHub ↗

Get peer certificates

(&self)

Source from the content-addressed store, hash-verified

370
371 /// Get peer certificates
372 pub fn peer_certificates(&self) -> Option<&[rustls::pki_types::CertificateDer<'static>]> {
373 match self {
374 TlsConnection::Client(conn) => conn.peer_certificates(),
375 TlsConnection::Server(conn) => conn.peer_certificates(),
376 }
377 }
378}
379
380/// Error types matching OpenSSL error codes

Callers 4

getpeercertMethod · 0.80
get_unverified_chainMethod · 0.80
get_verified_chainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected