mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
agent: Silence debug output from the PIN caching.
* agent/call-scd.c (handle_pincache_put): Use log_debug only in cache debug mode.
This commit is contained in:
parent
e02880d512
commit
fee890a2ab
@ -151,15 +151,17 @@ handle_pincache_put (const char *args)
|
|||||||
pin = s;
|
pin = s;
|
||||||
if (!*pin)
|
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. */
|
* 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);
|
agent_put_cache (NULL, key, CACHE_MODE_PIN, NULL, -1);
|
||||||
err = 0;
|
err = 0;
|
||||||
goto leave;
|
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);
|
agent_put_cache (NULL, key, CACHE_MODE_PIN, pin, -1);
|
||||||
err = 0;
|
err = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user