Lines Matching refs:resp
787 unsigned char resp[3];
814 len = sizeof(resp);
815 ret = scard_transmit(scard, cmd, cmdlen, resp, &len);
823 wpa_printf(MSG_WARNING, "SCARD: unexpected resp len "
828 if (resp[0] == 0x98 && resp[1] == 0x04) {
835 if (resp[0] == 0x6e) {
840 if (resp[0] != 0x6c && resp[0] != 0x9f && resp[0] != 0x61) {
842 "(expected 0x61, 0x6c, or 0x9f)", resp[0]);
845 /* Normal ending of command; resp[1] bytes available */
846 get_resp[4] = resp[1];
848 resp[1]);
853 *buf_len = resp[1] < rlen ? resp[1] : rlen;
999 unsigned char resp[3];
1013 len = sizeof(resp);
1014 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len);
1018 if (len != 2 || resp[0] != 0x90 || resp[1] != 0x00) {
1031 unsigned char resp[3];
1042 len = sizeof(resp);
1043 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len);
1053 val = WPA_GET_BE16(resp);
1222 unsigned char resp[3], buf[12 + 3 + 2];
1242 len = sizeof(resp);
1243 ret = scard_transmit(scard, cmd, cmdlen, resp, &len);
1248 (len != 2 || resp[0] != 0x9f || resp[1] != 0x0c)) ||
1250 (len != 2 || resp[0] != 0x61 || resp[1] != 0x0e))) {
1252 "auth request (len=%ld resp=%02x %02x)",
1253 (long) len, resp[0], resp[1]);
1256 get_resp[4] = resp[1];
1323 unsigned char resp[3], buf[64], *pos, *end;
1343 len = sizeof(resp);
1344 ret = scard_transmit(scard, cmd, sizeof(cmd), resp, &len);
1348 if (len <= sizeof(resp))
1349 wpa_hexdump(MSG_DEBUG, "SCARD: UMTS alg response", resp, len);
1351 if (len == 2 && resp[0] == 0x98 && resp[1] == 0x62) {
1355 } else if (len != 2 || resp[0] != 0x61) {
1357 "auth request (len=%ld resp=%02x %02x)",
1358 (long) len, resp[0], resp[1]);
1361 get_resp[4] = resp[1];