diff options
author | Neal H. Walfield <neal@pep.foundation> | 2023-06-06 22:40:35 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2023-09-21 17:40:24 +0200 |
commit | 7adca50f172bc1d4d983231a8682d252f6c2fadc (patch) | |
tree | 9d50b6f19c49e27a4aae962815e210db8942372e /ipc | |
parent | 12ab3a71a7842c1751632bccaa38a7149be9882b (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.rs | 2 |
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. |