]> git.ipfire.org Git - thirdparty/hostap.git/commit
PCSC: Accept 0x67 (Wrong length) as a response to READ RECORD
authorJouni Malinen <j@w1.fi>
Sun, 18 Dec 2011 12:44:03 +0000 (14:44 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 18 Dec 2011 12:44:03 +0000 (14:44 +0200)
commitf2fe5b366337a274a42ab049e0b5673f527d3c5d
treef9ff31a299e0c964794e72324bfbeec648636647
parent90b8fc8f4eeb8f8aa90efb6d76361f55e66d67c2
PCSC: Accept 0x67 (Wrong length) as a response to READ RECORD

It looks like some USIM cards respond with 0x67 (Wrong length) instead
of 0x6c to 00 b2 01 04 ff. This was getting rejected in
scard_get_record_len(). ETSI TS 102 221 is not very clear on this
detail, but it looks fine to accept the 0x67 error value, too, to learn
the record length.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/utils/pcsc_funcs.c