summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2023-06-06 22:40:35 +0200
committerNeal H. Walfield <neal@pep.foundation>2023-09-21 17:40:24 +0200
commit7adca50f172bc1d4d983231a8682d252f6c2fadc (patch)
tree9d50b6f19c49e27a4aae962815e210db8942372e /ipc
parent12ab3a71a7842c1751632bccaa38a7149be9882b (diff)
openpgp: Fix Encryptor's lifetime parameter.
- `Encryptor` uses a single lifetime for two fields, which is too restrictive in some situations. - To avoid breaking the API, introduce `Encryptor2`, which is just `Encryptor` renamed, and with an added lifetime parameter, and make `Encryptor` a thin wrapper around `Encryptor2`. - Deprecate `Encryptor`. - See #1028.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/tests/gpg-agent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/tests/gpg-agent.rs b/ipc/tests/gpg-agent.rs
index bc875641..8ec4482d 100644
--- a/ipc/tests/gpg-agent.rs
+++ b/ipc/tests/gpg-agent.rs
@@ -298,7 +298,7 @@ fn decrypt(also_try_explicit_async: bool) -> openpgp::Result<()> {
// We want to encrypt a literal data packet.
let encryptor =
- Encryptor::for_recipients(message, recipients)
+ Encryptor2::for_recipients(message, recipients)
.build().unwrap();
// Emit a literal data packet.