- 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:
okir 2003-05-14 12:00:57 +00:00
parent 9c198d7b95
commit 3ed0c2f5b1
1 changed files with 2 additions and 1 deletions

View File

@ -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;