[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.27-22-g78e0a30
by Werner Koch
cvs at cvs.gnupg.org
Wed May 20 16:27:25 CEST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, STABLE-BRANCH-2-0 has been updated
via 78e0a30fb19010b48efd752e1a73af20f93be533 (commit)
from dde8ddffd37c9ef96cae2e2b1317d1dee607fc0b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 78e0a30fb19010b48efd752e1a73af20f93be533
Author: Werner Koch <wk at gnupg.org>
Date: Wed May 20 16:13:55 2015 +0200
agent: Cleanup caching code for command GET_PASSPHRASE.
* agent/command.c (cmd_get_passphrase): Read from the user cache.
--
We used to read the passphrase with mode CACHE_MODE_NORMAL but we put
it into the cache with CACHE_MODE_USER. However, agent_get_cache does
not yet distinguish between them and thus this does not change
anything.
(backported from commit 23d2ef83cda644c6a83499f9327350d3371e8a17)
diff --git a/agent/command.c b/agent/command.c
index 765f916..9393212 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1245,7 +1245,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
if (!strcmp (desc, "X"))
desc = NULL;
- pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_NORMAL, &cache_marker)
+ pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_USER, &cache_marker)
: NULL;
if (pw)
{
-----------------------------------------------------------------------
Summary of changes:
agent/command.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list