[Pcsclite-cvs-commit] r4330 - /trunk/HandlerTest/Host/handler_test.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jul 21 07:45:29 UTC 2009
Author: rousseau
Date: Tue Jul 21 07:45:27 2009
New Revision: 4330
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4330
Log:
exit in error if tpdu and apdu modes are both selected
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=4330&op=diff
==============================================================================
--- trunk/HandlerTest/Host/handler_test.c (original)
+++ trunk/HandlerTest/Host/handler_test.c Tue Jul 21 07:45:27 2009
@@ -206,6 +206,13 @@
}
}
+ if (apdu && tpdu)
+ {
+ printf(RED "You can't use APDU and TPDU modes at the same time" NORMAL);
+ help(argv[0]);
+ return 2;
+ }
+
if (NULL == driver)
{
printf(RED "Use -l libname or define " ENV_LIBNAME NORMAL);
More information about the Pcsclite-cvs-commit
mailing list