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

Function get_default_verify_paths

crates/stdlib/src/openssl.rs:484–497  ·  view source on GitHub ↗
(
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

482
483 #[pyfunction]
484 fn get_default_verify_paths(
485 vm: &VirtualMachine,
486 ) -> PyResult<(&'static str, PyObjectRef, &'static str, PyObjectRef)> {
487 let (cert_file_env, cert_dir_env) = &*CERT_ENV_NAMES;
488 let (cert_file, cert_dir) = get_cert_file_dir();
489 let cert_file = OsPath::new_str(cert_file).filename(vm);
490 let cert_dir = OsPath::new_str(cert_dir).filename(vm);
491 Ok((
492 cert_file_env.as_str(),
493 cert_file,
494 cert_dir_env.as_str(),
495 cert_dir,
496 ))
497 }
498
499 #[pyfunction(name = "RAND_status")]
500 fn rand_status() -> i32 {

Callers

nothing calls this directly

Calls 3

get_cert_file_dirFunction · 0.85
filenameMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected