Hello,
On 02/03/07, Tilman Linneweh <[EMAIL PROTECTED]> wrote:
* Ludovic Rousseau [2007-02-13 21:37]:
> Changelog:
> pcsc-lite-1.4.0: Ludovic Rousseau
> 13 February 2007
> - split pcsclite.h in pcsclite.h and an internal pcscd.h. Some
> application compilations may fail but should not
So far two have been reported to me, that use stuff which is now in pcscd.h:
http://ludovic.rousseau.free.fr/softwares/pcsc-perl/ and
http://www.linuxnet.com/drivers/readers/files/ifd-test-1.0.tar.gz
What is the recommended way to fix it? Install pcscd.h with pcsc-lite or add it
to those packages?
pcsc-perl 1.4.5 correcting the bug is now available at [1].
ifd-test-1.0 is a very old project. It was/is used to test a smart
card driver with different test cards (the test card used by a
Microsoft validation test if I am right). The test cards are not
publicly available so this soft has a very limited interest.
I include a patch for ifd-test-1.0 if someone is using it :-)
Thanks for your report
[1] http://ludovic.rousseau.free.fr/softwares/pcsc-perl/index.html
--
Dr. Ludovic Rousseau
Seulement dans ifd-test-1.0.new: commands.o
Seulement dans ifd-test-1.0.new: configfile.h
Seulement dans ifd-test-1.0.new: ifdtest
diff -ru ifd-test-1.0/ifdtest.c ifd-test-1.0.new/ifdtest.c
--- ifd-test-1.0/ifdtest.c 2001-04-17 18:49:02.000000000 +0200
+++ ifd-test-1.0.new/ifdtest.c 2007-03-02 16:24:40.000000000 +0100
@@ -110,7 +110,7 @@
}
if( outfile != NULL) fp = fopen(outfile,"w");
else fp=NULL;
- rv = SCardEstablishContext( SCARD_SCOPE_GLOBAL, pcHost, NULL, &hContext
);
+ rv = SCardEstablishContext( SCARD_SCOPE_SYSTEM, pcHost, NULL, &hContext
);
if ( rv != SCARD_S_SUCCESS ) {
myprintf("ERROR :: Resource Manager not running \n");
myprintf("Please start the resource manager and try
again \n");
diff -ru ifd-test-1.0/Makefile ifd-test-1.0.new/Makefile
--- ifd-test-1.0/Makefile 2001-04-17 18:49:02.000000000 +0200
+++ ifd-test-1.0.new/Makefile 2007-03-02 16:22:15.000000000 +0100
@@ -3,8 +3,8 @@
CC = gcc
CFLAGS = -g -w
-INCLUDE = -I/usr/local/pcsc/include
-LIBS = -L/usr/local/pcsc/lib -lpcsclite
+INCLUDE = `pkg-config --cflags libpcsclite` -I.
+LIBS = `pkg-config --libs libpcsclite`
OBJS = testIBM.o testAMMI.o testSCHL.o testSIEMENS.o testBULL.o testGD.o
commands.o testA.o testB.o
Seulement dans ifd-test-1.0.new: testAMMI.o
Seulement dans ifd-test-1.0.new: testA.o
Seulement dans ifd-test-1.0.new: testB.o
Seulement dans ifd-test-1.0.new: testBULL.o
diff -ru ifd-test-1.0/testGD.c ifd-test-1.0.new/testGD.c
--- ifd-test-1.0/testGD.c 2001-04-17 18:49:01.000000000 +0200
+++ ifd-test-1.0.new/testGD.c 2007-03-02 16:23:52.000000000 +0100
@@ -12,12 +12,12 @@
//checkATR(atr);
/* Try to set T=0 protocol */
printit("Try to set protocol T0 | T1");
- rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0,SCARD_RESET,&protocol);
+ rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0,SCARD_RESET_CARD,&protocol);
if( rv != SCARD_S_SUCCESS ) {
myprintf("Failed\n");
return -1;
}
- rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T1,SCARD_RESET,&protocol);
+rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T1,SCARD_RESET_CARD,&protocol);
if( rv != SCARD_S_SUCCESS ) {
myprintf("Failed\n");
return -1;
@@ -25,7 +25,7 @@
myprintf("Passed\n");
myprintf("Test No. 1 \n");
printit("Cold reset");
- rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0,SCARD_RESET,&protocol);
+ rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0,SCARD_RESET_CARD,&protocol);
if( rv!= SCARD_S_SUCCESS ) {
myprintf("Failed\n");
return -1;
@@ -51,7 +51,7 @@
DO_TRANSMIT(SCARD_PCI_T0,0);
}
printit("Cold reset");
- rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T1,SCARD_RESET,&protocol);
+ rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T1,SCARD_RESET_CARD,&protocol);
if( rv != SCARD_S_SUCCESS ) {
myprintf("Failed\n");
return -1;
Seulement dans ifd-test-1.0.new: testGD.o
Seulement dans ifd-test-1.0.new: testIBM.o
Seulement dans ifd-test-1.0.new: testSCHL.o
diff -ru ifd-test-1.0/testSIEMENS.c ifd-test-1.0.new/testSIEMENS.c
--- ifd-test-1.0/testSIEMENS.c 2001-04-17 18:49:02.000000000 +0200
+++ ifd-test-1.0.new/testSIEMENS.c 2007-03-02 16:24:05.000000000 +0100
@@ -14,7 +14,7 @@
//checkATR(atr);
/* Try to set T=0 protocol */
printit("Try to set protocol T0");
- rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0,SCARD_RESET,&protocol);
+ rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0,SCARD_RESET_CARD,&protocol);
fflush(stdout);
fflush(stderr);
if( rv!= SCARD_S_SUCCESS ) {
@@ -28,7 +28,7 @@
myprintf("Failed\n");
}
printit("Set Protocol T=1");
- rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T1,SCARD_RESET,&protocol);
+ rv =
SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T1,SCARD_RESET_CARD,&protocol);
if( rv!= SCARD_S_SUCCESS ) {
myprintf("Failed\n");
return -1;
Seulement dans ifd-test-1.0.new: testSIEMENS.o
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle