diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-08-20 14:12:44 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-08-20 14:18:06 +0200 |
commit | c59bb02c794294e62da3259561e439ab78e04560 (patch) | |
tree | edb06817e9bdea49456c1aeaf7edef1a7cf0e546 /openpgp-ffi/examples | |
parent | f39af0ed274f85fab408000d68a9395f40b392c2 (diff) |
openpgp: Make choice of AEAD algorithm explicit.
- Automatically using AEAD if all recipients claim support is a
policy decision, which we'd rather avoid in the openpgp crate.
- Fixes #293.
Diffstat (limited to 'openpgp-ffi/examples')
-rw-r--r-- | openpgp-ffi/examples/encrypt-for.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp-ffi/examples/encrypt-for.c b/openpgp-ffi/examples/encrypt-for.c index e3125dc3..31b643e3 100644 --- a/openpgp-ffi/examples/encrypt-for.c +++ b/openpgp-ffi/examples/encrypt-for.c @@ -48,7 +48,8 @@ main (int argc, char **argv) NULL, 0, /* no passwords */ &tpk, 1, PGP_ENCRYPTION_MODE_FOR_TRANSPORT, - 9 /* AES256 */); + 9 /* AES256 */, + 0 /* No AEAD */); if (writer == NULL) error (1, 0, "pgp_encryptor_new: %s", pgp_error_to_string (err)); |