Lines Matching refs:inp
115 static void eap_input __P((int unit, u_char *inp, int inlen));
119 static int eap_printpkt __P((u_char *inp, int inlen,
345 b64enc(bs, inp, inlen, outp) in b64enc() argument
347 u_char *inp;
354 bs->bs_bits = (bs->bs_bits << 8) | *inp++;
393 b64dec(bs, inp, inlen, outp) in b64dec() argument
395 u_char *inp;
403 if ((cp = strchr(base64, *inp++)) == NULL)
1248 write_pseudonym(esp, inp, len, id) in write_pseudonym() argument
1250 u_char *inp;
1268 datp = inp + len;
1284 if (olen <= 0 || *inp + 1 > olen) {
1285 dbglog("EAP: decoded pseudonym is unusable <%.*B>", olen, inp);
1295 len = write(fd, inp + 1, *inp);
1296 if (close(fd) != -1 && len == *inp) {
1310 eap_request(esp, inp, id, len) in eap_request() argument
1312 u_char *inp;
1354 GETCHAR(typenum, inp);
1360 info("EAP: Identity prompt \"%.*q\"", len, inp);
1394 info("EAP: Notification \"%.*q\"", len, inp);
1413 GETCHAR(vallen, inp);
1426 BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
1429 BCOPY(inp + vallen, rhostname, len - vallen);
1453 MD5_Update(&mdContext, inp, vallen);
1468 GETCHAR(vallen, inp);
1490 GETCHAR(vallen, inp);
1498 BCOPY(inp, rhostname, vallen);
1500 INCPTR(vallen, inp);
1518 GETCHAR(vallen, inp);
1526 sval.data = inp;
1528 INCPTR(vallen, inp);
1531 GETCHAR(vallen, inp);
1544 gval.data = inp;
1547 INCPTR(vallen, inp);
1558 Nval.data = inp;
1608 Bval.data = inp;
1644 if (len < 0 || t_clientverify(tc, inp +
1650 GETLONG(esp->es_client.ea_keyflags, inp);
1653 INCPTR(SHA_DIGESTSIZE, inp);
1654 write_pseudonym(esp, inp, len, id);
1675 SHA1Update(&ctxt, inp, len);
1720 eap_response(esp, inp, id, len) in eap_response() argument
1722 u_char *inp;
1753 GETCHAR(typenum, inp);
1760 inp);
1763 info("EAP: unauthenticated peer name \"%.*q\"", len, inp);
1773 BCOPY(inp, esp->es_server.ea_peer, len);
1790 GETCHAR(vallen, inp);
1841 GETCHAR(vallen, inp);
1852 BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
1855 BCOPY(inp + vallen, rhostname, len - vallen);
1880 if (BCMP(hash, inp, MD5_SIGNATURE_SIZE) != 0) {
1898 GETCHAR(typenum, inp);
1907 A.data = inp;
1933 GETLONG(esp->es_server.ea_keyflags, inp);
1936 if (t_serververify(ts, inp)) {
1980 if (BCMP(dig, inp, SHA_DIGESTSIZE) != 0) {
2015 eap_success(esp, inp, id, len) in eap_success() argument
2017 u_char *inp;
2034 PRINTMSG(inp, len);
2045 eap_failure(esp, inp, id, len) in eap_failure() argument
2047 u_char *inp;
2063 PRINTMSG(inp, len);
2076 eap_input(unit, inp, inlen) in eap_input() argument
2078 u_char *inp;
2093 GETCHAR(code, inp);
2094 GETCHAR(id, inp);
2095 GETSHORT(len, inp);
2106 eap_request(esp, inp, id, len);
2110 eap_response(esp, inp, id, len);
2114 eap_success(esp, inp, id, len);
2118 eap_failure(esp, inp, id, len);
2144 eap_printpkt(inp, inlen, printer, arg) in eap_printpkt() argument
2145 u_char *inp; in eap_printpkt()
2156 pstart = inp;
2157 GETCHAR(code, inp);
2158 GETCHAR(id, inp);
2159 GETSHORT(len, inp);
2175 GETCHAR(rtype, inp);
2187 print_string((char *)inp, len, printer, arg);
2189 INCPTR(len, inp);
2199 GETCHAR(vallen, inp);
2203 printer(arg, " <Value%.*B>", vallen, inp);
2204 INCPTR(vallen, inp);
2208 print_string((char *)inp, len, printer, arg);
2210 INCPTR(len, inp);
2220 GETCHAR(vallen, inp);
2225 GETCHAR(vallen, inp);
2231 print_string((char *)inp, vallen, printer,
2237 INCPTR(vallen, inp);
2239 GETCHAR(vallen, inp);
2243 printer(arg, " <s%.*B>", vallen, inp);
2244 INCPTR(vallen, inp);
2246 GETCHAR(vallen, inp);
2253 printer(arg, " <g%.*B>", vallen, inp);
2255 INCPTR(vallen, inp);
2260 printer(arg, " <N%.*B>", len, inp);
2261 INCPTR(len, inp);
2267 printer(arg, " <B%.*B>", len, inp);
2268 INCPTR(len, inp);
2275 GETLONG(uval, inp);
2286 printer(arg, " <M2%.*B%s>", len, inp,
2288 INCPTR(vallen, inp);
2291 printer(arg, " <PN%.*B>", len, inp);
2292 INCPTR(len, inp);
2298 printer(arg, " <Challenge%.*B>", len, inp);
2299 INCPTR(len, inp);
2310 GETCHAR(rtype, inp);
2321 print_string((char *)inp, len, printer, arg);
2323 INCPTR(len, inp);
2333 GETCHAR(rtype, inp);
2347 GETCHAR(vallen, inp);
2351 printer(arg, " <Value%.*B>", vallen, inp);
2352 INCPTR(vallen, inp);
2356 print_string((char *)inp, len, printer, arg);
2358 INCPTR(len, inp);
2368 GETCHAR(vallen, inp);
2373 printer(arg, " <A%.*B>", len, inp);
2374 INCPTR(len, inp);
2381 GETLONG(uval, inp);
2390 printer(arg, " <M1%.*B%s>", len, inp,
2392 INCPTR(len, inp);
2400 printer(arg, " <Response%.*B%s>", len, inp,
2404 INCPTR(vallen, inp);
2422 printer(arg, "%8B...", inp);
2424 printer(arg, "%.*B", len, inp);
2425 INCPTR(len, inp);
2427 return (inp - pstart);