(path: FsPath, vm: &VirtualMachine)
| 358 | |
| 359 | #[pyfunction] |
| 360 | pub(crate) fn _test_decode_cert(path: FsPath, vm: &VirtualMachine) -> PyResult { |
| 361 | let path = path.to_path_buf(vm)?; |
| 362 | let pem = std::fs::read(path).map_err(|e| e.to_pyexception(vm))?; |
| 363 | let x509 = X509::from_pem(&pem).map_err(|e| convert_openssl_error(vm, e))?; |
| 364 | cert_to_py(vm, &x509, false) |
| 365 | } |
| 366 | } |
nothing calls this directly
no test coverage detected