summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2016-11-05 16:03:09 +0000
committerjmc <>2016-11-05 16:03:09 +0000
commitb03b65ec03c426c16dcb62ca906cd0bc7a3aef8c (patch)
tree4d82c3f462e5e3fcee71bc8fc08fcaf4397a6bf7 /src
parent6dd556f61c141a00f8cc61c8b28e4ebf5f4ba8c0 (diff)
downloadopenbsd-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.16
-rw-r--r--src/usr.bin/nc/netcat.c9
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
192Specifies the filename from which to load data to be stapled 192Specifies the filename from which to load data to be stapled
193during the TLS handshake. 193during the TLS handshake.
194The file is expected to contain an OSCP response from an OCSP server in 194The file is expected to contain an OSCP response from an OCSP server in
195DER format. 195DER format.
196May only be used with TLS and when a certificate is being used. 196May 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
198Specifies a username to present to a proxy server that requires authentication. 198Specifies 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);