SCARD: Fix GSM authentication on USIM
authorSimon Baatz <gmbnomis@gmail.com>
Thu, 15 May 2014 18:10:39 +0000 (20:10 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 15 May 2014 22:01:25 +0000 (01:01 +0300)
commitc70c37500bb02ef1fb31390cd60dfedde968517b
tree1005d987990e1d3859ed94b5c6cee1d23877f581
parentd352c407e32c1eb210ce21afaf40574f0eb60bc3
SCARD: Fix GSM authentication on USIM

scard_gsm_auth() used SIM_CMD_GET_RESPONSE for both SIM and USIM. Convert
the command into USIM_CMD_GET_RESPONSE for USIM.

Since commit eb324600295 ("Fix switching from EAP-SIM to EAP-AKA/AKA'")
EAP-SIM is using the USIM if available. This triggers a probably ancient
bug in scard_gsm_auth(), which results in sending the wrong get response
command to the USIM. Thus, EAP-SIM stopped to work after this change on
USIMs that expect the proper command.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
src/utils/pcsc_funcs.c