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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Nov 16 15:43:50 UTC 2007


Author: rousseau
Date: Fri Nov 16 15:43:50 2007
New Revision: 2696

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2696
Log:
at least one of TPDU or APDU must be specified.
TPDU readers may not like case 1 APDU

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=2696&op=diff
==============================================================================
--- trunk/HandlerTest/Host/handler_test.c (original)
+++ trunk/HandlerTest/Host/handler_test.c Fri Nov 16 15:43:50 2007
@@ -188,6 +188,12 @@
 		}
 	}
 
+	if ((FALSE == tpdu) && (FALSE == apdu))
+	{
+		printf("\33[01;31mDefine TPDU (-T) or APDU (-A)\33[0m\n");
+		return 2;
+	}
+
 	driver = getenv(ENV_LIBNAME);
 
 	if (driver == NULL)




More information about the Pcsclite-cvs-commit mailing list