Home | History | Annotate | Download | only in utils

Lines Matching refs:blen

414 	size_t blen;
419 blen = sizeof(buf);
420 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) {
424 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen);
434 blen = sizeof(buf);
435 if (rlen > (int) blen) {
528 size_t blen;
632 blen = sizeof(buf);
635 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen,
645 blen = sizeof(buf);
646 if (scard_select_file(scard, SCARD_FILE_MF, buf, &blen)) {
651 blen = sizeof(buf);
652 if (scard_select_file(scard, SCARD_FILE_GSM_DF, buf, &blen)) {
671 blen = sizeof(buf);
672 if (_scard_select_file(scard, 0, buf, &blen, scard->sim_type,
683 pin_needed = scard_pin_needed(scard, buf, blen);
900 size_t blen;
909 blen = sizeof(buf);
910 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
918 buf, blen);
920 if (blen < 2 || (buf[0] != 0x6c && buf[0] != 0x67)) {
935 size_t blen = len + 3;
945 buf = os_malloc(blen);
949 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
954 if (blen != len + 2) {
957 (long) blen, (long) len + 2);
981 size_t blen = len + 3;
987 buf = os_malloc(blen);
993 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
998 if (blen != len + 2) {
1001 (long) blen, (long) len + 2);
1110 size_t blen, imsilen, i;
1114 blen = sizeof(buf);
1115 if (scard_select_file(scard, SCARD_FILE_GSM_EF_IMSI, buf, &blen))
1117 if (blen < 4) {
1119 "header (len=%ld)", (long) blen);
1124 blen = WPA_GET_BE16(&buf[2]);
1127 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
1129 blen = file_size;
1131 if (blen < 2 || blen > sizeof(buf)) {
1133 (long) blen);
1137 imsilen = (blen - 2) * 2 + 1;
1139 (long) blen, (long) imsilen);
1140 if (blen < 2 || imsilen > *len) {
1145 if (scard_read_file(scard, buf, blen))
1150 for (i = 2; i < blen; i++) {
1184 size_t blen;
1188 blen = sizeof(buf);
1189 if (scard_select_file(scard, SCARD_FILE_GSM_EF_AD, buf, &blen))
1191 if (blen < 4) {
1193 "header (len=%ld)", (long) blen);
1200 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))