[Pcsclite-cvs-commit] r2701 - /trunk/HandlerTest/Host/handler_test.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Nov 17 14:21:46 UTC 2007


Author: rousseau
Date: Sat Nov 17 14:21:46 2007
New Revision: 2701

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2701
Log:
use TPDU or APDU as resquested for the Time Request command

Modified:
    trunk/HandlerTest/Host/handler_test.c

Modified: trunk/HandlerTest/Host/handler_test.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/HandlerTest/Host/handler_test.c?rev=2701&op=diff
==============================================================================
--- trunk/HandlerTest/Host/handler_test.c (original)
+++ trunk/HandlerTest/Host/handler_test.c Sat Nov 17 14:21:46 2007
@@ -559,8 +559,12 @@
 		s[1] = 0x38;
 		s[2] = 0x00;
 		s[3] = time;
-
-		dwSendLength = 4;
+		s[4] = 0;
+
+		if (apdu)
+			dwSendLength = 4;
+		else
+			dwSendLength = 5;
 		dwRecvLength = sizeof(r);
 
 		e[0] = 0x90;




More information about the Pcsclite-cvs-commit mailing list