summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rwxr-xr-xopensshd.init.in6
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 373d21b34..7c1956dc6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,6 +123,7 @@ AC_CHECK_DECL([PR_SET_NO_NEW_PRIVS], [have_linux_no_new_privs=1], , [
123 123
124openssl=yes 124openssl=yes
125ssh1=no 125ssh1=no
126COMMENT_OUT_RSA1="#no ssh1#"
126AC_ARG_WITH([openssl], 127AC_ARG_WITH([openssl],
127 [ --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** ], 128 [ --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** ],
128 [ if test "x$withval" = "xno" ; then 129 [ if test "x$withval" = "xno" ; then
@@ -147,6 +148,7 @@ AC_ARG_WITH([ssh1],
147 AC_MSG_ERROR([Cannot enable SSH protocol 1 with OpenSSL disabled]) 148 AC_MSG_ERROR([Cannot enable SSH protocol 1 with OpenSSL disabled])
148 fi 149 fi
149 ssh1=yes 150 ssh1=yes
151 COMMENT_OUT_RSA1=""
150 elif test "x$withval" = "xno" ; then 152 elif test "x$withval" = "xno" ; then
151 ssh1=no 153 ssh1=no
152 else 154 else
@@ -158,6 +160,7 @@ AC_MSG_CHECKING([whether SSH protocol 1 support is enabled])
158if test "x$ssh1" = "xyes" ; then 160if test "x$ssh1" = "xyes" ; then
159 AC_MSG_RESULT([yes]) 161 AC_MSG_RESULT([yes])
160 AC_DEFINE_UNQUOTED([WITH_SSH1], [1], [include SSH protocol version 1 support]) 162 AC_DEFINE_UNQUOTED([WITH_SSH1], [1], [include SSH protocol version 1 support])
163 AC_SUBST([COMMENT_OUT_RSA1])
161else 164else
162 AC_MSG_RESULT([no]) 165 AC_MSG_RESULT([no])
163fi 166fi
diff --git a/opensshd.init.in b/opensshd.init.in
index 517345bfb..3908566b7 100755
--- a/opensshd.init.in
+++ b/opensshd.init.in
@@ -25,9 +25,9 @@ HOST_KEY_ED25519=$sysconfdir/ssh_host_ed25519_key
25 25
26 26
27checkkeys() { 27checkkeys() {
28 if [ ! -f $HOST_KEY_RSA1 ]; then 28@COMMENT_OUT_RSA1@ if [ ! -f $HOST_KEY_RSA1 ]; then
29 ${SSH_KEYGEN} -t rsa1 -f ${HOST_KEY_RSA1} -N "" 29@COMMENT_OUT_RSA1@ ${SSH_KEYGEN} -t rsa1 -f ${HOST_KEY_RSA1} -N ""
30 fi 30@COMMENT_OUT_RSA1@ fi
31 if [ ! -f $HOST_KEY_DSA ]; then 31 if [ ! -f $HOST_KEY_DSA ]; then
32 ${SSH_KEYGEN} -t dsa -f ${HOST_KEY_DSA} -N "" 32 ${SSH_KEYGEN} -t dsa -f ${HOST_KEY_DSA} -N ""
33 fi 33 fi