version 1.27, 2019/01/10 12:44:54 |
version 1.28, 2019/07/03 03:24:02 |
|
|
"CONNECT %s:%d HTTP/1.0\r\n", |
"CONNECT %s:%d HTTP/1.0\r\n", |
host, ntohs(serverport)); |
host, ntohs(serverport)); |
} |
} |
if (r == -1 || (size_t)r >= sizeof(buf)) |
if (r < 0 || (size_t)r >= sizeof(buf)) |
errx(1, "hostname too long"); |
errx(1, "hostname too long"); |
r = strlen(buf); |
r = strlen(buf); |
|
|
|
|
errx(1, "Proxy username/password too long"); |
errx(1, "Proxy username/password too long"); |
r = snprintf(buf, sizeof(buf), "Proxy-Authorization: " |
r = snprintf(buf, sizeof(buf), "Proxy-Authorization: " |
"Basic %s\r\n", resp); |
"Basic %s\r\n", resp); |
if (r == -1 || (size_t)r >= sizeof(buf)) |
if (r < 0 || (size_t)r >= sizeof(buf)) |
errx(1, "Proxy auth response too long"); |
errx(1, "Proxy auth response too long"); |
r = strlen(buf); |
r = strlen(buf); |
if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r) |
if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r) |