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

Method cipher

crates/stdlib/src/openssl.rs:2645–2649  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2643
2644 #[pymethod]
2645 fn cipher(&self) -> Option<CipherTuple> {
2646 // Use thread-local SSL pointer during handshake to avoid deadlock
2647 let ssl_ptr = get_ssl_ptr_for_context_change(&self.connection);
2648 unsafe { ssl::SslRef::from_ptr(ssl_ptr).current_cipher() }.map(cipher_to_tuple)
2649 }
2650
2651 #[pymethod]
2652 fn pending(&self) -> i32 {

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45

Tested by

no test coverage detected