Fix three more warnings in OCSP (#10746)

This commit is contained in:
Alex Gaynor 2024-04-05 17:44:12 -04:00 committed by GitHub
parent 6633a4ded4
commit 28beda0d53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
)?;