summaryrefslogtreecommitdiff
path: root/usr.bin/nc/netcat.c
AgeCommit message (Expand)Author
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
2020-02-12Standardize argument naming for "sourceaddr" and unify the wording a bit,Ingo Schwarze
2020-01-26revert previous nc loop refactor from 1.211, breaks bluhm's stuffBob Beck
2020-01-07If the client provides a TLS certificate and the user specifies aAlexander Bluhm
2020-01-06The unveil(2) for nc -U -u -l was wrong. The server cannot unveilAlexander Bluhm
2020-01-06When using UNIX domain sockets, always call report_sock() with theAlexander Bluhm
2019-11-17fail to usage if extra argv are presentTheo de Raadt
2019-11-13refactor the nc pool loop to not shut down the socket early, andBob Beck
2019-11-04Fix an out of bound read/write when using a proxy.Todd C. Miller
2019-10-24Print IP address in verbose modejob
2019-10-23Revert previous, which works for -N case but causes regress failuresBob Beck
2019-10-17Fix -N flag to actually shut down the (entire) socket when the inputBob Beck
2019-08-08added /* no filesystem visibility */ above unveil("/", "") since "" is too easyRicardo Mestre
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-27Some asprintf() calls were checked < 0, rather than the precise == -1.Theo de Raadt
2019-02-26Correctly handle tls_read() and tls_write() failures.Joel Sing
2019-01-10Revert back previous commit and stop including strings.hRicardo Mestre
2019-01-09Include strings.h for bzero in usr.bin/ncKinichiro Inoguchi
2018-12-27port ranges can be ambiguous with hypenated port-names.Ted Unangst
2018-11-29update for libtls default cert changes.Ted Unangst
2018-11-09In verbose mode netcat reports to stderr when the listen systemAlexander Bluhm
2018-11-06Use TLS_CA_CERT_FILE instead of a separate define.Joel Sing
2018-10-26show what went wrong with a unix domain socket, rather than fail silentlyDavid Gwynne
2018-10-04Plug TLS context leak in nc(1) server and client mode. MoveAlexander Bluhm
2018-09-07Declare strings passed to local_listen() as const. This makes itAlexander Bluhm
2018-09-06Do not close the socket twice in netcat.Alexander Bluhm
2018-08-10In typical swiss-army style, various modes and options causeTheo de Raadt
2018-04-27trailing whitespace, and move arg checking before pledgeBob Beck
2018-03-19Remove the tls_init() call, since it is no longer necessary.Joel Sing
2017-11-28Allow TLS ciphers and protocols to be specified for nc(1).Joel Sing
2017-10-24Use a smaller buffer size too peek the receive data. The contentAlexander Bluhm
2017-07-15Add a "-T tlscompat" option to nc(1), which enables the use of all TLSJoel Sing
2017-06-11Continue the flattening of the pledge logic started in r1.184 and placeTheo Buehler
2017-06-11Simple style(9) fixes from Juuso Lapinlampi, mostly whitespace andTheo Buehler
2017-06-10If -P and -c were given, a second pledge call tried to add "rpath" to theTheo Buehler
2017-05-26Fix gcc warnings triggered by WARNINGS=yes.Alexander Bluhm
2017-05-10Implement nc -W recvlimit to terminate netcat after receiving aAlexander Bluhm
2017-04-16Move comments into a block and uses {} to unconfuse reading.Theo de Raadt
2017-04-05- -Z before -z in options listJason McIntyre
2017-04-05Allow nc to save the peer certificate and chain in a pem file specifiedBob Beck
2017-03-09The netcat server did not print the correct TLS error message ifAlexander Bluhm
2017-02-09When netcat was started with -Uz, the exit status was always 1. IfAlexander Bluhm
2017-02-09When getaddrinfo fails, print the requested host and port.Jeremie Courreges-Anglas
2017-02-08Avoid a busy loop in netcat's tls_close(). Reuse the tls_handshake()Alexander Bluhm
2017-02-08Avoid double close(2) in netcat. After every call to readwrite()Alexander Bluhm
2017-02-08Due to non-blocking sockets, tls_handshake() could wait in a busyAlexander Bluhm
2017-02-05Support IPv6 proxy addressesJeremie Courreges-Anglas
2016-11-30Check return value of tls_config_set_protocols(3) and tls_config_set_ciphers(3)Ricardo Mestre
2016-11-06rename tlslegacy to tlsall, and better describe what it does.Bob Beck
2016-11-05zap trailing whitespace, and add -o to usage() and help (-h);Jason McIntyre