aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2025-08-01 15:56:45 +0000
committerEd Maste <emaste@FreeBSD.org>2026-01-20 19:41:59 +0000
commit7ca599aa613955a939284292f0993b59b0d9fef3 (patch)
treec5b71a2cf2037228c03ffe0242f2646a774b4524 /secure
parentb3647e2a408e8a0246ec2240a152f8c41c3482cb (diff)
OpenSSH: Update to 10.0p2
Full release notes are available at https://www.openssh.com/txt/release-10.0 Selected highlights from the release notes: Potentially-incompatible changes - This release removes support for the weak DSA signature algorithm. [This change was previously merged to FreeBSD main.] - This release has the version number 10.0 and announces itself as "SSH-2.0-OpenSSH_10.0". Software that naively matches versions using patterns like "OpenSSH_1*" may be confused by this. - sshd(8): this release removes the code responsible for the user authentication phase of the protocol from the per-connection sshd-session binary to a new sshd-auth binary. Security - sshd(8): fix the DisableForwarding directive, which was failing to disable X11 forwarding and agent forwarding as documented. [This change was previously merged to FreeBSD main.] New features - ssh(1): the hybrid post-quantum algorithm mlkem768x25519-sha256 is now used by default for key agreement. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51630 (cherry picked from commit 8e28d84935f2f0ee081d44f9803f3052b960e50b) (cherry picked from commit e600fc7295a7082041388113a5d677f6c4cf7ce7)
Diffstat (limited to 'secure')
-rw-r--r--secure/libexec/Makefile1
-rw-r--r--secure/libexec/sshd-auth/Makefile49
-rw-r--r--secure/libexec/sshd-session/Makefile4
3 files changed, 51 insertions, 3 deletions
diff --git a/secure/libexec/Makefile b/secure/libexec/Makefile
index 0dad9fdc84b3..6e68fe490be6 100644
--- a/secure/libexec/Makefile
+++ b/secure/libexec/Makefile
@@ -4,6 +4,7 @@
SUBDIR=
.if ${MK_OPENSSH} != "no"
SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper ssh-sk-helper sshd-session
+SUBDIR+=sshd-auth
.endif
SUBDIR.${MK_TESTS}+= tests
diff --git a/secure/libexec/sshd-auth/Makefile b/secure/libexec/sshd-auth/Makefile
new file mode 100644
index 000000000000..3ca38e920e25
--- /dev/null
+++ b/secure/libexec/sshd-auth/Makefile
@@ -0,0 +1,49 @@
+.include <src.opts.mk>
+.include "${SRCTOP}/secure/ssh.mk"
+
+PROG= sshd-auth
+SRCS= sshd-auth.c \
+ auth2-methods.c \
+ auth-rhosts.c auth-passwd.c sshpty.c sshlogin.c servconf.c \
+ serverloop.c auth.c auth2.c auth-options.c session.c auth2-chall.c \
+ groupaccess.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
+ auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-pubkeyfile.c \
+ auth2-gss.c gss-serv.c gss-serv-krb5.c \
+ monitor_wrap.c auth-krb5.c \
+ audit.c audit-bsm.c audit-linux.c platform.c \
+ loginrec.c auth-pam.c auth-shadow.c auth-sia.c \
+ sandbox-null.c sandbox-rlimit.c sandbox-darwin.c \
+ sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-solaris.c \
+ sftp-server.c sftp-common.c \
+ uidswap.c $(SKSRCS)
+PACKAGE= ssh
+
+# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
+SRCS+= gss-genr.c
+
+MAN=
+
+# pam should always happen before ssh here for static linking
+LIBADD= pam ssh util
+
+.if ${MK_AUDIT} != "no"
+CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1
+LIBADD+= bsm
+.endif
+
+.if ${MK_BLACKLIST_SUPPORT} != "no"
+CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blocklist/include
+SRCS+= blacklist.c
+LIBADD+= blacklist
+LDFLAGS+=-L${LIBBLACKLISTDIR}
+.endif
+
+.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
+LIBADD+= gssapi_krb5 gssapi krb5
+.endif
+
+LIBADD+= crypto
+
+.include <bsd.prog.mk>
+
+.PATH: ${SSHDIR}
diff --git a/secure/libexec/sshd-session/Makefile b/secure/libexec/sshd-session/Makefile
index 81e481559189..c20c96e1a07e 100644
--- a/secure/libexec/sshd-session/Makefile
+++ b/secure/libexec/sshd-session/Makefile
@@ -13,9 +13,7 @@ SRCS= sshd-session.c auth-rhosts.c auth-passwd.c \
auth2-gss.c gss-serv.c gss-serv-krb5.c \
loginrec.c auth-pam.c auth-shadow.c auth-sia.c \
sftp-server.c sftp-common.c \
- sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \
- sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-pledge.c \
- sandbox-solaris.c uidswap.c
+ uidswap.c platform-listen.c $(SKSRCS)
PACKAGE= ssh
# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile