[git] GnuPG - branch, master, updated. gnupg-2.1.8-87-g5a12c45

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Oct 9 04:57:01 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  5a12c45666cd16bc750d7f0e63620c295feb77ea (commit)
      from  818fa4f71e1056831b35d0f8aff715c0e1d537e6 (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 5a12c45666cd16bc750d7f0e63620c295feb77ea
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Oct 9 11:55:18 2015 +0900

    agent: simplify agent_get_passphrase.
    
    * agent/call-pinentry.c (agent_get_passphrase): Simplify.

diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index 5092375..ada477a 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -1064,15 +1064,9 @@ agent_get_passphrase (ctrl_t ctrl,
         {
 	  size_t size;
 	  size_t len = ASSUAN_LINELENGTH/2;
-	  unsigned char *buffer;
 
-	  rc = pinentry_loopback(ctrl, "PASSPHRASE", &buffer, &size, len);
-	  if (!rc)
-	    {
-	      buffer[size] = 0;
-	      *retpass = buffer;
-	    }
-	  return rc;
+	  return pinentry_loopback (ctrl, "PASSPHRASE",
+				    (unsigned char **)retpass, &size, len);
         }
       return gpg_error (GPG_ERR_NO_PIN_ENTRY);
     }

-----------------------------------------------------------------------

Summary of changes:
 agent/call-pinentry.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list