Lines Matching refs:resp
812 unsigned char resp[3]; in _scard_select_file() local
839 len = sizeof(resp); in _scard_select_file()
840 ret = scard_transmit(scard, cmd, cmdlen, resp, &len); in _scard_select_file()
853 if (resp[0] == 0x98 && resp[1] == 0x04) { in _scard_select_file()
860 if (resp[0] == 0x6e) { in _scard_select_file()
865 if (resp[0] != 0x6c && resp[0] != 0x9f && resp[0] != 0x61) { in _scard_select_file()
867 "(expected 0x61, 0x6c, or 0x9f)", resp[0]); in _scard_select_file()
871 get_resp[4] = resp[1]; in _scard_select_file()
873 resp[1]); in _scard_select_file()
878 *buf_len = resp[1] < rlen ? resp[1] : rlen; in _scard_select_file()
1024 unsigned char resp[3]; in scard_verify_pin() local
1038 len = sizeof(resp); in scard_verify_pin()
1039 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_verify_pin()
1043 if (len != 2 || resp[0] != 0x90 || resp[1] != 0x00) { in scard_verify_pin()
1056 unsigned char resp[3]; in scard_get_pin_retry_counter() local
1067 len = sizeof(resp); in scard_get_pin_retry_counter()
1068 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_get_pin_retry_counter()
1078 val = WPA_GET_BE16(resp); in scard_get_pin_retry_counter()
1247 unsigned char resp[3], buf[12 + 3 + 2]; in scard_gsm_auth() local
1267 len = sizeof(resp); in scard_gsm_auth()
1268 ret = scard_transmit(scard, cmd, cmdlen, resp, &len); in scard_gsm_auth()
1273 (len != 2 || resp[0] != 0x9f || resp[1] != 0x0c)) || in scard_gsm_auth()
1275 (len != 2 || resp[0] != 0x61 || resp[1] != 0x0e))) { in scard_gsm_auth()
1278 (long) len, resp[0], resp[1]); in scard_gsm_auth()
1281 get_resp[4] = resp[1]; in scard_gsm_auth()
1348 unsigned char resp[3], buf[64], *pos, *end; in scard_umts_auth() local
1368 len = sizeof(resp); in scard_umts_auth()
1369 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_umts_auth()
1373 if (len <= sizeof(resp)) in scard_umts_auth()
1374 wpa_hexdump(MSG_DEBUG, "SCARD: UMTS alg response", resp, len); in scard_umts_auth()
1376 if (len == 2 && resp[0] == 0x98 && resp[1] == 0x62) { in scard_umts_auth()
1380 } else if (len != 2 || resp[0] != 0x61) { in scard_umts_auth()
1383 (long) len, resp[0], resp[1]); in scard_umts_auth()
1386 get_resp[4] = resp[1]; in scard_umts_auth()