suppress errors when verifying PIN status

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3809 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2009-11-07 20:45:16 +00:00
parent 8681d963ab
commit 435862ee1e

View File

@ -1623,7 +1623,11 @@ auth_is_verified(struct sc_card *card, int pin_reference, int *tries_left)
apdu.sw2 = 0x83; apdu.sw2 = 0x83;
} }
return sc_check_sw(card, apdu.sw1, apdu.sw2); sc_ctx_suppress_errors_on(card->ctx);
rv = sc_check_sw(card, apdu.sw1, apdu.sw2);
sc_ctx_suppress_errors_off(card->ctx);
return rv;
} }