diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-01-15 09:56:51 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-01-15 09:56:51 +0100 |
commit | d5356427bdf765a8e6f56d05dc049ae71760998b (patch) | |
tree | c23e397c741157711e65b482680788c252fa756a /ipc | |
parent | ac684b9685dd634323ee6fe073ae0dfb1d3aea89 (diff) |
ipc: Fix the key selection policy.
- When decrypting a message, don't require that the keys be alive
and not revoked now. Further, don't just consider keys that are
for transport encryption, also consider keys that are for storage
encryption.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/tests/gpg-agent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/tests/gpg-agent.rs b/ipc/tests/gpg-agent.rs index 5461d7a6..dec09d6b 100644 --- a/ipc/tests/gpg-agent.rs +++ b/ipc/tests/gpg-agent.rs @@ -278,8 +278,8 @@ fn decrypt() { { let mut keypair = KeyPair::new( self.ctx, - self.cert.keys().policy(None).alive().revoked(false) - .for_transport_encryption() + self.cert.keys().policy(None) + .for_storage_encryption().for_transport_encryption() .take(1).next().unwrap().key()) .unwrap(); |