Skip to content

Commit

Permalink
Fix three more warnings in OCSP (#10746)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Apr 5, 2024
1 parent 6633a4d commit 28beda0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rust/src/x509/ocsp_resp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)?;
Expand Down

0 comments on commit 28beda0

Please sign in to comment.