diff options
| author | Brent Cook <bcook@openbsd.org> | 2016-05-30 11:08:43 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2016-05-30 11:08:43 -0500 |
| commit | ff021e8abd556ac93725e8f2855d9cd17c368ded (patch) | |
| tree | c92ba5d9552a780ffc5b4edc222db2e387ff743d | |
| parent | 40974784c0a87b7cbf88d62b972584eff1430cdc (diff) | |
| download | portable-ff021e8abd556ac93725e8f2855d9cd17c368ded.tar.gz portable-ff021e8abd556ac93725e8f2855d9cd17c368ded.tar.bz2 portable-ff021e8abd556ac93725e8f2855d9cd17c368ded.zip | |
rebase netcat patch
| -rw-r--r-- | patches/netcat.c.patch | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/patches/netcat.c.patch b/patches/netcat.c.patch index 3719681..16f1388 100644 --- a/patches/netcat.c.patch +++ b/patches/netcat.c.patch | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | --- apps/nc/netcat.c.orig Mon Dec 28 08:46:10 2015 | 1 | --- apps/nc/netcat.c.orig Mon May 30 11:05:31 2016 |
| 2 | +++ apps/nc/netcat.c Mon Dec 28 08:46:19 2015 | 2 | +++ apps/nc/netcat.c Mon May 30 11:05:44 2016 |
| 3 | @@ -57,6 +57,10 @@ | 3 | @@ -57,6 +57,10 @@ |
| 4 | #include <tls.h> | 4 | #include <tls.h> |
| 5 | #include "atomicio.h" | 5 | #include "atomicio.h" |
| @@ -83,7 +83,7 @@ | |||
| 83 | 83 | ||
| 84 | if (family == AF_UNIX) { | 84 | if (family == AF_UNIX) { |
| 85 | if (pledge("stdio rpath wpath cpath tmppath unix", NULL) == -1) | 85 | if (pledge("stdio rpath wpath cpath tmppath unix", NULL) == -1) |
| 86 | @@ -460,7 +476,10 @@ | 86 | @@ -469,7 +485,10 @@ |
| 87 | errx(1, "-H and -T noverify may not be used" | 87 | errx(1, "-H and -T noverify may not be used" |
| 88 | "together"); | 88 | "together"); |
| 89 | tls_config_insecure_noverifycert(tls_cfg); | 89 | tls_config_insecure_noverifycert(tls_cfg); |
| @@ -95,7 +95,7 @@ | |||
| 95 | } | 95 | } |
| 96 | if (lflag) { | 96 | if (lflag) { |
| 97 | struct tls *tls_cctx = NULL; | 97 | struct tls *tls_cctx = NULL; |
| 98 | @@ -807,7 +826,10 @@ | 98 | @@ -817,7 +836,10 @@ |
| 99 | remote_connect(const char *host, const char *port, struct addrinfo hints) | 99 | remote_connect(const char *host, const char *port, struct addrinfo hints) |
| 100 | { | 100 | { |
| 101 | struct addrinfo *res, *res0; | 101 | struct addrinfo *res, *res0; |
| @@ -107,7 +107,7 @@ | |||
| 107 | 107 | ||
| 108 | if ((error = getaddrinfo(host, port, &hints, &res))) | 108 | if ((error = getaddrinfo(host, port, &hints, &res))) |
| 109 | errx(1, "getaddrinfo: %s", gai_strerror(error)); | 109 | errx(1, "getaddrinfo: %s", gai_strerror(error)); |
| 110 | @@ -822,8 +844,10 @@ | 110 | @@ -832,8 +854,10 @@ |
| 111 | if (sflag || pflag) { | 111 | if (sflag || pflag) { |
| 112 | struct addrinfo ahints, *ares; | 112 | struct addrinfo ahints, *ares; |
| 113 | 113 | ||
| @@ -118,7 +118,7 @@ | |||
| 118 | memset(&ahints, 0, sizeof(struct addrinfo)); | 118 | memset(&ahints, 0, sizeof(struct addrinfo)); |
| 119 | ahints.ai_family = res0->ai_family; | 119 | ahints.ai_family = res0->ai_family; |
| 120 | ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; | 120 | ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; |
| 121 | @@ -892,7 +916,10 @@ | 121 | @@ -902,7 +926,10 @@ |
| 122 | local_listen(char *host, char *port, struct addrinfo hints) | 122 | local_listen(char *host, char *port, struct addrinfo hints) |
| 123 | { | 123 | { |
| 124 | struct addrinfo *res, *res0; | 124 | struct addrinfo *res, *res0; |
| @@ -130,7 +130,7 @@ | |||
| 130 | int error; | 130 | int error; |
| 131 | 131 | ||
| 132 | /* Allow nodename to be null. */ | 132 | /* Allow nodename to be null. */ |
| 133 | @@ -914,9 +941,11 @@ | 133 | @@ -924,9 +951,11 @@ |
| 134 | res0->ai_protocol)) < 0) | 134 | res0->ai_protocol)) < 0) |
| 135 | continue; | 135 | continue; |
| 136 | 136 | ||
| @@ -142,7 +142,7 @@ | |||
| 142 | 142 | ||
| 143 | set_common_sockopts(s, res0->ai_family); | 143 | set_common_sockopts(s, res0->ai_family); |
| 144 | 144 | ||
| 145 | @@ -1356,11 +1385,13 @@ | 145 | @@ -1366,11 +1395,13 @@ |
| 146 | { | 146 | { |
| 147 | int x = 1; | 147 | int x = 1; |
| 148 | 148 | ||
| @@ -156,7 +156,7 @@ | |||
| 156 | if (Dflag) { | 156 | if (Dflag) { |
| 157 | if (setsockopt(s, SOL_SOCKET, SO_DEBUG, | 157 | if (setsockopt(s, SOL_SOCKET, SO_DEBUG, |
| 158 | &x, sizeof(x)) == -1) | 158 | &x, sizeof(x)) == -1) |
| 159 | @@ -1538,14 +1569,22 @@ | 159 | @@ -1553,14 +1584,22 @@ |
| 160 | \t-P proxyuser\tUsername for proxy authentication\n\ | 160 | \t-P proxyuser\tUsername for proxy authentication\n\ |
| 161 | \t-p port\t Specify local port for remote connects\n\ | 161 | \t-p port\t Specify local port for remote connects\n\ |
| 162 | \t-R CAfile CA bundle\n\ | 162 | \t-R CAfile CA bundle\n\ |
