summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2025-10-07 12:16:27 -0700
committerBryan Drewery <bdrewery@FreeBSD.org>2025-10-07 12:19:16 -0700
commit33e58a9f49f752cca72b73765cf9b525710fce5b (patch)
treecde5778d80142d5524d9d079a79a061289c6d464
parenta011260fc5b4e2dc5cf5783dbb9279e3e7a21c55 (diff)
security/openssh-portable: Stop trying to generate DSA key.
DSA key support was removed in 10.0. (cherry picked from commit 8a5ad92ecc597e3ec730f60f5f28df43e91604ba)
-rw-r--r--security/openssh-portable/Makefile2
-rw-r--r--security/openssh-portable/files/openssh.in15
2 files changed, 2 insertions, 15 deletions
diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile
index 8d53967d764d..b0188ca89430 100644
--- a/security/openssh-portable/Makefile
+++ b/security/openssh-portable/Makefile
@@ -1,6 +1,6 @@
PORTNAME= openssh
DISTVERSION= 10.0p1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= OPENBSD/OpenSSH/portable
diff --git a/security/openssh-portable/files/openssh.in b/security/openssh-portable/files/openssh.in
index 9526a70b0d07..251cca91fc62 100644
--- a/security/openssh-portable/files/openssh.in
+++ b/security/openssh-portable/files/openssh.in
@@ -23,8 +23,6 @@ load_rc_config ${name}
: ${openssh_skipportscheck="NO"}
# These only control ssh-keygen automatically generating host keys.
-: ${openssh_dsa_enable="YES"}
-: ${openssh_dsa_flags=""}
: ${openssh_rsa_enable="YES"}
: ${openssh_rsa_flags=""}
: ${openssh_ecdsa_enable="YES"}
@@ -44,13 +42,11 @@ pidfile=${openssh_pidfile:="/var/run/sshd.pid"}
openssh_keygen()
{
local skip_dsa= skip_rsa= skip_ecdsa= skip_ed25519=
- checkyesno openssh_dsa_enable || skip_dsa=y
checkyesno openssh_rsa_enable || skip_rsa=y
checkyesno openssh_ecdsa_enable || skip_ecdsa=y
checkyesno openssh_ed25519_enable || skip_ed25519=y
- if [ \( -n "$skip_dsa" -o -f %%ETCDIR%%/ssh_host_dsa_key \) -a \
- \( -n "$skip_rsa" -o -f %%ETCDIR%%/ssh_host_rsa_key \) -a \
+ if [ \( -n "$skip_rsa" -o -f %%ETCDIR%%/ssh_host_rsa_key \) -a \
\( -n "$skip_ecdsa" -o -f %%ETCDIR%%/ssh_host_ecdsa_key \) -a \
\( -n "$skip_ed25519" -o -f %%ETCDIR%%/ssh_host_ed25519_key \) ]; then
return 0
@@ -62,15 +58,6 @@ openssh_keygen()
[ -x %%PREFIX%%/bin/ssh-keygen ] ||
err 1 "%%PREFIX%%/bin/ssh-keygen does not exist."
- if [ -f %%ETCDIR%%/ssh_host_dsa_key ]; then
- echo "You already have a DSA host key" \
- "in %%ETCDIR%%/ssh_host_dsa_key"
- echo "Skipping protocol version 2 DSA Key Generation"
- elif checkyesno openssh_dsa_enable; then
- %%PREFIX%%/bin/ssh-keygen -t dsa $openssh_dsa_flags \
- -f %%ETCDIR%%/ssh_host_dsa_key -N ''
- fi
-
if [ -f %%ETCDIR%%/ssh_host_rsa_key ]; then
echo "You already have a RSA host key" \
"in %%ETCDIR%%/ssh_host_rsa_key"