[git] GnuPG - branch, master, updated. gnupg-2.1.15-90-gbde29a4

by Neal H. Walfield cvs at cvs.gnupg.org
Wed Sep 7 11:17:51 CEST 2016


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  bde29a46cedbbd2a5dfe7c91a6277c0a4ff50825 (commit)
      from  a937eef2d4e80cd43095802176d3db5e7fd94008 (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 bde29a46cedbbd2a5dfe7c91a6277c0a4ff50825
Author: Neal H. Walfield <neal at g10code.com>
Date:   Wed Sep 7 11:17:47 2016 +0200

    g10: Use the time a signature was seen, not the embedded time, for stats
    
    * g10/tofu.c (ask_about_binding): Use the time that a signature was
    seen, not allegedly generated, when generating statistics.
    
    --
    Signed-off-by: Neal H. Walfield <neal at g10code.com>

diff --git a/g10/tofu.c b/g10/tofu.c
index 5b20269..7cf3fc7 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -1397,9 +1397,6 @@ ask_about_binding (ctrl_t ctrl,
     }
 
   /* Get the stats for all the keys in CONFLICT_SET.  */
-  /* FIXME: When generating the statistics, do we want the time
-     embedded in the signature (column 'sig_time') or the time that
-     we first verified the signature (column 'time').  */
   strlist_rev (&conflict_set);
   for (iter = conflict_set; iter && ! rc; iter = iter->next)
     {
@@ -1435,10 +1432,12 @@ ask_about_binding (ctrl_t ctrl,
          /* Make sure the current key is first.  */ \
          " order by time_ago desc;\n"
 
+      /* Use the time when we saw the signature, not when the
+         signature was created as that can be forged.  */
       rc = gpgsql_stepx
         (dbs->db, &dbs->s.get_trust_gather_signature_stats,
          signature_stats_collect_cb, &stats, &sqerr,
-         STATS_SQL ("signatures", "sig_time", ""),
+         STATS_SQL ("signatures", "time", ""),
          GPGSQL_ARG_LONG_LONG, (long long) now,
          GPGSQL_ARG_STRING, email,
          GPGSQL_ARG_STRING, iter->d,

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

Summary of changes:
 g10/tofu.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


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




More information about the Gnupg-commits mailing list