- do not mess with Case 4 APDUs unless we're doing T=0
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1105 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9c198d7b95
commit
3ed0c2f5b1
|
@ -148,7 +148,8 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot,
|
|||
sRecvPci.dwProtocol = opensc_proto_to_pcsc(slot->active_protocol);
|
||||
sRecvPci.cbPciLength = sizeof(sRecvPci);
|
||||
|
||||
if (prv->gpriv->apdu_fix && sendsize >= 6) {
|
||||
if (prv->gpriv->apdu_fix && sendsize >= 6
|
||||
&& slot->active_protocol == SC_PROTO_T0) {
|
||||
/* Check if the APDU in question is of Case 4 */
|
||||
const u8 *p = sendbuf;
|
||||
int lc;
|
||||
|
|
Loading…
Reference in New Issue