1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-21 15:01:41 +02:00

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 fee890a2ab)
This commit is contained in:
Werner Koch 2024-06-06 11:53:58 +02:00
parent ce75af47eb
commit dc9a52cb4e
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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;