Lines Matching refs:resp
795 unsigned char resp[3]; in _scard_select_file() local
822 len = sizeof(resp); in _scard_select_file()
823 ret = scard_transmit(scard, cmd, cmdlen, resp, &len); in _scard_select_file()
836 if (resp[0] == 0x98 && resp[1] == 0x04) { in _scard_select_file()
843 if (resp[0] == 0x6e) { in _scard_select_file()
848 if (resp[0] != 0x6c && resp[0] != 0x9f && resp[0] != 0x61) { in _scard_select_file()
850 "(expected 0x61, 0x6c, or 0x9f)", resp[0]); in _scard_select_file()
854 get_resp[4] = resp[1]; in _scard_select_file()
856 resp[1]); in _scard_select_file()
861 *buf_len = resp[1] < rlen ? resp[1] : rlen; in _scard_select_file()
1007 unsigned char resp[3]; in scard_verify_pin() local
1021 len = sizeof(resp); in scard_verify_pin()
1022 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_verify_pin()
1026 if (len != 2 || resp[0] != 0x90 || resp[1] != 0x00) { in scard_verify_pin()
1039 unsigned char resp[3]; in scard_get_pin_retry_counter() local
1050 len = sizeof(resp); in scard_get_pin_retry_counter()
1051 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_get_pin_retry_counter()
1061 val = WPA_GET_BE16(resp); in scard_get_pin_retry_counter()
1230 unsigned char resp[3], buf[12 + 3 + 2]; in scard_gsm_auth() local
1250 len = sizeof(resp); in scard_gsm_auth()
1251 ret = scard_transmit(scard, cmd, cmdlen, resp, &len); in scard_gsm_auth()
1256 (len != 2 || resp[0] != 0x9f || resp[1] != 0x0c)) || in scard_gsm_auth()
1258 (len != 2 || resp[0] != 0x61 || resp[1] != 0x0e))) { in scard_gsm_auth()
1261 (long) len, resp[0], resp[1]); in scard_gsm_auth()
1264 get_resp[4] = resp[1]; in scard_gsm_auth()
1331 unsigned char resp[3], buf[64], *pos, *end; in scard_umts_auth() local
1351 len = sizeof(resp); in scard_umts_auth()
1352 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len); in scard_umts_auth()
1356 if (len <= sizeof(resp)) in scard_umts_auth()
1357 wpa_hexdump(MSG_DEBUG, "SCARD: UMTS alg response", resp, len); in scard_umts_auth()
1359 if (len == 2 && resp[0] == 0x98 && resp[1] == 0x62) { in scard_umts_auth()
1363 } else if (len != 2 || resp[0] != 0x61) { in scard_umts_auth()
1366 (long) len, resp[0], resp[1]); in scard_umts_auth()
1369 get_resp[4] = resp[1]; in scard_umts_auth()