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

Method load_from_bytes

crates/stdlib/src/ssl/cert.rs:838–840  ·  view source on GitHub ↗

Load certificates from byte slice (auto-detects PEM vs DER format) This is a convenience wrapper that calls load_from_bytes_ex with treat_all_as_ca=false and pem_only=false.

(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

836 /// This is a convenience wrapper that calls load_from_bytes_ex with treat_all_as_ca=false
837 /// and pem_only=false.
838 pub fn load_from_bytes(&mut self, data: &[u8]) -> Result<CertStats, std::io::Error> {
839 self.load_from_bytes_ex(data, false, false)
840 }
841}
842
843// NoVerifier: disables certificate verification (for CERT_NONE mode)

Callers 2

load_from_fileMethod · 0.80
load_from_dirMethod · 0.80

Calls 1

load_from_bytes_exMethod · 0.80

Tested by

no test coverage detected