summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/examples
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-ffi/examples
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-ffi/examples')
-rw-r--r--openpgp-ffi/examples/decrypt-with.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/examples/decrypt-with.c b/openpgp-ffi/examples/decrypt-with.c
index d68e0902..969b7e28 100644
--- a/openpgp-ffi/examples/decrypt-with.c
+++ b/openpgp-ffi/examples/decrypt-with.c
@@ -128,7 +128,7 @@ main (int argc, char **argv)
};
plaintext = pgp_decryptor_new (&err, source,
get_public_keys_cb, decrypt_cb,
- check_signatures_cb, &cookie);
+ check_signatures_cb, &cookie, 0);
if (! plaintext)
error (1, 0, "pgp_decryptor_new: %s", pgp_error_to_string (err));