Home | History | Annotate | Download | only in utils

Lines Matching full:blen

332 	size_t blen;
335 blen = sizeof(buf);
336 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) {
340 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen);
350 blen = sizeof(buf);
351 if (rlen > (int) blen) {
439 size_t blen;
520 blen = sizeof(buf);
525 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen,
539 blen = sizeof(buf);
540 if (scard_select_file(scard, SCARD_FILE_MF, buf, &blen)) {
545 blen = sizeof(buf);
546 if (scard_select_file(scard, SCARD_FILE_GSM_DF, buf, &blen)) {
565 blen = sizeof(buf);
566 if (_scard_select_file(scard, 0, buf, &blen, scard->sim_type,
577 pin_needed = scard_pin_needed(scard, buf, blen);
789 size_t blen;
798 blen = sizeof(buf);
799 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
807 buf, blen);
809 if (blen < 2 || (buf[0] != 0x6c && buf[0] != 0x67)) {
824 size_t blen = len + 3;
834 buf = os_malloc(blen);
838 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
843 if (blen != len + 2) {
846 (long) blen, (long) len + 2);
870 size_t blen = len + 3;
876 buf = os_malloc(blen);
882 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
887 if (blen != len + 2) {
890 (long) blen, (long) len + 2);
959 size_t blen, imsilen, i;
963 blen = sizeof(buf);
964 if (scard_select_file(scard, SCARD_FILE_GSM_EF_IMSI, buf, &blen))
966 if (blen < 4) {
968 "header (len=%ld)", (long) blen);
973 blen = (buf[2] << 8) | buf[3];
976 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
978 blen = file_size;
980 if (blen < 2 || blen > sizeof(buf)) {
982 (long) blen);
986 imsilen = (blen - 2) * 2 + 1;
988 (long) blen, (long) imsilen);
989 if (blen < 2 || imsilen > *len) {
994 if (scard_read_file(scard, buf, blen))
999 for (i = 2; i < blen; i++) {
1033 size_t blen;
1037 blen = sizeof(buf);
1038 if (scard_select_file(scard, SCARD_FILE_GSM_EF_AD, buf, &blen))
1040 if (blen < 4) {
1042 "header (len=%ld)", (long) blen);
1049 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))