(nid: libc::c_int, vm: &VirtualMachine)
| 425 | |
| 426 | #[pyfunction] |
| 427 | fn nid2obj(nid: libc::c_int, vm: &VirtualMachine) -> PyResult<PyNid> { |
| 428 | _nid2obj(Nid::from_raw(nid)) |
| 429 | .as_deref() |
| 430 | .ok_or_else(|| vm.new_value_error(format!("unknown NID {nid}"))) |
| 431 | .and_then(|obj| obj2py(obj, vm)) |
| 432 | } |
| 433 | |
| 434 | // Lazily compute and cache cert file/dir paths |
| 435 | static CERT_PATHS: LazyLock<(PathBuf, PathBuf)> = LazyLock::new(|| { |
nothing calls this directly
no test coverage detected