[git] GPGME - branch, master, updated. gpgme-1.9.0-70-g91e47d7

by Marcus Brinkmann cvs at cvs.gnupg.org
Thu Aug 24 15:52:12 CEST 2017


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  91e47d71652bd0f83b51089c343c3c4836bdfa8a (commit)
      from  bfb3a01a0c55aa327dcab061fa808672362cb09d (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 91e47d71652bd0f83b51089c343c3c4836bdfa8a
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date:   Thu Aug 24 15:50:16 2017 +0200

    gpgconf: Add more comments.
    
    * src/engine-gpgconf.c (gpgconf_config_dir_cb, gpgconf_conf_dir):
    Add comments.
    
    Signed-off-by: Marcus Brinkmann <mb at g10code.com>
    GnuPG-bug-id: 3018

diff --git a/src/engine-gpgconf.c b/src/engine-gpgconf.c
index ba5a73d..94ae67f 100644
--- a/src/engine-gpgconf.c
+++ b/src/engine-gpgconf.c
@@ -992,6 +992,10 @@ struct gpgconf_config_dir_s
   char *result;
 };
 
+/* Called for each line in the gpgconf --list-dirs output.  Searches
+   for the desired line and returns the result, indicating success by
+   a special error value GPG_ERR_USER_1 (which terminates the
+   operation immediately).  */
 static gpgme_error_t
 gpgconf_config_dir_cb (void *hook, char *line)
 {
@@ -1011,6 +1015,8 @@ gpgconf_config_dir_cb (void *hook, char *line)
 }
 
 
+/* Like gpgme_get_dirinfo, but uses the home directory of ENGINE and
+   does not cache the result.  */
 static gpgme_error_t
 gpgconf_conf_dir (void *engine, const char *what, char **result)
 {
@@ -1023,7 +1029,7 @@ gpgconf_conf_dir (void *engine, const char *what, char **result)
 		      gpgconf_config_dir_cb, &data);
   if (gpg_err_code (err) == GPG_ERR_USER_1)
     {
-      /* This signals to use that a result was found.  */
+      /* This signals to us that a result was found.  */
       *result = data.result;
       return 0;
     }

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

Summary of changes:
 src/engine-gpgconf.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list