MCPcopy Create free account
hub / github.com/pyca/cryptography / capture_error_stack

Function capture_error_stack

src/rust/src/lib.rs:126–132  ·  view source on GitHub ↗
(py: pyo3::Python<'_>)

Source from the content-addressed store, hash-verified

124
125#[pyo3::prelude::pyfunction]
126fn 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]
135fn is_fips_enabled() -> bool {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected