From 4615a1a283618f5357901347aae48c6724572959 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2016 06:21:53 +0000 Subject: import pcsc-lite-ccid-1.4.10-12.el7 --- diff --git a/SOURCES/ccid-1.4.10-max-cpu-bug.patch b/SOURCES/ccid-1.4.10-max-cpu-bug.patch new file mode 100644 index 0000000..c84ee0b --- /dev/null +++ b/SOURCES/ccid-1.4.10-max-cpu-bug.patch @@ -0,0 +1,77 @@ +diff -up ./src/ccid_usb.c.max_cpu_bug ./src/ccid_usb.c +--- ./src/ccid_usb.c.max_cpu_bug 2012-06-22 00:25:20.000000000 -0700 ++++ ./src/ccid_usb.c 2016-06-29 17:17:11.284337349 -0700 +@@ -154,6 +154,36 @@ status_t OpenUSB(unsigned int reader_ind + } /* OpenUSB */ + + ++ /***************************************************************************** ++ * ++ * close_libusb_if_needed ++ * (pulled from upstream ccid_usb) ++ * ++ ****************************************************************************/ ++ static void close_libusb_if_needed(void) ++ { ++ int i, to_exit = TRUE; ++ ++ if (NULL == ctx) ++ return; ++ ++ /* if at least 1 reader is still in use we do not exit libusb */ ++ for (i=0; i= %{pcsc_lite_ver} @@ -37,6 +40,8 @@ PC/SC Lite daemon. %patch2 -b .omnikey %patch3 -b .maxreaders %patch4 -b .yubikey +%patch5 -b .yubikey_2 +%patch6 -b .max_cpu_bug %build @@ -64,6 +69,12 @@ rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/reader.conf.d %changelog +* Thu Jun 23 2016 Robert Relyea