summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/decrypt-with.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 /openpgp/examples/decrypt-with.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 'openpgp/examples/decrypt-with.rs')
-rw-r--r--openpgp/examples/decrypt-with.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs
index 3828e47f..908b8650 100644
--- a/openpgp/examples/decrypt-with.rs
+++ b/openpgp/examples/decrypt-with.rs
@@ -36,7 +36,7 @@ pub fn main() {
// Now, create a decryptor with a helper using the given TPKs.
let mut decryptor =
- Decryptor::from_reader(io::stdin(), Helper::new(tpks)).unwrap();
+ Decryptor::from_reader(io::stdin(), Helper::new(tpks), None).unwrap();
// Finally, stream the decrypted data to stdout.
io::copy(&mut decryptor, &mut io::stdout())