[git] GnuPG - branch, master, updated. gnupg-2.1.4-7-g23d2ef8

by Werner Koch cvs at cvs.gnupg.org
Wed May 20 16:27:17 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, master has been updated
       via  23d2ef83cda644c6a83499f9327350d3371e8a17 (commit)
      from  3a9305439b75ccd4446378d4fd87da087fd9c892 (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 23d2ef83cda644c6a83499f9327350d3371e8a17
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.

diff --git a/agent/command.c b/agent/command.c
index a5dce44..f71325d 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1495,7 +1495,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) : NULL;
+  pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_USER) : NULL;
   if (pw)
     {
       rc = send_back_passphrase (ctx, opt_data, 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