Log keys used in internal resolution
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 10 Jul 2018 10:24:45 +0000 (12:24 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 10 Jul 2018 10:24:45 +0000 (12:24 +0200)
* src/cryptcontroller.cpp (CryptController::resolve_keys_cached):
Log used keys.

--
Can be helpful to detect problems.

src/cryptcontroller.cpp

index 9a9d4d6..993c953 100644 (file)
@@ -372,6 +372,18 @@ CryptController::resolve_keys_cached()
           return 1;
         }
     }
+
+  log_debug ("%s:%s: Encrypting to:",
+             SRCNAME, __func__);
+  for (const auto &key: m_recipients)
+    {
+      log_debug ("%s", key.primaryFingerprint());
+    }
+  if (!m_signer_key.isNull())
+    {
+      log_debug ("%s:%s: Signing key: %s",
+                 SRCNAME, __func__, m_signer_key.primaryFingerprint());
+    }
   return 0;
 }