summaryrefslogtreecommitdiff
path: root/security/openssh-portable/files/openssh.in
diff options
context:
space:
mode:
Diffstat (limited to 'security/openssh-portable/files/openssh.in')
-rw-r--r--security/openssh-portable/files/openssh.in17
1 files changed, 2 insertions, 15 deletions
diff --git a/security/openssh-portable/files/openssh.in b/security/openssh-portable/files/openssh.in
index 9526a70b0d07..1818d0bf0984 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"}
@@ -43,14 +41,12 @@ 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
+ local skip_rsa= skip_ecdsa= skip_ed25519=
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"