diff options
author | Ingo Klöcker <[email protected]> | 2022-03-30 10:25:53 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-03-31 16:39:19 +0000 |
commit | 7f089165e3ae42274e75e0e6fa1c45ca641f4023 (patch) | |
tree | 8ee2c9aa4e88a814ca3eb2d81a93c2d19e386466 /lang/cpp/src/exception.h | |
parent | qt,tests: Verify reason code and description of revocation (diff) | |
download | gpgme-7f089165e3ae42274e75e0e6fa1c45ca641f4023.tar.gz gpgme-7f089165e3ae42274e75e0e6fa1c45ca641f4023.zip |
qt: Check arguments passed to the revoke key job
* lang/qt/src/qgpgmerevokekeyjob.cpp (check_arguments): New.
(QGpgMERevokeKeyJob::start, QGpgMERevokeKeyJob::exec): Call
check_arguments.
* lang/qt/tests/t-revokekey.cpp (RevokeKeyJobTest): Add member functions
testErrorHandling_nullKey, testErrorHandling_invalidReason,
testErrorHandling_invalidDescription.
--
Check that the key is not a null key, that the reason has a valid
value, and that the description lines do not contain endline characters
and are not empty.
GnuPG-bug-id: 5904
Diffstat (limited to 'lang/cpp/src/exception.h')
0 files changed, 0 insertions, 0 deletions