Home GnuPG
Diffusion GPGME 7f089165e3ae

qt: Check arguments passed to the revoke key job

Description

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.

Details

Provenance
ikloeckerAuthored on Mar 30 2022, 12:25 PM
Parents
rM3856ae8621bb: qt,tests: Verify reason code and description of revocation
Branches
Unknown
Tags
Unknown
Tasks
T5904: gpgme: Revoke own key