diff options
author | Saturneric <[email protected]> | 2021-06-09 19:02:41 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-09 19:02:41 +0000 |
commit | 7d000da3e8c8a65b43174b5be2edcd4c1bd6c27e (patch) | |
tree | 698f2ace3c49453768bf3c85e97069d65700e950 /include/gpg/GpgContext.h | |
parent | Adjust the output of analysis results. (diff) | |
download | GpgFrontend-7d000da3e8c8a65b43174b5be2edcd4c1bd6c27e.tar.gz GpgFrontend-7d000da3e8c8a65b43174b5be2edcd4c1bd6c27e.zip |
Do not clear the text when the decryption operation fails.
Add decrypt and verify operation.
Change the icon further.
Fix the function of importing from the key server.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | include/gpg/GpgContext.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gpg/GpgContext.h b/include/gpg/GpgContext.h index 2ffbeac2..fb2762f3 100644 --- a/include/gpg/GpgContext.h +++ b/include/gpg/GpgContext.h @@ -91,6 +91,10 @@ namespace GpgME { gpgme_error_t decrypt(const QByteArray &inBuffer, QByteArray *outBuffer, gpgme_decrypt_result_t *result); + gpgme_error_t + decryptVerify(const QByteArray &inBuffer, QByteArray *outBuffer, gpgme_decrypt_result_t *decrypt_result, + gpgme_verify_result_t *verify_result); + void clearPasswordCache(); void exportSecretKey(const QString &uid, QByteArray *outBuffer); @@ -165,7 +169,7 @@ namespace GpgME { void slotRefreshKeyList(); - void slotUpdateKeyList(QString key_id); + void slotUpdateKeyList(const QString& key_id); private: gpgme_ctx_t mCtx{}; |