summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/examples/encrypt-for.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ffi/examples/encrypt-for.c')
-rw-r--r--openpgp-ffi/examples/encrypt-for.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp-ffi/examples/encrypt-for.c b/openpgp-ffi/examples/encrypt-for.c
index 8303f8ee..65bd8a45 100644
--- a/openpgp-ffi/examples/encrypt-for.c
+++ b/openpgp-ffi/examples/encrypt-for.c
@@ -36,7 +36,9 @@ main (int argc, char **argv)
if (cert == NULL)
error (1, 0, "pgp_cert_from_file: %s", pgp_error_to_string (err));
- pgp_cert_key_iter_t iter = pgp_cert_key_iter_valid (cert);
+ pgp_cert_key_iter_t iter = pgp_cert_key_iter (cert);
+ pgp_cert_key_iter_alive (iter);
+ pgp_cert_key_iter_revoked (iter, false);
pgp_cert_key_iter_for_storage_encryption (iter);
pgp_cert_key_iter_for_transport_encryption (iter);
size_t recipients_len;