Ingo Klöcker 5efd3486a9
core: Support writing the decrypt/verify output directly to a file
* src/engine-gpg.c (gpg_decrypt): Pass output file name to gpg if output
has file name set.
(gpg_verify): Ditto.

* tests/run-decrypt.c (show_usage): New option --output.
(main): Parse new option. Set file name on output if --output is given.
Do not print output if --output is given.
* tests/run-verify.c (show_usage): New option --output.
(main): Parse new option. Set file name on output if --output is given.
--

This change makes it possible to tell gpg to write the output (i.e. the
decrypted/verified data) directly to a file with given file name instead
of piping the output back to gpgme.

GnuPG-bug-id: 6550
2023-12-19 13:12:59 +01:00
..
2022-09-15 13:45:35 +09:00
2018-11-08 12:34:27 +07:00
2018-11-08 12:34:27 +07:00
2023-02-10 11:12:52 +01:00
2022-11-25 15:37:23 +09:00
2023-10-25 17:42:27 +02:00
2023-11-30 00:06:08 +01:00
2017-12-08 05:59:11 +01:00
2020-11-03 17:47:44 -08:00
2020-11-03 17:47:44 -08:00
2022-10-26 12:10:57 +02:00