[git] GnuPG - branch, master, updated. gnupg-2.1.19-19-g9bf39ed

by NIIBE Yutaka cvs at cvs.gnupg.org
Mon Mar 6 07:02:47 CET 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 "The GNU Privacy Guard".

The branch, master has been updated
       via  9bf39ed75ddbd35908bcd0996f55325ff801619a (commit)
      from  cb6337329d3c858c695a7e56e2fc31d9d50ca3fe (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 9bf39ed75ddbd35908bcd0996f55325ff801619a
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Mar 6 14:59:02 2017 +0900

    scd: More cleanup of old code.
    
    * scd/app-dinsig.c (do_sign): Remove assignment to HASHALGO.
    * scd/app-p15.c (parse_keyusage_flags): Remove assign to MASK.
    (read_ef_aodf): Likewise.
    (read_ef_cdf): Change the control to parse_error.
    * scd/app-sc-hsm.c (parse_keyusage_flags): Remove assign to MASK.
    (read_ef_prkd): Remove assign to S.
    (read_ef_prkd): Check if PRKDF is not null.
    (read_ef_cd): Likewise for CDF.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/scd/app-dinsig.c b/scd/app-dinsig.c
index 5d65845..f7ecc4b 100644
--- a/scd/app-dinsig.c
+++ b/scd/app-dinsig.c
@@ -456,7 +456,6 @@ do_sign (app_t app, const char *keyidstr, int hashalgo,
           /* Fixme: This is a kludge.  A better solution is not to use
              SHA1 as default but use an autodetection.  However this
              needs changes in all app-*.c */
-          hashalgo = GCRY_MD_SHA256;
           datalen  = indatalen;
         }
       else
diff --git a/scd/app-p15.c b/scd/app-p15.c
index db8c38e..4072fb7 100644
--- a/scd/app-p15.c
+++ b/scd/app-p15.c
@@ -752,7 +752,6 @@ parse_keyusage_flags (const unsigned char *der, size_t derlen,
       else
         {
           bits &= ~mask;
-          mask = 0;
         }
     }
   else
@@ -1388,7 +1387,7 @@ read_ef_cdf (app_t app, unsigned short fid, cdf_object_t *result)
       if (class != CLASS_UNIVERSAL || tag != TAG_SEQUENCE)
         {
           errstr = "unsupported reference type";
-          continue;
+          goto parse_error;
         }
       nn = objlen;
 
@@ -1801,7 +1800,6 @@ read_ef_aodf (app_t app, unsigned short fid, aodf_object_t *result)
             else
               {
                 bits &= ~mask;
-                mask = 0;
               }
           }
         if ((bits & 0x80))
diff --git a/scd/app-sc-hsm.c b/scd/app-sc-hsm.c
index c582734..dddc8dc 100644
--- a/scd/app-sc-hsm.c
+++ b/scd/app-sc-hsm.c
@@ -414,7 +414,6 @@ parse_keyusage_flags (const unsigned char *der, size_t derlen,
       else
         {
           bits &= ~mask;
-          mask = 0;
         }
     }
   else
@@ -827,7 +826,6 @@ read_ef_prkd (app_t app, unsigned short fid, prkdf_object_t *prkdresult,
   if (prkdf->usageflags.non_repudiation)
     {
       log_printf ("%snon_repudiation", s);
-      s = ",";
     }
   log_printf ("\n");
 
@@ -891,7 +889,8 @@ read_ef_prkd (app_t app, unsigned short fid, prkdf_object_t *prkdresult,
     }
   else
     {
-      prkdf->next = *prkdresult;
+      if (prkdf)
+        prkdf->next = *prkdresult;
       *prkdresult = prkdf;
       if (cdf)
         {
@@ -1112,7 +1111,8 @@ read_ef_cd (app_t app, unsigned short fid, cdf_object_t *result)
     }
   else
     {
-      cdf->next = *result;
+      if (cdf)
+        cdf->next = *result;
       *result = cdf;
     }
   return err;

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

Summary of changes:
 scd/app-dinsig.c | 1 -
 scd/app-p15.c    | 4 +---
 scd/app-sc-hsm.c | 8 ++++----
 3 files changed, 5 insertions(+), 8 deletions(-)


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




More information about the Gnupg-commits mailing list