Hello,
I have a card that looks like a setcos but is not.
src/libopensc/card-setcos.c has a function setcos_match_card() to find
if the card is supported or not by sending the APDU: 00 CA DF 30 05
My card respond with: DF 30 05 76 32 2E 30 31 90 00 (.0.v2.01.. in
ASCII) and OpenSC logs the error:
[opensc-tool] card-setcos.c:128:setcos_match_card: SetCOS EID applet
�0v2 is not supported
I propose to change the log level from error to warning.
proposed patch:
Index: src/libopensc/card-setcos.c
===================================================================
--- src/libopensc/card-setcos.c (révision 3290)
+++ src/libopensc/card-setcos.c (copie de travail)
@@ -125,7 +125,7 @@ static int setcos_match_card(sc_card_t *
card->type = SC_CARD_TYPE_SETCOS_EID_V2_1;
else {
buf[sizeof(buf) - 1] = '\0';
- sc_error(card->ctx, "SetCOS EID applet %s is not
supported", (char *) buf);
+ sc_debug(card->ctx, "SetCOS EID applet %s is not
supported", (char *) buf);
return 0;
}
return 1;
Any comment or objection?
bye
--
Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel