[git] GnuPG - branch, master, updated. gnupg-2.1.17-40-g62268a2

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Jan 6 02:11:10 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  62268a2732dddca7a05ca4cf45d0e4338c7dc3c4 (commit)
      from  8a41e73c31adb86d4a7dca4da695e5ad1347811f (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 62268a2732dddca7a05ca4cf45d0e4338c7dc3c4
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Jan 6 10:07:40 2017 +0900

    scd: Fix for --disable-ccid-driver.
    
    * scd/apdu.c [HAVE_LIBUSB] (apdu_dev_list_start): Conditionalize.
    [HAVE_LIBUSB] (apdu_dev_list_finish, apdu_open_reader): Likewise.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/scd/apdu.c b/scd/apdu.c
index 50363ce..db46c4d 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -2919,7 +2919,6 @@ open_rapdu_reader (int portno,
 gpg_error_t
 apdu_dev_list_start (const char *portstr, struct dev_list **l_p)
 {
-  gpg_error_t err;
   struct dev_list *dl = xtrymalloc (sizeof (struct dev_list));
 
   *l_p = NULL;
@@ -2939,6 +2938,8 @@ apdu_dev_list_start (const char *portstr, struct dev_list **l_p)
     }
   else
     {
+      gpg_error_t err;
+
       err = ccid_dev_scan (&dl->idx_max, &dl->ccid_table);
       if (err)
         return err;
@@ -2972,7 +2973,9 @@ apdu_dev_list_start (const char *portstr, struct dev_list **l_p)
 void
 apdu_dev_list_finish (struct dev_list *dl)
 {
+#ifdef HAVE_LIBUSB
   ccid_dev_scan_finish (dl->ccid_table, dl->idx_max);
+#endif
   xfree (dl);
   npth_mutex_unlock (&reader_table_lock);
 }
@@ -3117,6 +3120,7 @@ apdu_open_reader (struct dev_list *dl)
 {
   int slot;
 
+#ifdef HAVE_LIBUSB
   if (dl->ccid_table)
     { /* CCID readers.  */
       int readerno;
@@ -3189,6 +3193,7 @@ apdu_open_reader (struct dev_list *dl)
       slot = -1;
     }
   else
+#endif
     { /* PC/SC readers.  */
       if (dl->idx++ == 0)
         slot = apdu_open_one_reader (dl->portstr);

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

Summary of changes:
 scd/apdu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list