• Home
  • Raw
  • Download

Lines Matching refs:vallen

1317 	u_char vallen;  local
1413 GETCHAR(vallen, inp);
1415 if (vallen < 8 || vallen > len) {
1417 vallen, len);
1424 if (len - vallen >= sizeof (rhostname)) {
1426 BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
1429 BCOPY(inp + vallen, rhostname, len - vallen);
1430 rhostname[len - vallen] = '\0';
1435 (remote_name[0] != '\0' && vallen == len))
1453 MD5_Update(&mdContext, inp, vallen);
1468 GETCHAR(vallen, inp);
1470 switch (vallen) {
1490 GETCHAR(vallen, inp);
1492 if (vallen >= len) {
1498 BCOPY(inp, rhostname, vallen);
1499 rhostname[vallen] = '\0';
1500 INCPTR(vallen, inp);
1501 len -= vallen;
1508 (remote_name[0] != '\0' && vallen == 0)) {
1518 GETCHAR(vallen, inp);
1520 if (vallen >= len) {
1527 sval.len = vallen;
1528 INCPTR(vallen, inp);
1529 len -= vallen;
1531 GETCHAR(vallen, inp);
1533 if (vallen > len) {
1540 if (vallen == 0) {
1545 gval.len = vallen;
1547 INCPTR(vallen, inp);
1548 len -= vallen;
1684 error("EAP: unknown SRP Subtype %d", vallen);
1727 u_char vallen; local
1790 GETCHAR(vallen, inp);
1799 switch (vallen) {
1811 dbglog("EAP: peer requesting unknown Type %d", vallen);
1841 GETCHAR(vallen, inp);
1843 if (vallen != 16 || vallen > len) {
1844 error("EAP: MD5-Response with bad length %d", vallen);
1850 if (len - vallen >= sizeof (rhostname)) {
1852 BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
1855 BCOPY(inp + vallen, rhostname, len - vallen);
1856 rhostname[len - vallen] = '\0';
1861 (remote_name[0] != '\0' && vallen == len))
1972 vallen = id;
1973 SHA1Update(&ctxt, &vallen, 1);
2150 int code, id, len, rtype, vallen; local
2199 GETCHAR(vallen, inp);
2201 if (vallen > len)
2203 printer(arg, " <Value%.*B>", vallen, inp);
2204 INCPTR(vallen, inp);
2205 len -= vallen;
2220 GETCHAR(vallen, inp);
2222 printer(arg, "-%d", vallen);
2223 switch (vallen) {
2225 GETCHAR(vallen, inp);
2227 if (vallen >= len)
2229 if (vallen > 0) {
2231 print_string((char *)inp, vallen, printer,
2237 INCPTR(vallen, inp);
2238 len -= vallen;
2239 GETCHAR(vallen, inp);
2241 if (vallen >= len)
2243 printer(arg, " <s%.*B>", vallen, inp);
2244 INCPTR(vallen, inp);
2245 len -= vallen;
2246 GETCHAR(vallen, inp);
2248 if (vallen > len)
2250 if (vallen == 0) {
2253 printer(arg, " <g%.*B>", vallen, inp);
2255 INCPTR(vallen, inp);
2256 len -= vallen;
2284 if ((vallen = len) > SHA_DIGESTSIZE)
2285 vallen = SHA_DIGESTSIZE;
2288 INCPTR(vallen, inp);
2289 len -= vallen;
2347 GETCHAR(vallen, inp);
2349 if (vallen > len)
2351 printer(arg, " <Value%.*B>", vallen, inp);
2352 INCPTR(vallen, inp);
2353 len -= vallen;
2368 GETCHAR(vallen, inp);
2370 printer(arg, "-%d", vallen);
2371 switch (vallen) {
2402 if ((vallen = len) > SHA_DIGESTSIZE)
2403 vallen = SHA_DIGESTSIZE;
2404 INCPTR(vallen, inp);
2405 len -= vallen;