From 1a9f192ab450288aea7a889527e78afd2c067b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 21 Jun 2023 14:20:52 +0200 Subject: core: Support reading the archive to decrypt/verify directly from a file * src/engine-gpg.c (add_file_name_arg_or_data): New. (gpg_decrypt): Use add_file_name_arg_or_data instead of add_data for the ciphertext. (gpg_verify): Use add_file_name_arg_or_data instead of add_data for the signature and the signed text. * tests/run-decrypt.c (show_usage): New option --direct-file-io. (main): Parse new option. If option is given, then don't open input file, create simple data object instead of data object from stream and set input file name on input data. * tests/run-verify.c (show_usage): New option --direct-file-io. (main): Parse new option. If option is given, then don't open input files, create simple data objects instead of data objects from stream and set input file names on input data objects. -- This change makes it possible to tell gpg (and gpgtar) to read the input (i.e. the signed/encrypted data or the signature or the created archive) directly from the files with given file names instead of from streams piped through GpgME's Data IO. GnuPG-bug-id: 6530 --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index ce72d610..7712c7d9 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,9 @@ Noteworthy changes in version 1.21.0 (unreleased) gpgme_op_sign* to allow writing the output directly to a file. [T6530] + * Extended gpgme_op_decrypt* and gpgme_op_verify* to allow + reading the input data directly from files. [T6530] + * qt: Allow writing the created archives directly to a file. [T6530] -- cgit v1.2.3