diff options
author | jmc <> | 2016-11-05 16:03:09 +0000 |
---|---|---|
committer | jmc <> | 2016-11-05 16:03:09 +0000 |
commit | b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c (patch) | |
tree | 4d82c3f462e5e3fcee71bc8fc08fcaf4397a6bf7 /src | |
parent | 6dd556f61c141a00f8cc61c8b28e4ebf5f4ba8c0 (diff) | |
download | openbsd-b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c.tar.gz openbsd-b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c.tar.bz2 openbsd-b03b65ec03c426c16dcb62ca906cd0bc7a3aef8c.zip |
zap trailing whitespace, and add -o to usage() and help (-h);
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 6 | ||||
-rw-r--r-- | src/usr.bin/nc/netcat.c | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 2dda57af92..15ed5ee1aa 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: nc.1,v 1.77 2016/11/05 15:13:26 beck Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.78 2016/11/05 16:03:09 jmc Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -191,8 +191,8 @@ Specifies the size of the TCP send buffer. | |||
191 | .It Fl o Ar staplefile | 191 | .It Fl o Ar staplefile |
192 | Specifies the filename from which to load data to be stapled | 192 | Specifies the filename from which to load data to be stapled |
193 | during the TLS handshake. | 193 | during the TLS handshake. |
194 | The file is expected to contain an OSCP response from an OCSP server in | 194 | The file is expected to contain an OSCP response from an OCSP server in |
195 | DER format. | 195 | DER format. |
196 | May only be used with TLS and when a certificate is being used. | 196 | May only be used with TLS and when a certificate is being used. |
197 | .It Fl P Ar proxy_username | 197 | .It Fl P Ar proxy_username |
198 | Specifies a username to present to a proxy server that requires authentication. | 198 | Specifies a username to present to a proxy server that requires authentication. |
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index 4a841fb96d..7573314615 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: netcat.c,v 1.168 2016/11/05 15:13:26 beck Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.169 2016/11/05 16:03:09 jmc Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
4 | * Copyright (c) 2015 Bob Beck. All rights reserved. | 4 | * Copyright (c) 2015 Bob Beck. All rights reserved. |
@@ -1640,6 +1640,7 @@ help(void) | |||
1640 | \t-N Shutdown the network socket after EOF on stdin\n\ | 1640 | \t-N Shutdown the network socket after EOF on stdin\n\ |
1641 | \t-n Suppress name/port resolutions\n\ | 1641 | \t-n Suppress name/port resolutions\n\ |
1642 | \t-O length TCP send buffer length\n\ | 1642 | \t-O length TCP send buffer length\n\ |
1643 | \t-o staplefile Staple file\n\ | ||
1643 | \t-P proxyuser\tUsername for proxy authentication\n\ | 1644 | \t-P proxyuser\tUsername for proxy authentication\n\ |
1644 | \t-p port\t Specify local port for remote connects\n\ | 1645 | \t-p port\t Specify local port for remote connects\n\ |
1645 | \t-R CAfile CA bundle\n\ | 1646 | \t-R CAfile CA bundle\n\ |
@@ -1667,8 +1668,10 @@ usage(int ret) | |||
1667 | "usage: nc [-46cDdFhklNnrStUuvz] [-C certfile] [-e name] " | 1668 | "usage: nc [-46cDdFhklNnrStUuvz] [-C certfile] [-e name] " |
1668 | "[-H hash] [-I length]\n" | 1669 | "[-H hash] [-I length]\n" |
1669 | "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n" | 1670 | "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n" |
1670 | "\t [-P proxy_username] [-p source_port] [-R CAfile] [-s source]\n" | 1671 | "\t [-o staplefile] [-P proxy_username] [-p source_port] " |
1671 | "\t [-T keyword] [-V rtable] [-w timeout] [-X proxy_protocol]\n" | 1672 | "[-R CAfile]\n" |
1673 | "\t [-s source] [-T keyword] [-V rtable] [-w timeout] " | ||
1674 | "[-X proxy_protocol]\n" | ||
1672 | "\t [-x proxy_address[:port]] [destination] [port]\n"); | 1675 | "\t [-x proxy_address[:port]] [destination] [port]\n"); |
1673 | if (ret) | 1676 | if (ret) |
1674 | exit(1); | 1677 | exit(1); |