MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / install_rustls_provider

Function install_rustls_provider

crates/openshell-server/src/tls_test_utils.rs:16–18  ·  view source on GitHub ↗

Install the default rustls crypto provider. Must be called once at the start of any test that exercises TLS handshakes. Multiple calls are harmless (subsequent calls return an error, ignored).

()

Source from the content-addressed store, hash-verified

14/// Must be called once at the start of any test that exercises TLS handshakes.
15/// Multiple calls are harmless (subsequent calls return an error, ignored).
16pub fn install_rustls_provider() {
17 let _ = rustls::crypto::ring::default_provider().install_default();
18}
19
20/// Write bytes to a file inside `dir`, panicking on failure.
21pub fn write_test_file(dir: &Path, name: &str, data: &[u8]) {

Calls

no outgoing calls

Tested by

no test coverage detected