core: Add support for mixed symmetric and asym enc
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 9 Aug 2016 09:40:29 +0000 (11:40 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 9 Aug 2016 12:23:51 +0000 (14:23 +0200)
commit3d2f027d0f40e7ec4ab48cee89ff0ee10b423566
tree2ce3f95c548e471777506e85618e203c3ee73a16
parentb5e16b036f0045524a583d8a366d8a3366fc0005
core: Add support for mixed symmetric and asym enc

* src/gpgme.h.in (gpgme_encrypt_flags_t): New flag
GPGME_ENCRYPT_SYMMETRIC.
* src/engine-gpg.c (gpg_encrypt): Also add --symmetric if the flag
is given.
* NEWS: Mention new flag.
* tests/run-encrypt.c (show_usage): Extend for --symmetric.
(main): Handle --symmetric.
(main): Set passphrase_cb in loopback mode.
(main): Fix encrypt call if no recipients are given.
* tests/gpg/t-encrypt-mixed.c: New.
* tests/gpg/Makefile.am (c_tests): Add new test.
* doc/gpgme.texi: Document new flag.
NEWS
doc/gpgme.texi
src/engine-gpg.c
src/gpgme.h.in
tests/gpg/Makefile.am
tests/gpg/t-encrypt-mixed.c [new file with mode: 0644]
tests/run-encrypt.c