aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/BasicOperator.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-31 01:50:20 +0000
committerSaturneric <[email protected]>2021-12-31 01:50:20 +0000
commitcb10cffa20702ec3dac50adb5aeeebd6138279b0 (patch)
treec614cfb31b30d2c7f3a8175c8309ab2f738953d0 /src/gpg/function/BasicOperator.cpp
parent<refactor, test>(core, test): core improved and test gpg alone mode (diff)
downloadGpgFrontend-cb10cffa20702ec3dac50adb5aeeebd6138279b0.tar.gz
GpgFrontend-cb10cffa20702ec3dac50adb5aeeebd6138279b0.zip
<refactor, test>(core, test): core improved and test gpg key generation
1. Refactor the initialization code of Context. 2. Improve some callback function support. 3. Improve the key deletion function. 4. Modify the key output of some functions. 5. Add test for key generation. 6. Delete all imported keys at the end of the test case. 7. Add setup mode initialization parameters for Context.
Diffstat (limited to 'src/gpg/function/BasicOperator.cpp')
-rw-r--r--src/gpg/function/BasicOperator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpg/function/BasicOperator.cpp b/src/gpg/function/BasicOperator.cpp
index 56b7ca54..e52c091c 100644
--- a/src/gpg/function/BasicOperator.cpp
+++ b/src/gpg/function/BasicOperator.cpp
@@ -187,9 +187,11 @@ gpgme_error_t GpgFrontend::BasicOperator::EncryptSign(
void GpgFrontend::BasicOperator::SetSigners(KeyArgsList& keys) {
gpgme_signers_clear(ctx);
for (const GpgKey& key : keys) {
+ DLOG(INFO) << "key" << key.fpr();
if (key.CanSignActual()) {
- auto gpgmeError = gpgme_signers_add(ctx, gpgme_key_t(key));
- check_gpg_error(gpgmeError);
+ DLOG(INFO) << "signer";
+ auto error = gpgme_signers_add(ctx, gpgme_key_t(key));
+ check_gpg_error(error);
}
}
if (keys.size() != gpgme_signers_count(ctx))