aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/ssh-keyscan.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-05-12 20:24:10 +0000
committerEd Maste <emaste@FreeBSD.org>2026-05-12 20:24:10 +0000
commit644b4646c7acab87dc20d4e5dd53d2d9da152989 (patch)
tree5c1df5530ccb0c91e7b49f87325931817ca0e19d /crypto/openssh/ssh-keyscan.c
parentbeab4a237a45aea809e81802b9e1e9ff30f3d929 (diff)
parent6409980cbba7323bd1c86249ed16f8bea9fa5490 (diff)
OpenSSH: Update to 10.1p1
Full release notes are available at https://www.openssh.com/txt/release-10.1 Selected highlights from the release notes: Potentially-incompatible changes * ssh(1): add a warning when the connection negotiates a non-post quantum key agreement algorithm. * ssh(1), sshd(8): major changes to handling of DSCP marking/IPQoS * ssh(1), sshd(8): deprecate support for IPv4 type-of-service (ToS) keywords in the IPQoS configuration directive. * ssh-add(1): when adding certificates to an agent, set the expiry to the certificate expiry time plus a short (5 min) grace period. * ssh-agent(1), sshd(8): move agent listener sockets from /tmp to under ~/.ssh/agent for both ssh-agent(1) and forwarded sockets in sshd(8). Security * ssh(1): disallow control characters in usernames passed via the commandline or expanded using %-sequences from the configuration file, and disallow \0 characters in ssh:// URIs. New features * ssh(1), sshd(8): add SIGINFO handlers to log active channel and session information. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'crypto/openssh/ssh-keyscan.c')
-rw-r--r--crypto/openssh/ssh-keyscan.c42
1 files changed, 10 insertions, 32 deletions
diff --git a/crypto/openssh/ssh-keyscan.c b/crypto/openssh/ssh-keyscan.c
index 3436c0b5c7c6..f9788114df8d 100644
--- a/crypto/openssh/ssh-keyscan.c
+++ b/crypto/openssh/ssh-keyscan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keyscan.c,v 1.165 2024/12/06 15:17:15 djm Exp $ */
+/* $OpenBSD: ssh-keyscan.c,v 1.167 2025/08/29 03:50:38 djm Exp $ */
/*
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
*
@@ -12,9 +12,7 @@
#include <sys/types.h>
#include "openbsd-compat/sys-queue.h"
#include <sys/resource.h>
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
+#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -23,15 +21,13 @@
#include <openssl/bn.h>
#endif
+#include <errno.h>
#include <limits.h>
#include <netdb.h>
-#include <errno.h>
-#ifdef HAVE_POLL_H
-#include <poll.h>
-#endif
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#include <poll.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
@@ -62,15 +58,13 @@ int IPv4or6 = AF_UNSPEC;
int ssh_port = SSH_DEFAULT_PORT;
-#define KT_DSA (1)
-#define KT_RSA (1<<1)
-#define KT_ECDSA (1<<2)
-#define KT_ED25519 (1<<3)
-#define KT_XMSS (1<<4)
-#define KT_ECDSA_SK (1<<5)
-#define KT_ED25519_SK (1<<6)
+#define KT_RSA (1)
+#define KT_ECDSA (1<<1)
+#define KT_ED25519 (1<<2)
+#define KT_ECDSA_SK (1<<4)
+#define KT_ED25519_SK (1<<5)
-#define KT_MIN KT_DSA
+#define KT_MIN KT_RSA
#define KT_MAX KT_ED25519_SK
int get_cert = 0;
@@ -240,10 +234,6 @@ keygrab_ssh2(con *c)
int r;
switch (c->c_keytype) {
- case KT_DSA:
- myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = get_cert ?
- "ssh-dss-cert-v01@openssh.com" : "ssh-dss";
- break;
case KT_RSA:
myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = get_cert ?
"rsa-sha2-512-cert-v01@openssh.com,"
@@ -257,10 +247,6 @@ keygrab_ssh2(con *c)
myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = get_cert ?
"ssh-ed25519-cert-v01@openssh.com" : "ssh-ed25519";
break;
- case KT_XMSS:
- myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = get_cert ?
- "ssh-xmss-cert-v01@openssh.com" : "ssh-xmss@openssh.com";
- break;
case KT_ECDSA:
myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = get_cert ?
"ecdsa-sha2-nistp256-cert-v01@openssh.com,"
@@ -743,11 +729,6 @@ main(int argc, char **argv)
int type = sshkey_type_from_shortname(tname);
switch (type) {
-#ifdef WITH_DSA
- case KEY_DSA:
- get_keytypes |= KT_DSA;
- break;
-#endif
case KEY_ECDSA:
get_keytypes |= KT_ECDSA;
break;
@@ -757,9 +738,6 @@ main(int argc, char **argv)
case KEY_ED25519:
get_keytypes |= KT_ED25519;
break;
- case KEY_XMSS:
- get_keytypes |= KT_XMSS;
- break;
case KEY_ED25519_SK:
get_keytypes |= KT_ED25519_SK;
break;