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

Method prepare_tls_versions

crates/stdlib/src/ssl.rs:3073–3079  ·  view source on GitHub ↗

Helper: Prepare TLS versions from context settings

(&self)

Source from the content-addressed store, hash-verified

3071
3072 /// Helper: Prepare TLS versions from context settings
3073 fn prepare_tls_versions(&self) -> &'static [&'static rustls::SupportedProtocolVersion] {
3074 let ctx = self.context.read();
3075 let min_ver = *ctx.minimum_version.read();
3076 let max_ver = *ctx.maximum_version.read();
3077 let options = *ctx.options.read();
3078 Self::get_rustls_versions(min_ver, max_ver, options)
3079 }
3080
3081 /// Helper: Prepare KX groups (ECDH curve) from context settings
3082 fn prepare_kx_groups(

Callers 1

Calls 1

readMethod · 0.45

Tested by

no test coverage detected