Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 25 of 56) sorted by relevance

123

/external/wpa_supplicant_6/wpa_supplicant/src/utils/
Dpcsc_funcs.c338 size_t blen; in scard_get_aid() local
341 blen = sizeof(buf); in scard_get_aid()
342 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) { in scard_get_aid()
346 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen); in scard_get_aid()
356 blen = sizeof(buf); in scard_get_aid()
357 if (rlen > (int) blen) { in scard_get_aid()
445 size_t blen; in scard_init() local
526 blen = sizeof(buf); in scard_init()
531 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen, in scard_init()
545 blen = sizeof(buf); in scard_init()
[all …]
Dwpabuf.c184 size_t blen; in wpabuf_zeropad() local
189 blen = wpabuf_len(buf); in wpabuf_zeropad()
190 if (blen >= len) in wpabuf_zeropad()
195 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
/external/wpa_supplicant/
Dpcsc_funcs.c338 size_t blen; in scard_get_aid() local
341 blen = sizeof(buf); in scard_get_aid()
342 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) { in scard_get_aid()
346 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen); in scard_get_aid()
356 blen = sizeof(buf); in scard_get_aid()
357 if (rlen > (int) blen) { in scard_get_aid()
445 size_t blen; in scard_init() local
526 blen = sizeof(buf); in scard_init()
531 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen, in scard_init()
545 blen = sizeof(buf); in scard_init()
[all …]
Ddriver_prism54.c68 size_t blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + wpa_ie_len; in wpa_driver_prism54_set_wpa_ie() local
69 if (blen < sizeof(*param)) in wpa_driver_prism54_set_wpa_ie()
70 blen = sizeof(*param); in wpa_driver_prism54_set_wpa_ie()
72 param = os_zalloc(blen); in wpa_driver_prism54_set_wpa_ie()
79 res = hostapd_ioctl_prism54(drv, param, blen, 1); in wpa_driver_prism54_set_wpa_ie()
93 size_t blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN; in wpa_driver_prism54_set_wpa() local
94 if (blen < sizeof(*param)) in wpa_driver_prism54_set_wpa()
95 blen = sizeof(*param); in wpa_driver_prism54_set_wpa()
97 param = os_zalloc(blen); in wpa_driver_prism54_set_wpa()
103 res = hostapd_ioctl_prism54(drv, param, blen, 1); in wpa_driver_prism54_set_wpa()
[all …]
Ddriver_atmel.c150 size_t blen = ATMEL_GENERIC_ELEMENT_HDR_LEN + wpa_ie_len;
151 if (blen < sizeof(*param))
152 blen = sizeof(*param);
154 param = os_zalloc(blen);
161 res = atmel_ioctl(drv, param, blen, 1);
203 size_t blen; in wpa_driver_atmel_set_key() local
234 blen = sizeof(*param) + key_len; in wpa_driver_atmel_set_key()
235 buf = os_zalloc(blen); in wpa_driver_atmel_set_key()
256 if (atmel_ioctl(drv, param, blen, 1)) { in wpa_driver_atmel_set_key()
Ddriver_hostap.c64 size_t blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + wpa_ie_len; in wpa_driver_hostap_set_wpa_ie() local
65 if (blen < sizeof(*param)) in wpa_driver_hostap_set_wpa_ie()
66 blen = sizeof(*param); in wpa_driver_hostap_set_wpa_ie()
68 param = os_zalloc(blen); in wpa_driver_hostap_set_wpa_ie()
75 res = hostapd_ioctl(drv, param, blen, 1); in wpa_driver_hostap_set_wpa_ie()
160 size_t blen; in wpa_driver_hostap_set_key() local
188 blen = sizeof(*param) + key_len; in wpa_driver_hostap_set_key()
189 buf = os_zalloc(blen); in wpa_driver_hostap_set_key()
218 if (hostapd_ioctl(drv, param, blen, 1)) { in wpa_driver_hostap_set_key()
Dwin_if_list.c83 size_t blen = sizeof(*b) + 1024; in ndisuio_query_bindings() local
90 b = malloc(blen); in ndisuio_query_bindings()
95 memset(b, 0, blen); in ndisuio_query_bindings()
99 (DWORD) blen, &written, NULL)) { in ndisuio_query_bindings()
Ddriver_ipw.c155 size_t blen = sizeof(*param) + wpa_ie_len; in ipw_set_wpa_ie() local
157 param = os_zalloc(blen); in ipw_set_wpa_ie()
165 ret = ipw_ioctl(drv, param, blen, 1); in ipw_set_wpa_ie()
226 size_t blen; in wpa_driver_ipw_set_key() local
254 blen = sizeof(*param) + key_len; in wpa_driver_ipw_set_key()
255 buf = os_zalloc(blen); in wpa_driver_ipw_set_key()
270 if (ipw_ioctl(drv, param, blen, 1)) { in wpa_driver_ipw_set_key()
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_prism54.c66 size_t blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + wpa_ie_len; in wpa_driver_prism54_set_wpa_ie() local
67 if (blen < sizeof(*param)) in wpa_driver_prism54_set_wpa_ie()
68 blen = sizeof(*param); in wpa_driver_prism54_set_wpa_ie()
70 param = os_zalloc(blen); in wpa_driver_prism54_set_wpa_ie()
77 res = hostapd_ioctl_prism54(drv, param, blen, 1); in wpa_driver_prism54_set_wpa_ie()
91 size_t blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN; in wpa_driver_prism54_set_wpa() local
92 if (blen < sizeof(*param)) in wpa_driver_prism54_set_wpa()
93 blen = sizeof(*param); in wpa_driver_prism54_set_wpa()
95 param = os_zalloc(blen); in wpa_driver_prism54_set_wpa()
101 res = hostapd_ioctl_prism54(drv, param, blen, 1); in wpa_driver_prism54_set_wpa()
[all …]
Ddriver_atmel.c149 size_t blen = ATMEL_GENERIC_ELEMENT_HDR_LEN + wpa_ie_len;
150 if (blen < sizeof(*param))
151 blen = sizeof(*param);
153 param = os_zalloc(blen);
160 res = atmel_ioctl(drv, param, blen, 1);
202 size_t blen; in wpa_driver_atmel_set_key() local
233 blen = sizeof(*param) + key_len; in wpa_driver_atmel_set_key()
234 buf = os_zalloc(blen); in wpa_driver_atmel_set_key()
255 if (atmel_ioctl(drv, param, blen, 1)) { in wpa_driver_atmel_set_key()
Ddriver_hostap.c62 size_t blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + wpa_ie_len; in wpa_driver_hostap_set_wpa_ie() local
63 if (blen < sizeof(*param)) in wpa_driver_hostap_set_wpa_ie()
64 blen = sizeof(*param); in wpa_driver_hostap_set_wpa_ie()
66 param = os_zalloc(blen); in wpa_driver_hostap_set_wpa_ie()
73 res = hostapd_ioctl(drv, param, blen, 1); in wpa_driver_hostap_set_wpa_ie()
158 size_t blen; in wpa_driver_hostap_set_key() local
186 blen = sizeof(*param) + key_len; in wpa_driver_hostap_set_key()
187 buf = os_zalloc(blen); in wpa_driver_hostap_set_key()
216 if (hostapd_ioctl(drv, param, blen, 1)) { in wpa_driver_hostap_set_key()
Ddriver_ipw.c153 size_t blen = sizeof(*param) + wpa_ie_len; in ipw_set_wpa_ie() local
155 param = os_zalloc(blen); in ipw_set_wpa_ie()
163 ret = ipw_ioctl(drv, param, blen, 1); in ipw_set_wpa_ie()
224 size_t blen; in wpa_driver_ipw_set_key() local
252 blen = sizeof(*param) + key_len; in wpa_driver_ipw_set_key()
253 buf = os_zalloc(blen); in wpa_driver_ipw_set_key()
268 if (ipw_ioctl(drv, param, blen, 1)) { in wpa_driver_ipw_set_key()
/external/svox/pico/lib/
Dpicodata.c53 picoos_uint16 *blen);
57 picoos_uint16 *blen, const picoos_uint8 issd);
83 picoos_uint16 *blen);
87 picoos_uint16 *blen, const picoos_uint8 issd);
178 picoos_uint16 *blen, const picoos_uint8 issd) in data_cbGetItem() argument
183 *blen = 0; in data_cbGetItem()
192 *blen = PICODATA_ITEM_HEADSIZE + (picoos_uint8)(this->buf[((this->front) + in data_cbGetItem()
201 for (i=0; i<*blen; i++) { in data_cbGetItem()
206 *blen = 0; in data_cbGetItem()
211 if (*blen > this->len) { /* item in cb not complete? */ in data_cbGetItem()
[all …]
/external/iproute2/lib/
Dll_addr.c32 const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen) in ll_addr_n2a() argument
39 return inet_ntop(AF_INET, addr, buf, blen); in ll_addr_n2a()
42 return inet_ntop(AF_INET6, addr, buf, blen); in ll_addr_n2a()
47 snprintf(buf+l, blen, "%02x", addr[i]); in ll_addr_n2a()
48 blen -= 2; in ll_addr_n2a()
51 snprintf(buf+l, blen, ":%02x", addr[i]); in ll_addr_n2a()
52 blen -= 3; in ll_addr_n2a()
Dutils.c631 char *hexstring_n2a(const __u8 *str, int len, char *buf, int blen) in hexstring_n2a() argument
637 if (blen < 3) in hexstring_n2a()
641 blen -= 2; in hexstring_n2a()
642 if (i != len-1 && blen > 1) { in hexstring_n2a()
644 blen--; in hexstring_n2a()
650 __u8* hexstring_a2n(const char *str, __u8 *buf, int blen) in hexstring_a2n() argument
675 if (cnt < blen) { in hexstring_a2n()
683 if (cnt < blen) in hexstring_a2n()
684 memset(buf+cnt, 0, blen-cnt); in hexstring_a2n()
/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
Dder_decode_bit_string.c32 unsigned long dlen, blen, x, y; in der_decode_bit_string() local
77 blen = ((dlen - 1) << 3) - (in[x++] & 7); in der_decode_bit_string()
80 if (blen > *outlen) { in der_decode_bit_string()
81 *outlen = blen; in der_decode_bit_string()
86 for (y = 0; y < blen; y++) { in der_decode_bit_string()
94 *outlen = blen; in der_decode_bit_string()
/external/libxml2/
Dnanohttp.c1275 int blen, ret; in xmlNanoHTTPMethodRedir() local
1313 blen = strlen(ctxt->hostname) * 2 + 16; in xmlNanoHTTPMethodRedir()
1317 blen = strlen(ctxt->hostname); in xmlNanoHTTPMethodRedir()
1330 blen += 36; in xmlNanoHTTPMethodRedir()
1333 blen += strlen(headers) + 2; in xmlNanoHTTPMethodRedir()
1336 blen += strlen(*contentType) + 16; in xmlNanoHTTPMethodRedir()
1339 blen += strlen(ctxt->query) + 1; in xmlNanoHTTPMethodRedir()
1340 blen += strlen(method) + strlen(ctxt->path) + 24; in xmlNanoHTTPMethodRedir()
1343 blen += 23; in xmlNanoHTTPMethodRedir()
1348 blen += 12; in xmlNanoHTTPMethodRedir()
[all …]
/external/ipsec-tools/src/racoon/
Dpolicy.c444 int blen, i; local
446 blen = sizeof(buf) - 1;
456 i = snprintf(p, blen, "%s/%d[%s ", a, spidx->prefs, b);
457 if (i < 0 || i >= blen)
460 blen -= i;
469 i = snprintf(p, blen, "%s/%d[%s ", a, spidx->prefd, b);
470 if (i < 0 || i >= blen)
473 blen -= i;
475 i = snprintf(p, blen, "proto=%s dir=%s",
481 blen -= i;
[all …]
/external/clearsilver/util/
Dneo_net.c520 NEOERR *ne_net_read_binary(NSOCK *sock, UINT8 **b, int *blen) in ne_net_read_binary() argument
534 if (blen != NULL) *blen = l; in ne_net_read_binary()
566 if (blen != NULL) *blen = l; in ne_net_read_binary()
592 NEOERR *ne_net_write(NSOCK *sock, const char *b, int blen) in ne_net_write() argument
598 x = blen; in ne_net_write()
612 memcpy(sock->obuf + sock->ol, b + blen - x, l); in ne_net_write()
636 NEOERR *ne_net_write_binary(NSOCK *sock, const char *b, int blen) in ne_net_write_binary() argument
641 if (b == NULL) blen = -1; in ne_net_write_binary()
643 snprintf(buf, sizeof(buf), "%d:", blen); in ne_net_write_binary()
647 if (blen > 0) in ne_net_write_binary()
[all …]
Dneo_net.h44 NEOERR *ne_net_read_binary(NSOCK *sock, UINT8 **b, int *blen);
47 NEOERR *ne_net_write(NSOCK *sock, const char *b, int blen);
49 NEOERR *ne_net_write_binary(NSOCK *sock, const char *b, int blen);
/external/wpa_supplicant_6/wpa_supplicant/
Dwin_if_list.c83 size_t blen = sizeof(*b) + 1024; in ndisuio_query_bindings() local
90 b = malloc(blen); in ndisuio_query_bindings()
95 memset(b, 0, blen); in ndisuio_query_bindings()
99 (DWORD) blen, &written, NULL)) { in ndisuio_query_bindings()
/external/openssl/crypto/bio/
Dbss_mem.c172 int blen; in mem_write() local
188 blen=bm->length; in mem_write()
189 if (BUF_MEM_grow_clean(bm,blen+inl) != (blen+inl)) in mem_write()
191 memcpy(&(bm->data[blen]),in,inl); in mem_write()
/external/webkit/JavaScriptCore/tests/mozilla/js1_2/Array/
Dtostring_1.js108 for ( blen=0; blen<999; blen++) {
/external/openssl/crypto/asn1/
Dasn_mime.c103 static int mime_bound_check(char *line, int linelen, char *bound, int blen);
607 int len, blen; in multi_split() local
613 blen = strlen(bound); in multi_split()
620 state = mime_bound_check(linebuf, len, bound, blen); in multi_split()
912 static int mime_bound_check(char *line, int linelen, char *bound, int blen) in mime_bound_check() argument
915 if(blen == -1) blen = strlen(bound); in mime_bound_check()
917 if(blen + 2 > linelen) return 0; in mime_bound_check()
919 if(!strncmp(line, "--", 2) && !strncmp(line + 2, bound, blen)) { in mime_bound_check()
920 if(!strncmp(line + blen + 2, "--", 2)) return 2; in mime_bound_check()
/external/grub/netboot/
Dsk_g16.h146 volatile short blen; /* Buffer Length (two's complement) */ member
164 unsigned short blen; /* Buffer Length (two's complement) */ member

123