Home | History | Annotate | Download | only in utils

Lines Matching refs:blen

338 	size_t blen;
341 blen = sizeof(buf);
342 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) {
346 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen);
356 blen = sizeof(buf);
357 if (rlen > (int) blen) {
445 size_t blen;
526 blen = sizeof(buf);
531 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen,
545 blen = sizeof(buf);
546 if (scard_select_file(scard, SCARD_FILE_MF, buf, &blen)) {
551 blen = sizeof(buf);
552 if (scard_select_file(scard, SCARD_FILE_GSM_DF, buf, &blen)) {
571 blen = sizeof(buf);
572 if (_scard_select_file(scard, 0, buf, &blen, scard->sim_type,
583 pin_needed = scard_pin_needed(scard, buf, blen);
795 size_t blen;
804 blen = sizeof(buf);
805 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
813 buf, blen);
815 if (blen < 2 || buf[0] != 0x6c) {
830 size_t blen = len + 3;
840 buf = os_malloc(blen);
844 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
849 if (blen != len + 2) {
852 (long) blen, (long) len + 2);
876 size_t blen = len + 3;
882 buf = os_malloc(blen);
888 ret = scard_transmit(scard, cmd, sizeof(cmd), buf, &blen);
893 if (blen != len + 2) {
896 (long) blen, (long) len + 2);
965 size_t blen, imsilen, i;
969 blen = sizeof(buf);
970 if (scard_select_file(scard, SCARD_FILE_GSM_EF_IMSI, buf, &blen))
972 if (blen < 4) {
974 "header (len=%ld)", (long) blen);
979 blen = (buf[2] << 8) | buf[3];
982 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
984 blen = file_size;
986 if (blen < 2 || blen > sizeof(buf)) {
988 (long) blen);
992 imsilen = (blen - 2) * 2 + 1;
994 (long) blen, (long) imsilen);
995 if (blen < 2 || imsilen > *len) {
1000 if (scard_read_file(scard, buf, blen))
1005 for (i = 2; i < blen; i++) {