From 28beda0d53749d1b7958cf38aabe163db43dcf85 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 5 Apr 2024 17:44:12 -0400 Subject: [PATCH] Fix three more warnings in OCSP (#10746) --- src/rust/src/x509/ocsp_resp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rust/src/x509/ocsp_resp.rs b/src/rust/src/x509/ocsp_resp.rs index 3b9e11531..5038a2b0c 100644 --- a/src/rust/src/x509/ocsp_resp.rs +++ b/src/rust/src/x509/ocsp_resp.rs @@ -703,15 +703,15 @@ fn create_ocsp_response( let sigalg = x509::sign::compute_signature_algorithm( py, - private_key.as_borrowed().to_owned(), - hash_algorithm.as_borrowed().to_owned(), + private_key.clone(), + hash_algorithm.clone(), py.None().into_bound(py), )?; let tbs_bytes = asn1::write_single(&tbs_response_data)?; let signature = x509::sign::sign_data( py, - private_key.as_borrowed().to_owned(), - hash_algorithm.as_borrowed().to_owned(), + private_key.clone(), + hash_algorithm.clone(), py.None().into_bound(py), &tbs_bytes, )?;