SHA256
1
0
forked from pool/pcsc-ccid
OBS User unknown 2007-02-14 09:36:31 +00:00 committed by Git OBS Bridge
parent 15ae1d8478
commit 8052beb1d8
5 changed files with 77 additions and 58 deletions

View File

@ -1,21 +0,0 @@
--- src/ifdhandler.c
+++ src/ifdhandler.c
@@ -653,6 +653,18 @@
(param[3] & 0xF0) >> 4 /* BWI */, param[3] & 0x0F /* CWI */,
ccid_desc->dwDefaultClock);
+ /* TAi (i>2) present? IFSC */
+ for (i=2; i<ATR_MAX_PROTOCOLS; i++)
+ if (atr.ib[i][ATR_INTERFACE_BYTE_TA].present)
+ {
+ DEBUG_COMM3("IFSC (TA%d) present: %d", i+1,
+ atr.ib[i][ATR_INTERFACE_BYTE_TA].value);
+ param[5] = atr.ib[i][ATR_INTERFACE_BYTE_TA].value;
+
+ /* only the first TAi (i>2) must be used */
+ break;
+ }
+
DEBUG_COMM2("Timeout: %d seconds", ccid_desc->readTimeout);
ret = SetParameters(reader_index, 1, sizeof(param), param);

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f5907dd82216ad9fddbd2778aee9fe8d45d383e13347ff2ca53da2a8fd0a81e
size 393409

3
ccid-1.2.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d29c3f0cf83051a1083d693273f000d53a77814e5d95e1fc079e2615b1dfa8a4
size 384416

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Tue Feb 13 15:02:14 CET 2007 - sbrabec@suse.cz
- Updated to version 1.2.1:
* Support for non CCID generic readers.
* Supported O2Micro Oz7762.
* Support for SCARD_ATTR_VENDOR_IFD_VERSION,
* SCARD_ATTR_VENDOR_NAME and SCARD_ATTR_MAXINPUT tags used by
SCardGetAttrib(). Read SCARDGETATTRIB.txt for more.
* Support for OmniKey CardMan 5125, CardMan 1021, C3PO LTC32, Teo
by Xiring, HP USB Smartcard Reader.
* Support Extended APDU (up to 64KB) for readers in TPDU mode
or Extended APDU mode. This only works for T=1 cards.
* Support for C3PO LTC31 (new version), OmniKey CardMan 3021, HP
USB Smart Card Keyboard, Actividentity (ActiveCard) Activkey
Sim, id3 Semiconductors CL1356D and CL1356T, Alcor Micro AU9520
* Support the contactless interface of the SCR331-DI-NTTCOM
* Increased the USB timeout used for PIN verify/modify.
* Endian fixes.
* Other fixes.
-------------------------------------------------------------------
Fri Nov 24 13:52:31 CET 2006 - mjancar@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package pcsc-ccid (Version 1.0.1)
# spec file for package pcsc-ccid (Version 1.2.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@ -11,24 +11,27 @@
# norootforbuild
Name: pcsc-ccid
BuildRequires: pcsc-lite-devel pkgconfig
Version: 1.0.1
Release: 22
%define _name ccid
BuildRequires: pcsc-lite-devel pkg-config
Version: 1.2.1
Release: 1
Provides: locale(MozillaFirefox:de_BE;en_BE;fr_BE;nl_BE;wa_BE)
Group: System/Libraries
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
URL: http://www.geocities.com/cprados
Summary: PCSC driver for CCID based smartcard readers
Source0: ccid-%{version}.tar.bz2
Patch0: ccid-%{version}-plist.diff
Patch1: ccid-%{version}-ifsc.diff
URL: http://pcsclite.alioth.debian.org/ccid.html
Summary: PCSC Driver for CCID Based Smart Card Readers and GemPC Twin Serial Reader
Source: %{_name}-%{version}.tar.bz2
Patch: ccid-1.0.1-plist.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define ifddir %{_libdir}/readers
%define ifddir %(pkg-config libpcsclite --variable=usbdropdir)
%description
This package contains a driver for USB smart card readers based on the
CCID (Chip/Smart Card Interface Devices) protocol, as well as a driver
for the GemPC Twin serial reader.
This package provides the source code for a generic USB CCID
(Chip/Smart Card Interface Devices) driver. See [1] for the USB CCID
specifications from the USB working group.
This package contains a generic USB CCID (Chip/Smart Card Interface
Devices) driver, as well as a driver for the GemPC Twin serial reader.
These drivers are meant to be used with the PCSC-Lite daemon from the
pcsc-lite package.
@ -37,39 +40,55 @@ pcsc-lite package.
Authors:
--------
Carlos Prados <cprados@yahoo.com>
Ludovic Rousseau <ludovic.rousseau@free.fr>
Carlos Prados
Olaf Kirch
%prep
%setup -q -n ccid-%{version}
%patch0
%patch1
%setup -q -n %{_name}-%{version}
%patch
%build
%{suse_update_config -f build}
aclocal --force
libtoolize --force
autoconf --force
autoheader --force
automake -afc
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
--libdir=%{ifddir} \
--enable-usbdropdir=%{ifddir}
make
./reconf
%configure\
--enable-twinserial\
--enable-udev
make %{?jobs:-j%jobs}
%install
install -d $RPM_BUILD_ROOT%{ifddir}
make install DESTDIR=$RPM_BUILD_ROOT
%makeinstall
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
mv $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d/ccidtwin.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog README
%{ifddir}
%defattr(-,root,root)
# ChangeLog NEWS are empty
%doc AUTHORS COPYING README SCARDGETATTRIB.txt
%config (noreplace) %{_sysconfdir}/reader.conf.d/*.conf
%{ifddir}/*
%changelog -n pcsc-ccid
* Tue Feb 13 2007 - sbrabec@suse.cz
- Updated to version 1.2.1:
* Support for non CCID generic readers.
* Supported O2Micro Oz7762.
* Support for SCARD_ATTR_VENDOR_IFD_VERSION,
* SCARD_ATTR_VENDOR_NAME and SCARD_ATTR_MAXINPUT tags used by
SCardGetAttrib(). Read SCARDGETATTRIB.txt for more.
* Support for OmniKey CardMan 5125, CardMan 1021, C3PO LTC32, Teo
by Xiring, HP USB Smartcard Reader.
* Support Extended APDU (up to 64KB) for readers in TPDU mode
or Extended APDU mode. This only works for T=1 cards.
* Support for C3PO LTC31 (new version), OmniKey CardMan 3021, HP
USB Smart Card Keyboard, Actividentity (ActiveCard) Activkey
Sim, id3 Semiconductors CL1356D and CL1356T, Alcor Micro AU9520
* Support the contactless interface of the SCR331-DI-NTTCOM
* Increased the USB timeout used for PIN verify/modify.
* Endian fixes.
* Other fixes.
* Fri Nov 24 2006 - mjancar@suse.cz
- set IFSC in the SetParameters when required (#223566)
* Fri Aug 11 2006 - stark@suse.de