(py: pyo3::Python<'_>)
| 124 | |
| 125 | #[pyo3::prelude::pyfunction] |
| 126 | fn capture_error_stack(py: pyo3::Python<'_>) -> pyo3::PyResult<&pyo3::types::PyList> { |
| 127 | let errs = pyo3::types::PyList::empty(py); |
| 128 | for e in openssl::error::ErrorStack::get().errors() { |
| 129 | errs.append(pyo3::PyCell::new(py, OpenSSLError { e: e.clone() })?)?; |
| 130 | } |
| 131 | Ok(errs) |
| 132 | } |
| 133 | |
| 134 | #[pyo3::prelude::pyfunction] |
| 135 | fn is_fips_enabled() -> bool { |