[Pcsclite-cvs-commit] CVS PCSC/src
CVS User rousseau
ludovic.rousseau@free.fr
Tue, 07 Sep 2004 15:36:44 -0600
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv4993
Modified Files:
musclecard.c
Log Message:
convert MSC_INCORRECT_P1/P2 to the corresponding text error message
(instead of "Unknown SW").
Thanks to Bruce Barnett for the patch.
--- /cvsroot/pcsclite/PCSC/src/musclecard.c 2004/08/06 12:12:20 1.40
+++ /cvsroot/pcsclite/PCSC/src/musclecard.c 2004/09/07 21:36:44 1.41
@@ -10,7 +10,7 @@
* You may not remove this header from this file without
* prior permission from the author.
*
- * $Id: musclecard.c,v 1.40 2004/08/06 12:12:20 rousseau Exp $
+ * $Id: musclecard.c,v 1.41 2004/09/07 21:36:44 rousseau Exp $
*/
#include "config.h"
@@ -1879,6 +1879,12 @@
case MSC_INVALID_PARAMETER:
strncpy(message, "Invalid parameter", sizeof(message));
break;
+ case MSC_INCORRECT_P1:
+ strncpy(message, "Incorrect P1 parameter", sizeof(message));
+ break;
+ case MSC_INCORRECT_P2:
+ strncpy(message, "Incorrect P2 parameter", sizeof(message));
+ break;
case MSC_SEQUENCE_END:
strncpy(message, "End of sequence", sizeof(message));
break;