summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/socks.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* do not refuse valid IPv6 addresses in -X connect (HTTP CONNECT proxy)djm2022-06-081-2/+2
| | | | support. Identified by Wilmer van der Gaast, ok millert@
* Fix an out of bound read/write when using a proxy.millert2019-11-041-3/+3
| | | | From Lucas AT sexy DOT is. OK job@ kn@
* Make proxy auth work with http 1.1 speaking webservers.benno2019-07-291-2/+3
| | | | | Diff from Alexander Koeppe format_c -AT- online -DOT- de, thanks. ok deraadt@
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-031-3/+3
|
* Revert back previous commit and stop including strings.hmestre2019-01-101-3/+2
| | | | | | | Use memset(3) instead of bzero(3) since POSIX recommends using the former and because it's also more portable (conforms to ANSI C standard) OK tedu@ tb@
* Include strings.h for bzero in usr.bin/ncinoguchi2019-01-091-1/+2
| | | | | | bzero is defined in strings.h. ok deraadt@
* Clear password buffers in non-terminating casesderaadt2018-03-271-8/+11
| | | | ok tobias
* whitespacederaadt2016-06-271-2/+2
|
* Specify SOCKS version in error messages. ok deraadt@mmcc2015-12-101-3/+3
|
* Map SOCKS error codes to error strings. With input from deraadt@mmcc2015-12-101-5/+61
|
* Fix error message in case of write failure.tobias2015-03-261-3/+3
| | | | ok djm
* fix format strings for size_tespie2012-03-081-3/+3
| | | | ok okan@
* fix from pr 6207. a bit more of an explanation: we write the correctokan2011-02-121-4/+18
| | | | | | | | | | number of bits when connecting via a SOCKS 5 proxy over ipv6, but we also need to read the same number depending on the received address type. this issue is not noticeable with ssh's SOCKS 5 support since it always set the address type as ipv4. this fixes connections via SOCKS 5 proxies which set their address type as ipv6 when using ipv6. after review with, and ok, nicm@
* Allocate the port number properly (don't allocate space then ignore it),nicm2010-04-201-9/+9
| | | | | | and use %zu for size_t. ok djm
* Also accept "HTTP/1.1 200" as a success response.ray2006-09-251-2/+3
| | | | OK djm@.
* implement HTTP proxy authentication support, very useful in a ssh_configdjm2006-01-251-17/+72
| | | | ProxyCommand; ok beck@
* Switch atomicio to a simpler interface which returns size_t and usesavsm2005-05-241-34/+20
| | | | | | | 0 to signal errors. should be no functional change in nc apart from different error messages. "groovy", said deraadt@
* Teach the SOCKS5 code more of the protocol, so it can send domain namesdjm2005-05-201-56/+102
| | | | | | to the proxy instead of resolving them locally and sending IPv4 addresses. This improves privacy, e.g. when using nc with OpenSSH DynamicForward tunnels, and gives us better IPv6 support; ok beck@
* HTTP proxy doesn't need an address lookup - saves some time and avoids adjm2005-05-201-2/+4
| | | | spurious error if the lookup fails. from Ray; ok markus@
* fix SOCKS5 code for case where data comes in the same packet as the response;djm2005-05-191-2/+2
| | | | ok dtucker@ markus@
* KNF, no binary change; ok jaredy@djm2005-05-191-44/+44
|
* Some extra strict warning cleanup. From Xin Li <delphij at FreeBSDotto2005-02-081-7/+8
| | | | dot ORG> with a twist from myself. No binary change. ok djm@
* http proxy CONNECT support; ok beck@djm2004-10-171-10/+76
|
* protosderaadt2003-07-071-4/+7
|
* fix various 3/4 licenses according to "terms" filederaadt2003-06-031-6/+1
|
* correct return code check; from Owl. ok fgsch@stevesk2002-12-301-2/+2
|
* add support for SOCKS4 with option -X socks_version, default is 5; ok ericj@markus2002-02-281-40/+66
|
* -Wall cleanup.ericj2002-02-191-1/+3
| | | | from Kevin Steves <stevesk@pobox.com>
* fix stupid typojakob2001-10-281-1/+1
|
* remove unused variablejakob2001-10-281-2/+1
|
* add very basic proxy support using socks5 client code from niklas@.jakob2001-09-021-0/+144
ok ericj@.