2009/7/10 john bougs <[email protected]>:
> I have been trying to get pcsc-lite running on a sheeva plug (arm) computer 
> with an acr122u reader without much success.  I have tried pcsc-lite 1.5.4 
> and 1.5.3 without much success.  I always get a "pcscd: 
> winscard_svc.c:816:MSGCheckHandleAssociation() Client failed to authenticate" 
> when I try accessing the card.  I have tried the same configuration on my 
> desktop (1.5.3) and had no problems.  Any suggestions?

> Testing SCardControl            : RPC transport error. (don't panic)

The problem only occurs with SCardControl(). That is strange and I
will need your help/time to debug the problem.

Can you apply the attached patch and try again.
I will need the output of pcscd and testpcsc as you did in the first mail.

Bye

-- 
 Dr. Ludovic Rousseau
Index: src/winscard_svc.c
===================================================================
--- src/winscard_svc.c  (révision 4314)
+++ src/winscard_svc.c  (copie de travail)
@@ -595,6 +595,7 @@ static LONG MSGFunctionDemarshall(pshare
                        unsigned char pbRecvBuffer[MAX_BUFFER_SIZE_EXTENDED];
 
                        cteStr = ((control_struct_extended *) msgStruct->data);
+                       printf("hCard: %X\n", cteStr->hCard);
                        rv = MSGCheckHandleAssociation(cteStr->hCard, 
dwContextIndex);
                        if (rv != 0) return rv;
 
Index: src/winscard_clnt.c
===================================================================
--- src/winscard_clnt.c (révision 4314)
+++ src/winscard_clnt.c (copie de travail)
@@ -2427,6 +2427,7 @@ LONG SCardControl(SCARDHANDLE hCard, DWO
                control_struct_extended *scControlStructExtended = 
(control_struct_extended *)buffer;
                sharedSegmentMsg *pmsgStruct = (psharedSegmentMsg)buffer;
 
+               printf("hCard: %lX\n", hCard);
                scControlStructExtended->hCard = hCard;
                scControlStructExtended->dwControlCode = dwControlCode;
                scControlStructExtended->cbSendLength = cbSendLength;
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to