Ingo Klöcker c38b620039
core: Support writing the sign/encrypt output directly to a file
* src/engine-gpg.c (gpg_encrypt): Pass output file name to gpg if output
has file name set.
(gpg_encrypt_sign): Ditto.
(gpg_sign): Ditto.

* tests/run-encrypt.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-sign.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.
--

This change makes it possible to tell gpg (and gpgtar) to write the
output (i.e. the signed/encrypted data or the signature or the created
archive) directly to a file with given file name instead of piping
the output back to gpgme.

GnuPG-bug-id: 6530
2023-06-19 18:08:47 +02: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
2023-04-17 14:05:35 +02:00
2023-01-30 12:49:11 +01:00
2023-01-30 12:49:11 +01:00
2020-08-14 11:11:23 +02:00
2022-11-25 15:37:23 +09:00
2017-12-08 05:59:11 +01:00
2020-11-03 17:47:44 -08:00
2020-10-29 12:57:10 +01:00
2023-01-30 12:49:11 +01:00
2020-11-03 17:47:44 -08:00
2022-10-26 12:10:57 +02:00