sync with OpenBSD -current
This commit is contained in:
parent
f4a22ff4b2
commit
9dfe537fef
85 changed files with 12490 additions and 6835 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ssh-keyscan.c,v 1.157 2024/05/06 19:26:17 tobias Exp $ */
|
||||
/* $OpenBSD: ssh-keyscan.c,v 1.158 2024/06/14 00:25:25 djm Exp $ */
|
||||
/*
|
||||
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
|
||||
*
|
||||
|
@ -76,6 +76,8 @@ int found_one = 0; /* Successfully found a key */
|
|||
|
||||
int hashalg = -1; /* Hash for SSHFP records or -1 for all */
|
||||
|
||||
int quiet = 0; /* Don't print key comment lines */
|
||||
|
||||
#define MAXMAXFD 256
|
||||
|
||||
/* The number of seconds after which to give up on a TCP connection */
|
||||
|
@ -516,8 +518,10 @@ congreet(int s)
|
|||
confree(s);
|
||||
return;
|
||||
}
|
||||
fprintf(stderr, "%c %s:%d %s\n", print_sshfp ? ';' : '#',
|
||||
c->c_name, ssh_port, chop(buf));
|
||||
if (!quiet) {
|
||||
fprintf(stdout, "%c %s:%d %s\n", print_sshfp ? ';' : '#',
|
||||
c->c_name, ssh_port, chop(buf));
|
||||
}
|
||||
keygrab_ssh2(c);
|
||||
confree(s);
|
||||
}
|
||||
|
@ -639,7 +643,7 @@ static void
|
|||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: ssh-keyscan [-46cDHv] [-f file] [-O option] [-p port] [-T timeout]\n"
|
||||
"usage: ssh-keyscan [-46cDHqv] [-f file] [-O option] [-p port] [-T timeout]\n"
|
||||
" [-t type] [host | addrlist namelist]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
@ -664,7 +668,7 @@ main(int argc, char **argv)
|
|||
if (argc <= 1)
|
||||
usage();
|
||||
|
||||
while ((opt = getopt(argc, argv, "cDHv46O:p:T:t:f:")) != -1) {
|
||||
while ((opt = getopt(argc, argv, "cDHqv46O:p:T:t:f:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'H':
|
||||
hash_hosts = 1;
|
||||
|
@ -699,6 +703,9 @@ main(int argc, char **argv)
|
|||
else
|
||||
fatal("Too high debugging level.");
|
||||
break;
|
||||
case 'q':
|
||||
quiet = 1;
|
||||
break;
|
||||
case 'f':
|
||||
if (strcmp(optarg, "-") == 0)
|
||||
optarg = NULL;
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $OpenBSD: sshd_config.5,v 1.361 2024/06/12 22:36:00 djm Exp $
|
||||
.Dd $Mdocdate: June 12 2024 $
|
||||
.\" $OpenBSD: sshd_config.5,v 1.362 2024/06/13 15:06:33 naddy Exp $
|
||||
.Dd $Mdocdate: June 13 2024 $
|
||||
.Dt SSHD_CONFIG 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -1604,7 +1604,7 @@ Repeated penalties will accumulate up to this maximum.
|
|||
.It Cm min:duration
|
||||
Specifies the minimum penalty that must accrue before enforcement begins
|
||||
(default: 15s).
|
||||
.It Cm max-sources4:number max-sources6:number
|
||||
.It Cm max-sources4:number , max-sources6:number
|
||||
Specifies the maximum number of client IPv4 and IPv6 address ranges to
|
||||
track for penalties (default: 65536 for both).
|
||||
.It Cm overflow:mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue