[git] GnuPG - branch, master, updated. gnupg-2.1.0beta3-21-gae981dd

by Ben Kibbey cvs at cvs.gnupg.org
Thu Jan 19 02:47:43 CET 2012


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  ae981dd8f454e2a8bbc6429bed5abc5e87cc83d5 (commit)
      from  4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa (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 ae981dd8f454e2a8bbc6429bed5abc5e87cc83d5
Author: Ben Kibbey <bjk at luxsci.net>
Date:   Tue Jan 17 19:49:10 2012 -0500

    Add the INQUIRE_MAXLEN status message.
    
    This status message is used to inform the client of the maximum length
    of an inquired passphrase and is used in pinentry-mode=loopback.
    
    * agent/command.c (pinentry_loopback): Send the INQUIRE_MAXLEN status
    message before doing the inquire.

diff --git a/agent/command.c b/agent/command.c
index ad86a35..5fa8bce 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -2791,6 +2791,12 @@ pinentry_loopback(ctrl_t ctrl, const char *keyword,
 {
   gpg_error_t rc;
   assuan_context_t ctx = ctrl->server_local->assuan_ctx;
+  char buf[50];
+
+  snprintf (buf, sizeof (buf), "%u", max_length);
+  rc = assuan_write_status (ctx, "INQUIRE_MAXLEN", buf);
+  if (rc)
+    return rc;
 
   assuan_begin_confidential (ctx);
   rc = assuan_inquire (ctx, keyword, buffer, size, max_length);

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

Summary of changes:
 agent/command.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


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




More information about the Gnupg-commits mailing list