release 1.2.9-beta3
53 lines of code changed in 1 file:
the include directory is now ${includedir}/PCSC.
If your application Makefile uses
CFLAGS=`pkg-config libpcsclite --cflags`
you have nothing to change and the migration of the include files in
/usr/include/PCSC/ will be painless.
1 lines of code changed in 1 file:
IFDControl_v2(): if the driver version is != IFD_HVERSION_1_0 we
_return_ SCARD_E_UNSUPPORTED_FEATURE (not just set the return value)
IFDControl(): if the driver version is < IFD_HVERSION_3_0 we
_return_ SCARD_E_UNSUPPORTED_FEATURE (not just set the return value)
2 lines of code changed in 1 file:
SCardReconnect(): if the reset fails it may be either because:
- the card is unresponsive (SCARD_W_UNRESPONSIVE_CARD)
or
- no card is present (SCARD_E_NO_SMARTCARD) and the SCardConnect() was
successfull with SCARD_SHARE_DIRECT (no need for a card)
10 lines of code changed in 1 file:
in SCardConnect() and SCardReconnect(), returns
SCARD_W_UNRESPONSIVE_CARD if PHSetProtocol() fails with
SET_PROTOCOL_PPS_FAILED
8 lines of code changed in 1 file:
define the constant SET_PROTOCOL_WRONG_ARGUMENT and
SET_PROTOCOL_PPS_FAILED
5 lines of code changed in 1 file:
PHSetProtocol(): returns SET_PROTOCOL_PPS_FAILED if IFDSetPTS() is
supported but fails:
ISO 7816-3:1997 ch. 7.2 PPS protocol page 14
- If the PPS exchange is unsuccessful, then the interface device shall
either reset or reject the card.
14 lines of code changed in 1 file:
do not #undef ATR_DEBUG since it may be defined in config.h with
./configure --enable-debugatr
2 lines of code changed in 1 file:
add definition of SCARD_PROTOCOL_T15
1 lines of code changed in 1 file:
- set SCARD_PROTOCOL_T15 in CardCapabilities.AvailableProtocols if T=15
is defined (not yet used)
- in specific mode CardCapabilities.AvailableProtocols shall also be set
the the specified protocol
29 lines of code changed in 1 file:
remove the hack introduced in version 1.28. It is no more needed since
the changes in version 1.32 of winscard.c
0 lines of code changed in 1 file:
PHSetProtocol(): only try to use protocols that are available
3 lines of code changed in 1 file:
local variables reorganisations:
- remove unused variables
- remove useless initialisations
- move declaration in the inner block the variable is used
104 lines of code changed in 7 files:
rewrite the parts managing the protocol in SCardConnect() and
SCardReconnect() to use the new PHSetProtocol() prototype and simplify
the code
38 lines of code changed in 1 file:
PHSetProtocol():
- add a ucDefault argument as the default protocol to use
- completely redesign the function so that IFDSetPTS() is always called
to tell the driver which protocol to use and to initialise its
internal state
42 lines of code changed in 2 files:
the protocol number in the "Send Protocol:" debug message was wrong
2 lines of code changed in 1 file:
update the code to use the new READER_CONTEXT structure with the
struct pubReaderStatesList *readerState field
252 lines of code changed in 4 files:
in the structure READER_CONTEXT remove:
UCHAR ucAtr[MAX_ATR_SIZE];
DWORD dwAtrLen;
DWORD dwProtocol;
DWORD dwStatus;
DWORD dwPublicID;
and replace them by a link to the reader structure:
struct pubReaderStatesList *readerState;
The fields (ATR, procotol, state) were duplicated in both structures
PREADER_STATE and READER_CONTEXT. It was useless and misleading.
It was uneasy to change the ATR or the card protocol after the card was
powered on. A protocol change may occur if the card supports both T=0
and T=1 and the SCardConnect() does not select the default protocol.
7 lines of code changed in 1 file:
in IFDStatusICC() the argument pdwProtocol was set as:
*pdwProtocol = rContext->dwProtocol;
and rContext was an input argument.
So IFDStatusICC() had _no_ action on pdwProtocol expect make a copy form
an IN parameter to an OUT parameter. This was useless and misleading.
PDWORD pdwProtocol is now removed.
22 lines of code changed in 2 files:
add a chapter "Memory structures"
50 lines of code changed in 1 file:
put back the structure name
1 lines of code changed in 1 file:
do not use a dwAllocNum argument in RFAllocateReaderSpace() since the
number of contexts is _fixed_ by the declaration of sReadersContexts[].
It may be interpreted as a (false) possibility of dynamicity and will then
cause a buffer overflow if dwAllocNum > PCSCLITE_MAX_READERS_CONTEXTS
5 lines of code changed in 3 files:
psFunctions.pvf* fields are function pointers so NULL is more appropriate
than 0
55 lines of code changed in 2 files:
correct a bug introduced in version 1.47 that occurs if a reader is
muti-slot and no more sReadersContexts[] entries are available:
RFRemoveReader() was called with a NULL lpcReader
1 lines of code changed in 1 file:
move declaration of dwContextB in the block it is used
2 lines of code changed in 1 file:
move the lpcStripReader[] declaration in the block it is used.
4 lines of code changed in 1 file:
rename the structure READER_STATES in READER_STATE (singular) since the
structure stores only the state of ONE reader
12 lines of code changed in 4 files:
correct foobar(); prototypes in foobar(void);
37 lines of code changed in 16 files:
complete the prototypes of RFSuspendAllReaders() and RFAwakeAllReaders()
4 lines of code changed in 2 files:
psCapabilites and psProtOptions fields are not used in struct
ReaderContext so "#if 0" them
7 lines of code changed in 1 file:
PHSetProtocol() correctly return the selected protocol
9 lines of code changed in 1 file:
print the Send Protocol in T=? format instead of internal representation
value.
7 lines of code changed in 1 file:
improve my previous patch: correctly print an unknown Active Protocol if
it happens
6 lines of code changed in 1 file:
add ChangeLog.cvs
1 lines of code changed in 1 file:
print the "real" active protocol in the format T=? instead of the
internal representation of that value (T=0 is coded as 1)
2 lines of code changed in 1 file:
1.2.9-beta3
1 lines of code changed in 1 file:
ChangeLog.cvs is not a .PHONY target but a real file
0 lines of code changed in 1 file:
- add documentation for LTPBundleFindValueWithKey, debug_msg and debug_xxd
- ifdhandler.h moved in PCSC/ifdhandler.h
121 lines of code changed in 1 file:
version 1.9 to add support of GNU Pth (http://www.gnu.org/software/pth/)
11 lines of code changed in 1 file:
pcsclite.h moved from src/ to src/PCSC/
1 lines of code changed in 2 files:
simplify:
#if defined(__APPLE__)
#include <PCSC/wintypes.h>
#else
#include <wintypes.h>
#endif
since we now use PCSC/ for all Unix platforms
0 lines of code changed in 4 files:
include PCSC/pcsclite.h instead of pcsclite.h
1 lines of code changed in 1 file:
src/pcsclite.h moved in src/PCSC/pcsclite.h
2 lines of code changed in 2 files:
use the new PCSC/ location for header files
83 lines of code changed in 34 files:
install the exported header files in ../include/PCSC/ to avoid name
polution in ../include/
also install parser.h
5 lines of code changed in 1 file:
use /* */ instead of // for comments
10 lines of code changed in 1 file:
rework RFSetReaderName() to simply the code and always start with the
lowest number available (like in previous pcsc-lite version)
80 lines of code changed in 1 file:
use a dynamic array for available USB drivers:
- avoid a buffer overflow (argh!)
- allow to use more than 16 drivers/supported readers
34 lines of code changed in 1 file:
replace SCARD_PROTOCOL_ANY by SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1
since SCARD_PROTOCOL_ANY is _not_ defined by Microsoft PC/SC and is not
equals to SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1
SCARD_PROTOCOL_ANY is deprecated and should not be used!
3 lines of code changed in 1 file:
improve debug messages and comments
17 lines of code changed in 1 file:
remove useless ' ' at the end of some lines
125 lines of code changed in 1 file:
- add support of specific mode by the presence of TA2 (protocol not
negociable)
- improve debug messages
54 lines of code changed in 1 file:
code reindentation and remove useless blank and { } lines
37 lines of code changed in 1 file:
make debug messages work when ATR_DEBUG is set
9 lines of code changed in 1 file:
add #include <pcsclite.h>
2 lines of code changed in 1 file:
remove two unused #define
0 lines of code changed in 1 file:
a lexer library (lex or flex) is mandatory to parse /etc/reader.conf so
exit ./configure if none is found
5 lines of code changed in 1 file:
the libpcsclite library does not compile and work without a thread library
even with --disable-threadsafe
5 lines of code changed in 2 files:
Change the names of the types LPCSTR to LPCTSTR and LPSTR to LPTSTR to be compliant with the Microsoft SCard API
2 lines of code changed in 1 file:
Add the include needed <errno.h>
1 lines of code changed in 1 file:
Add a note about 2 unused functions in the SCF part.
6 lines of code changed in 1 file:
Change the names of the types LPCSTR to LPCTSTR and LPSTR to LPTSTR to be compliant with the Microsoft SCard API
74 lines of code changed in 12 files:
Add the two inline in the declarations to avoid warning
2 lines of code changed in 1 file:
May 2004 »