aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/encryptjob.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-07-28 14:15:12 +0000
committerIngo Klöcker <[email protected]>2023-07-28 14:15:12 +0000
commita9b28c79e92f6194ea52c7d33213f2a0dc9bd013 (patch)
tree7a077657ad431e815ea621beb4c556f50e876f6d /lang/qt/src/encryptjob.cpp
parentcore: Return bad data error instead of general error on unexpected data (diff)
downloadgpgme-a9b28c79e92f6194ea52c7d33213f2a0dc9bd013.tar.gz
gpgme-a9b28c79e92f6194ea52c7d33213f2a0dc9bd013.zip
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
Diffstat (limited to 'lang/qt/src/encryptjob.cpp')
0 files changed, 0 insertions, 0 deletions