mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Fixed lifetime error in csr.rs with gil-refs disabled (#10756)
This commit is contained in:
parent
5f19fad7be
commit
070ebf2d92
1 changed files with 2 additions and 2 deletions
|
|
@ -306,7 +306,7 @@ fn create_x509_csr(
|
|||
let spki_bytes = private_key
|
||||
.call_method0(pyo3::intern!(py, "public_key"))?
|
||||
.call_method1(pyo3::intern!(py, "public_bytes"), (der, spki))?
|
||||
.extract::<&[u8]>()?;
|
||||
.extract::<pyo3::pybacked::PyBackedBytes>()?;
|
||||
|
||||
let mut attrs = vec![];
|
||||
let ext_bytes;
|
||||
|
|
@ -362,7 +362,7 @@ fn create_x509_csr(
|
|||
let csr_info = CertificationRequestInfo {
|
||||
version: 0,
|
||||
subject: x509::common::encode_name(py, &py_subject_name.as_borrowed())?,
|
||||
spki: asn1::parse_single(spki_bytes)?,
|
||||
spki: asn1::parse_single(&spki_bytes)?,
|
||||
attributes: common::Asn1ReadableOrWritable::new_write(asn1::SetOfWriter::new(attrs)),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue