Home | History | Annotate | Download | only in utils

Lines Matching full:blen

406 	size_t blen;
411 blen = sizeof(buf);
412 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) {
416 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen);
426 blen = sizeof(buf);
427 if (rlen > (int) blen) {
515 size_t blen;
619 blen = sizeof(buf);
622 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen,
632 blen = sizeof(buf);
633 if (scard_select_file(scard, SCARD_FILE_MF, buf, &blen)) {
638 blen = sizeof(buf);
639 if (scard_select_file(scard, SCARD_FILE_GSM_DF, buf, &blen)) {
658 blen = sizeof(buf);
659 if (_scard_select_file(scard, 0, buf, &blen, scard->sim_type,
670 pin_needed = scard_pin_needed(scard, buf, blen);
883 size_t blen;
892 blen = sizeof(buf);
893 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
901 buf, blen);
903 if (blen < 2 || (buf[0] != 0x6c && buf[0] != 0x67)) {
918 size_t blen = len + 3;
928 buf = os_malloc(blen);
932 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
937 if (blen != len + 2) {
940 (long) blen, (long) len + 2);
964 size_t blen = len + 3;
970 buf = os_malloc(blen);
976 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
981 if (blen != len + 2) {
984 (long) blen, (long) len + 2);
1093 size_t blen, imsilen, i;
1097 blen = sizeof(buf);
1098 if (scard_select_file(scard, SCARD_FILE_GSM_EF_IMSI, buf, &blen))
1100 if (blen < 4) {
1102 "header (len=%ld)", (long) blen);
1107 blen = WPA_GET_BE16(&buf[2]);
1110 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
1112 blen = file_size;
1114 if (blen < 2 || blen > sizeof(buf)) {
1116 (long) blen);
1120 imsilen = (blen - 2) * 2 + 1;
1122 (long) blen, (long) imsilen);
1123 if (blen < 2 || imsilen > *len) {
1128 if (scard_read_file(scard, buf, blen))
1133 for (i = 2; i < blen; i++) {
1167 size_t blen;
1171 blen = sizeof(buf);
1172 if (scard_select_file(scard, SCARD_FILE_GSM_EF_AD, buf, &blen))
1174 if (blen < 4) {
1176 "header (len=%ld)", (long) blen);
1183 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))