aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-06 09:53:58 +0000
committerWerner Koch <[email protected]>2024-07-01 13:07:37 +0000
commitdc9a52cb4e00a3f1fe9999035627cd72ced08e5a (patch)
treeee4f3791c2b54269f4363b2596c798cb2c7c891e
parentgpg: Add magic parameter "default" to --quick-add-adsk. (diff)
downloadgnupg-dc9a52cb4e00a3f1fe9999035627cd72ced08e5a.tar.gz
gnupg-dc9a52cb4e00a3f1fe9999035627cd72ced08e5a.zip
agent: Silence debug output from the PIN caching.
* agent/call-scd.c (handle_pincache_put): Use log_debug only in cache debug mode. (cherry picked from commit fee890a2ab7f0baeb6575418ffcac0d695411e50)
-rw-r--r--agent/call-scd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/agent/call-scd.c b/agent/call-scd.c
index da0539153..0c2a7b747 100644
--- a/agent/call-scd.c
+++ b/agent/call-scd.c
@@ -151,15 +151,17 @@ handle_pincache_put (const char *args)
pin = s;
if (!*pin)
{
- /* No value - flush the cache. The cache module knows aboput
+ /* No value - flush the cache. The cache module knows about
* the structure of the key to flush only parts. */
- log_debug ("%s: flushing cache '%s'\n", __func__, key);
+ if (DBG_CACHE)
+ log_debug ("%s: flushing cache '%s'\n", __func__, key);
agent_put_cache (NULL, key, CACHE_MODE_PIN, NULL, -1);
err = 0;
goto leave;
}
- log_debug ("%s: caching '%s'->'%s'\n", __func__, key, pin);
+ if (DBG_CACHE)
+ log_debug ("%s: caching '%s'->'%s'\n", __func__, key, "[hidden]");
agent_put_cache (NULL, key, CACHE_MODE_PIN, pin, -1);
err = 0;