Home
last modified time | relevance | path

Searched refs:nlen (Results 1 – 25 of 26) sorted by relevance

12

/external/ppp/pppd/
Dchap-new.c285 int clen = 1, nlen, len; in chap_generate_challenge() local
293 nlen = strlen(ss->name); in chap_generate_challenge()
294 memcpy(p + 1 + clen, ss->name, nlen); in chap_generate_challenge()
296 len = CHAP_HDRLEN + 1 + clen + nlen; in chap_generate_challenge()
426 int clen, nlen; in chap_respond() local
438 nlen = len - (clen + 1); in chap_respond()
441 slprintf(rname, sizeof(rname), "%.*v", nlen, pkt + clen + 1); in chap_respond()
462 nlen = strlen(cs->name); in chap_respond()
463 memcpy(p + clen + 1, cs->name, nlen); in chap_respond()
466 len = CHAP_HDRLEN + clen + 1 + nlen; in chap_respond()
[all …]
/external/openssl/crypto/x509v3/
Dv3_info.c108 int i,nlen; variable
117 nlen = strlen(objtmp) + strlen(vtmp->name) + 5;
118 ntmp = OPENSSL_malloc(nlen);
124 BUF_strlcpy(ntmp, objtmp, nlen);
125 BUF_strlcat(ntmp, " - ", nlen);
126 BUF_strlcat(ntmp, vtmp->name, nlen);
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Deap_ikev2_common.c30 size_t nlen; in eap_ikev2_derive_keymat() local
36 nlen = i_nonce_len + r_nonce_len; in eap_ikev2_derive_keymat()
37 nonces = os_malloc(nlen); in eap_ikev2_derive_keymat()
43 if (ikev2_prf_plus(prf, keys->SK_d, keys->SK_d_len, nonces, nlen, in eap_ikev2_derive_keymat()
/external/tcpdump/
Daddrtoname.c354 lookup_bytestring(register const u_char *bs, const unsigned int nlen) in lookup_bytestring() argument
359 if (nlen >= 6) { in lookup_bytestring()
363 } else if (nlen >= 4) { in lookup_bytestring()
375 memcmp((const char *)bs, (const char *)(tp->e_bs), nlen) == 0) in lookup_bytestring()
384 tp->e_bs = (u_char *) calloc(1, nlen + 1); in lookup_bytestring()
385 memcpy(tp->e_bs, bs, nlen); in lookup_bytestring()
399 unsigned int nlen = *nsap; in lookup_nsap() local
401 const u_char *ensap = nsap + nlen - 6; in lookup_nsap()
403 if (nlen > 6) { in lookup_nsap()
416 tp->e_nsap[0] == nlen && in lookup_nsap()
[all …]
/external/zlib/contrib/puff/
Dpuff.c647 int nlen, ndist, ncode; /* number of lengths in descriptor */ in dynamic() local
664 nlen = bits(s, 5) + 257; in dynamic()
667 if (nlen > MAXLCODES || ndist > MAXDCODES) in dynamic()
682 while (index < nlen + ndist) { in dynamic()
700 if (index + symbol > nlen + ndist) in dynamic()
712 err = construct(&lencode, lengths, nlen); in dynamic()
713 if (err < 0 || (err > 0 && nlen - lencode.count[0] != 1)) in dynamic()
717 err = construct(&distcode, lengths + nlen, ndist); in dynamic()
/external/zlib/contrib/infback9/
Dinfback9.c349 state->nlen = BITS(5) + 257;
355 if (state->nlen > 286) {
385 while (state->have < state->nlen + state->ndist) {
423 if (state->have + copy > state->nlen + state->ndist) {
449 ret = inflate_table9(LENS, state->lens, state->nlen,
458 ret = inflate_table9(DISTS, state->lens + state->nlen,
Dinflate9.h40 unsigned nlen; /* number of length code lengths */ member
/external/zlib/
Dinfback.c352 state->nlen = BITS(5) + 257;
359 if (state->nlen > 286 || state->ndist > 30) {
390 while (state->have < state->nlen + state->ndist) {
428 if (state->have + copy > state->nlen + state->ndist) {
454 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
463 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
Dinflate.h112 unsigned nlen; /* number of length code lengths */ member
Dinflate.c883 state->nlen = BITS(5) + 257;
890 if (state->nlen > 286 || state->ndist > 30) {
921 while (state->have < state->nlen + state->ndist) {
959 if (state->have + copy > state->nlen + state->ndist) {
985 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
994 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
/external/qemu/distrib/zlib-1.2.3/
Dinfback.c352 state->nlen = BITS(5) + 257;
359 if (state->nlen > 286 || state->ndist > 30) {
390 while (state->have < state->nlen + state->ndist) {
428 if (state->have + copy > state->nlen + state->ndist) {
445 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
454 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
Dinflate.h108 unsigned nlen; /* number of length code lengths */ member
Dinflate.c839 state->nlen = BITS(5) + 257;
846 if (state->nlen > 286 || state->ndist > 30) {
877 while (state->have < state->nlen + state->ndist) {
915 if (state->have + copy > state->nlen + state->ndist) {
932 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
941 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
/external/chromium/third_party/zlib/
Dinfback.c352 state->nlen = BITS(5) + 257;
359 if (state->nlen > 286 || state->ndist > 30) {
390 while (state->have < state->nlen + state->ndist) {
428 if (state->have + copy > state->nlen + state->ndist) {
445 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
454 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
Dinflate.h108 unsigned nlen; /* number of length code lengths */ member
Dinflate.c839 state->nlen = BITS(5) + 257;
846 if (state->nlen > 286 || state->ndist > 30) {
877 while (state->have < state->nlen + state->ndist) {
915 if (state->have + copy > state->nlen + state->ndist) {
932 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
941 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
/external/strace/
Dsystem.c1830 size = sizeof (int) * (unsigned long) info.nlen;
1831 name = (size / sizeof (int) != info.nlen) ? NULL : malloc (size);
1837 info.name, info.nlen, info.oldval,
1847 if (info.nlen == 0)
1852 if (info.nlen == 1)
1870 if (info.nlen == 2)
1888 if (info.nlen == 3)
1912 if (info.nlen == 3)
1933 max_cnt = abbrev(tcp) ? max_strlen : info.nlen;
1936 if (cnt < info.nlen)
[all …]
/external/openssl/crypto/pem/
Dpem_lib.c592 int nlen,n,i,j,outl; in PEM_write_bio() local
598 nlen=strlen(name); in PEM_write_bio()
601 (BIO_write(bp,name,nlen) != nlen) || in PEM_write_bio()
637 (BIO_write(bp,name,nlen) != nlen) || in PEM_write_bio()
/external/wpa_supplicant/
Dradius.c386 int nlen = msg->attr_size * 2; in radius_msg_add_attr_to_array() local
388 nattrs = os_realloc(msg->attrs, nlen * sizeof(*msg->attrs)); in radius_msg_add_attr_to_array()
393 msg->attr_size = nlen; in radius_msg_add_attr_to_array()
419 size_t i, nlen = msg->buf_size; in radius_msg_add_attr() local
422 while (nlen < buf_needed) in radius_msg_add_attr()
423 nlen *= 2; in radius_msg_add_attr()
424 nbuf = os_realloc(msg->buf, nlen); in radius_msg_add_attr()
434 os_memset(msg->buf + msg->buf_size, 0, nlen - msg->buf_size); in radius_msg_add_attr()
435 msg->buf_size = nlen; in radius_msg_add_attr()
/external/wpa_supplicant_6/wpa_supplicant/src/radius/
Dradius.c394 int nlen = msg->attr_size * 2; in radius_msg_add_attr_to_array() local
397 nlen * sizeof(*msg->attr_pos)); in radius_msg_add_attr_to_array()
402 msg->attr_size = nlen; in radius_msg_add_attr_to_array()
428 size_t nlen = msg->buf_size; in radius_msg_add_attr() local
430 while (nlen < buf_needed) in radius_msg_add_attr()
431 nlen *= 2; in radius_msg_add_attr()
432 nbuf = os_realloc(msg->buf, nlen); in radius_msg_add_attr()
437 os_memset(msg->buf + msg->buf_size, 0, nlen - msg->buf_size); in radius_msg_add_attr()
438 msg->buf_size = nlen; in radius_msg_add_attr()
/external/kernel-headers/original/linux/
Dsysctl.h35 int nlen; member
911 typedef int ctl_handler (ctl_table *table, int __user *name, int nlen,
938 extern int do_sysctl (int __user *name, int nlen,
943 int __user *name, int nlen,
/external/clearsilver/util/
Dneo_hdf.c56 static NEOERR *_alloc_hdf (HDF **hdf, const char *name, size_t nlen, in _alloc_hdf() argument
69 (*hdf)->name_len = nlen; in _alloc_hdf()
70 (*hdf)->name = (char *) malloc (nlen + 1); in _alloc_hdf()
78 strncpy((*hdf)->name, name, nlen); in _alloc_hdf()
79 (*hdf)->name[nlen] = '\0'; in _alloc_hdf()
1095 int nlen; in gen_ml_break() local
1099 nlen = 2 + neo_rand(len-5); in gen_ml_break()
1100 if (nlen == 0) in gen_ml_break()
1102 nlen = len / 2; in gen_ml_break()
1104 while (nlen) in gen_ml_break()
[all …]
/external/genext2fs/
Dgenext2fs.c1254 int reclen, nlen; in add2dir() local
1265 nlen = strlen(name); in add2dir()
1266 reclen = sizeof(directory) + rndup(nlen, 4); in add2dir()
1282 d->d_name_len = nlen; in add2dir()
1283 strncpy(d->d_name, name, nlen); in add2dir()
1297 d->d_name_len = nlen; in add2dir()
1298 strncpy(d->d_name, name, nlen); in add2dir()
1311 d->d_name_len = nlen; in add2dir()
1312 strncpy(d->d_name, name, nlen); in add2dir()
1324 int nlen = strlen(name); in find_dir() local
[all …]
/external/clearsilver/python/
Dneo_util.c345 int nlen = 0; in p_hdf_set_value() local
348 if (!PyArg_ParseTuple(args, "s#s#:setValue(name, value)", &name, &nlen, &value, &vlen)) in p_hdf_set_value()
/external/qemu/
Dmonitor.c2389 char *cmdname, size_t nlen) in get_command_name() argument
2403 if (len > nlen - 1) in get_command_name()
2404 len = nlen - 1; in get_command_name()

12