summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/decrypt.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-04-09 13:08:20 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-04-09 13:08:20 +0200
commit7c92d7381408b375d158dd3aedfa61d340ed3750 (patch)
tree1fe1a0ff202930700e9817ebb1d67b281217ece1 /tool/src/commands/decrypt.rs
parentb372fdb81fbff4bfca997b4d271aedc6026c158c (diff)
openpgp: Guard signature verifications with a time.
- In the streaming verifier and decryptor, check that signatures (and binding signatures) are valid at the given time. - Fixes #247.
Diffstat (limited to 'tool/src/commands/decrypt.rs')
-rw-r--r--tool/src/commands/decrypt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs
index 50dae859..8bdb6c95 100644
--- a/tool/src/commands/decrypt.rs
+++ b/tool/src/commands/decrypt.rs
@@ -207,7 +207,7 @@ pub fn decrypt(ctx: &Context, store: &mut store::Store,
-> Result<()> {
let helper = Helper::new(ctx, store, signatures, tpks, secrets,
dump_session_key, dump, hex);
- let mut decryptor = Decryptor::from_reader(input, helper)
+ let mut decryptor = Decryptor::from_reader(input, helper, None)
.context("Decryption failed")?;
io::copy(&mut decryptor, output)