aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-12-19 10:26:15 +0000
committerIngo Klöcker <[email protected]>2023-12-19 12:12:59 +0000
commit5efd3486a9fa9f4b0f383aca2f2f01412e73237c (patch)
tree01d62e7da673d239c19b0e221cfc919da8b1aa0d /doc
parentcore: Support direct signing of file with gpg (diff)
downloadgpgme-5efd3486a9fa9f4b0f383aca2f2f01412e73237c.tar.gz
gpgme-5efd3486a9fa9f4b0f383aca2f2f01412e73237c.zip
core: Support writing the decrypt/verify output directly to a fileikloecker/t6550
* 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
Diffstat (limited to 'doc')
-rw-r--r--doc/gpgme.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index e7a568a3..32bca164 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -5630,7 +5630,9 @@ An error code describing the reason why the key was found invalid.
The function @code{gpgme_op_decrypt} decrypts the ciphertext in the
data object @var{cipher} or, if a file name is set on the data object,
the ciphertext stored in the corresponding file. The decrypted
-ciphertext is stored into the data object @var{plain}.
+ciphertext is stored into the data object @var{plain} or written to
+the file set with @code{gpgme_data_set_file_name} for the data object
+@var{plain}.
The function returns the error code @code{GPG_ERR_NO_ERROR} if the
ciphertext could be decrypted successfully, @code{GPG_ERR_INV_VALUE}
@@ -5846,7 +5848,9 @@ writable data object that will contain the plaintext after successful
verification. If a file name is set on the data object @var{sig} (or
on the data object @var{signed_text}), then the data of the signature
(resp. the data of the signed text) is not read from the data object
-but from the file with the given file name.
+but from the file with the given file name. If a file name is set on
+the data object @var{plain} then the plaintext is not stored in the
+data object but it is written to a file with the given file name.
The results of the individual signature verifications can be retrieved
with @code{gpgme_op_verify_result}.