Accept keyring by reference in pk_decrypt

This commit is contained in:
link2xt
2021-12-05 07:30:47 +00:00
parent bb3353397d
commit 7ff3cf4af0
2 changed files with 15 additions and 19 deletions

View File

@@ -305,7 +305,7 @@ async fn decrypt_part(
if has_decrypted_pgp_armor(&data) {
let (plain, ret_valid_signatures) =
pgp::pk_decrypt(data, private_keyring, public_keyring_for_validate).await?;
pgp::pk_decrypt(data, private_keyring, &public_keyring_for_validate).await?;
// If the message was wrongly or not signed, still return the plain text.
// The caller has to check the signatures then.