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

Method negotiated_cipher_suite

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

Get negotiated cipher suite

(&self)

Source from the content-addressed store, hash-verified

362
363 /// Get negotiated cipher suite
364 pub fn negotiated_cipher_suite(&self) -> Option<rustls::SupportedCipherSuite> {
365 match self {
366 TlsConnection::Client(conn) => conn.negotiated_cipher_suite(),
367 TlsConnection::Server(conn) => conn.negotiated_cipher_suite(),
368 }
369 }
370
371 /// Get peer certificates
372 pub fn peer_certificates(&self) -> Option<&[rustls::pki_types::CertificateDer<'static>]> {

Callers 3

cipherMethod · 0.80
versionMethod · 0.80
shared_ciphersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected