diff options
author | Ingo Klöcker <[email protected]> | 2023-02-02 10:59:55 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-02-02 11:11:29 +0000 |
commit | 1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd (patch) | |
tree | 1a7689c7d8a14ea776b7faadbaf02341e75c41e1 /lang/qt/tests/t-decryptverify.cpp | |
parent | qt: Add job for extracting encrypted and signed archives (diff) | |
download | gpgme-1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd.tar.gz gpgme-1698eec2ae3ec1a97c739e892d9cf288c0ec4ccd.zip |
cpp: Return successful verification for signed but not encrypted data
* lang/cpp/src/context.cpp (Context::decrypt): Use decryptionResult().
(Context::verifyDetachedSignature, Context::verifyOpaqueSignature):
Use verificationResult().
(Context::verificationResult): Ignore "no data" error for signed but
not encrypted data.
(Context::decryptAndVerify): Use decryptionResult() and
verificationResult().
--
gpgme's decrypt operations set the error to GPG_ERR_NO_DATA if no
encrypted data was found. It makes sense to use this error for the
encryption result, but it doesn't make sense to use it also for the
verfication result if signed data was found.
This way using the combined decrypt-verify operations on data that
may be encrypted and/or signed doesn't produce confusing results.
GnuPG-bug-id: 6342
Diffstat (limited to 'lang/qt/tests/t-decryptverify.cpp')
0 files changed, 0 insertions, 0 deletions