mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-10 21:38:50 +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.
(cherry picked from commit fee890a2ab
)
This commit is contained in:
parent
ce75af47eb
commit
dc9a52cb4e
@ -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. */
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user