Skip to content

Commit

Permalink
fix: const handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nitneuqr committed Sep 16, 2024
1 parent 2860610 commit a44e8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/src/test_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn pkcs7_encrypt<'p>(
// Prepare the cipher
// SAFETY: No pre-conditions
let cipher = unsafe {
let ptr = openssl_sys::EVP_get_cipherbyname(cipher.as_bytes().as_ptr() as *const i8);
let ptr = openssl_sys::EVP_get_cipherbyname(cipher.as_bytes().as_ptr() as *const _);
openssl::symm::Cipher::from_ptr(ptr as *mut _)
};

Expand Down

0 comments on commit a44e8aa

Please sign in to comment.