aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgKeyManager.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-15 02:12:38 +0000
committerSaturneric <[email protected]>2022-01-15 02:12:38 +0000
commit96d14413a5da23ab6ac5aa93a966cd19d4898288 (patch)
tree880829f3978029aeff391e56fb15fdc52b4a3f63 /src/gpg/function/GpgKeyManager.cpp
parent<doc, refactor>(ci): Tidy up code in gpg/function (diff)
downloadGpgFrontend-96d14413a5da23ab6ac5aa93a966cd19d4898288.tar.gz
GpgFrontend-96d14413a5da23ab6ac5aa93a966cd19d4898288.zip
<doc, refactor>(ci): Tidy up code of core and related parts
1. Rename related entities. 2. Add a comments.
Diffstat (limited to 'src/gpg/function/GpgKeyManager.cpp')
-rw-r--r--src/gpg/function/GpgKeyManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpg/function/GpgKeyManager.cpp b/src/gpg/function/GpgKeyManager.cpp
index d25c3130..12461ec2 100644
--- a/src/gpg/function/GpgKeyManager.cpp
+++ b/src/gpg/function/GpgKeyManager.cpp
@@ -59,7 +59,7 @@ bool GpgFrontend::GpgKeyManager::RevSign(
for (const auto& sign_id : *signature_id) {
auto signing_key = key_getter.GetKey(sign_id.first);
- assert(signing_key.good());
+ assert(signing_key.IsGood());
auto err = check_gpg_error(gpgme_op_revsig(ctx_, gpgme_key_t(key),
gpgme_key_t(signing_key),
sign_id.second.c_str(), 0));
@@ -79,7 +79,7 @@ bool GpgFrontend::GpgKeyManager::SetExpire(
const char* sub_fprs = nullptr;
- if (subkey != nullptr) sub_fprs = subkey->fpr().c_str();
+ if (subkey != nullptr) sub_fprs = subkey->GetFingerprint().c_str();
auto err = check_gpg_error(
gpgme_op_setexpire(ctx_, gpgme_key_t(key), expires_time, sub_fprs, 0));