[git] GPGME - branch, master, updated. gpgme-1.6.0-8-gdfa79f9

by Ben Kibbey cvs at cvs.gnupg.org
Thu Oct 29 23:06:01 CET 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 "GnuPG Made Easy".

The branch, master has been updated
       via  dfa79f9300b837b0f7f2ea44afa589bfcda1dbd9 (commit)
      from  bb2d11c1eebd4bcfb0f2cfce728026a7420dca47 (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 dfa79f9300b837b0f7f2ea44afa589bfcda1dbd9
Author: Ben Kibbey <bjk at luxsci.net>
Date:   Wed Oct 28 18:16:27 2015 -0400

    Make use of user passphrase handler during passwd.
    
    * src/passwd.c (passwd_start): set engine passphrase command handler.
    
    --
    This allows for inquiring a passphrase when changing a passphrase rather
    than requiring a pinentry.

diff --git a/src/passwd.c b/src/passwd.c
index ff30df0..c34f357 100644
--- a/src/passwd.c
+++ b/src/passwd.c
@@ -148,6 +148,14 @@ passwd_start (gpgme_ctx_t ctx, int synchronous, gpgme_key_t key,
 
   _gpgme_engine_set_status_handler (ctx->engine, passwd_status_handler, ctx);
 
+  if (ctx->passphrase_cb)
+    {
+      err = _gpgme_engine_set_command_handler
+        (ctx->engine, _gpgme_passphrase_command_handler, ctx, NULL);
+      if (err)
+        return err;
+    }
+
   return _gpgme_engine_op_passwd (ctx->engine, key, flags);
 }
 

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

Summary of changes:
 src/passwd.c | 8 ++++++++
 1 file changed, 8 insertions(+)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list