gpgme/tests
Ingo Klöcker a9b28c79e9
core: Prevent wrong plaintext when verifying clearsigned signature
* src/engine-gpg.c (gpg_verify): Use a separate pipe instead of stdout
for reading the plaintext.

* tests/gpg/t-support.h (PGM): Define if undefined.
(print_data): Undefine BUF_SIZE.
(check_data): New.
* tests/gpg/t-verify.c (clearsigned_plus_key_block): New.
(main): Add test.
--

Reading the plaintext from stdout is a bad idea because gpg can also
print other stuff on stdout, e.g. the keys contained in a public key
block. This is fixed by reading the plaintext via a special pipe.

GnuPG-bug-id: 6622
2023-07-28 16:15:12 +02:00
..
gpg core: Prevent wrong plaintext when verifying clearsigned signature 2023-07-28 16:15:12 +02:00
gpgsm tests: Add ECC key generation for tests/gpgsm. 2020-03-27 19:50:24 +09:00
json tests: Stop daemons after setting up test environment 2023-02-09 09:33:07 +01:00
opassuan core: Fully implement the inquire callback for assuan_transact 2020-09-09 12:13:20 +02:00
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
ChangeLog-2011 Spelling fixes for comments and doc 2017-12-08 05:59:11 +01:00
Makefile.am Revert "tests: Avoid problems with local time across a day boundary." 2022-06-09 15:43:24 +02:00
run-decrypt.c core: Support reading the archive to decrypt/verify directly from a file 2023-06-21 14:38:50 +02:00
run-encrypt.c core: Support writing the sign/encrypt output directly to a file 2023-06-19 18:08:47 +02:00
run-export.c core: Add new option --secret-subkey to help texts. 2022-01-04 12:30:22 +01:00
run-genkey.c tests: Fix generation of keys without expiration 2022-01-13 16:30:56 +01:00
run-identify.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
run-import.c core: Allow setting import filters when importing keys 2021-12-14 15:44:37 +01:00
run-keylist.c core,cpp: Add new key flags to gpgme_subkey_t 2023-03-21 08:37:47 +01:00
run-keysign.c core: New flag GPGME_KEYSIGN_FORCE. 2021-03-11 11:49:07 +01:00
run-receive-keys.c core: New function gpgme_op_receive_keys 2022-02-03 15:56:30 +01:00
run-sign.c core: Support writing the sign/encrypt output directly to a file 2023-06-19 18:08:47 +02:00
run-support.h Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
run-swdb.c tests: Remove unsupported option --status from usage help 2022-01-13 15:23:43 +01:00
run-threaded.c core: Detect bad passphrase error on certificate import 2021-12-22 15:25:42 +01:00
run-tofu.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
run-verify.c core: Support reading the archive to decrypt/verify directly from a file 2023-06-21 14:38:50 +02:00
start-stop-agent build: Fix make distcheck problem. 2021-08-27 14:13:36 +02:00
t-data-1.txt 2001-10-16 Marcus Brinkmann <marcus@g10code.de> 2001-10-17 19:17:46 +00:00
t-data-2.txt 2001-10-16 Marcus Brinkmann <marcus@g10code.de> 2001-10-17 19:17:46 +00:00
t-data.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
t-engine-info.c core: Extend gpgme_get_dirinfo to return the gpgtar name 2023-01-18 10:30:17 +01:00
t-version.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00