diff options
author | Saturneric <[email protected]> | 2021-06-06 19:41:06 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-06 19:41:06 +0000 |
commit | 7191b3bb0caf9d74648820b094a8af63f618e8a8 (patch) | |
tree | a94bac8131da0128b562f0d874bfbdfa271214c8 /src/gpg/GpgContext.cpp | |
parent | Adjust and improve the detailed interface of the verification information res... (diff) | |
download | GpgFrontend-7191b3bb0caf9d74648820b094a8af63f618e8a8.tar.gz GpgFrontend-7191b3bb0caf9d74648820b094a8af63f618e8a8.zip |
Add encryption and signature function.
Adjust and improve the dashboard control.
Modify and adjust GpgSignature.
Separate Verify result processing code in code structure.
Add additional operation toolbar function.
Adjust and optimize code structure.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/gpg/GpgContext.cpp')
-rw-r--r-- | src/gpg/GpgContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp index 492aef83..be6e19d4 100644 --- a/src/gpg/GpgContext.cpp +++ b/src/gpg/GpgContext.cpp @@ -938,7 +938,7 @@ namespace GpgME { } } - bool GpgContext::addUID(const GpgKey &key, const UID &uid) { + bool GpgContext::addUID(const GpgKey &key, const GpgUID &uid) { QString userid = QString("%1 (%3) <%2>").arg(uid.name, uid.email, uid.comment); auto gpgmeError = gpgme_op_adduid(mCtx, key.key_refer, userid.toUtf8().constData(), 0); if(gpgmeError == GPG_ERR_NO_ERROR) { @@ -952,7 +952,7 @@ namespace GpgME { } - bool GpgContext::revUID(const GpgKey &key, const UID &uid) { + bool GpgContext::revUID(const GpgKey &key, const GpgUID &uid) { auto gpgmeError = gpgme_op_revuid(mCtx, key.key_refer, uid.uid.toUtf8().constData(), 0); if(gpgmeError == GPG_ERR_NO_ERROR) { emit signalKeyUpdated(key.id); @@ -964,7 +964,7 @@ namespace GpgME { } } - bool GpgContext::setPrimaryUID(const GpgKey &key, const UID &uid) { + bool GpgContext::setPrimaryUID(const GpgKey &key, const GpgUID &uid) { auto gpgmeError = gpgme_op_set_uid_flag(mCtx, key.key_refer, uid.uid.toUtf8().constData(), "primary", nullptr); if(gpgmeError == GPG_ERR_NO_ERROR) { @@ -977,7 +977,7 @@ namespace GpgME { } } - bool GpgContext::revSign(const GpgKey &key, const Signature &signature) { + bool GpgContext::revSign(const GpgKey &key, const GpgKeySignature &signature) { auto signing_key = getKeyById(signature.keyid); |