Home
last modified time | relevance | path

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

/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/zlib/contrib/puff/
Dpuff.c628 int nlen, ndist, ncode; /* number of lengths in descriptor */ in dynamic() local
640 nlen = bits(s, 5) + 257; in dynamic()
643 if (nlen > MAXLCODES || ndist > MAXDCODES) in dynamic()
658 while (index < nlen + ndist) { in dynamic()
676 if (index + symbol > nlen + ndist) in dynamic()
684 err = construct(&lencode, lengths, nlen); in dynamic()
685 if (err < 0 || (err > 0 && nlen - lencode.count[0] != 1)) in dynamic()
689 err = construct(&distcode, lengths + nlen, ndist); in dynamic()
/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/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) {
440 ret = inflate_table9(LENS, state->lens, state->nlen,
449 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) {
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/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/webkit/WebCore/platform/image-decoders/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.c541 int nlen,n,i,j,outl; in PEM_write_bio() local
547 nlen=strlen(name); in PEM_write_bio()
550 (BIO_write(bp,name,nlen) != nlen) || in PEM_write_bio()
586 (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/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/libpcap/
Dgencode.c5268 register int nlen, mlen; local
5271 nlen = __pcap_atoin(s1, &n);
5273 n <<= 32 - nlen;