Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alunux/a85138ff3bba8e82b2100171d14e31ac to your computer and use it in GitHub Desktop.
Save alunux/a85138ff3bba8e82b2100171d14e31ac to your computer and use it in GitHub Desktop.
From 71afcb625f1438b32507cc282e493c5ab660dfd1 Mon Sep 17 00:00:00 2001
From: La Ode Muhammad Fadlun Akbar <fadlun@wni.com>
Date: Tue, 4 Jun 2019 11:24:57 +0900
Subject: [PATCH] configure: bring back --with-ssh1 option
---
configure.ac | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/configure.ac b/configure.ac
index 30be6c18..4fbfbe2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,10 +109,13 @@ AC_CHECK_DECL([PR_SET_NO_NEW_PRIVS], [have_linux_no_new_privs=1], , [
])
openssl=yes
+ssh1=no
+COMMENT_OUT_RSA1="#no ssh1#"
AC_ARG_WITH([openssl],
[ --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** ],
[ if test "x$withval" = "xno" ; then
openssl=no
+ ssh1=no
fi
]
)
@@ -124,6 +127,31 @@ else
AC_MSG_RESULT([no])
fi
+AC_ARG_WITH([ssh1],
+ [ --with-ssh1 Enable support for SSH protocol 1],
+ [
+ if test "x$withval" = "xyes" ; then
+ if test "x$openssl" = "xno" ; then
+ AC_MSG_ERROR([Cannot enable SSH protocol 1 with OpenSSL disabled])
+ fi
+ ssh1=yes
+ COMMENT_OUT_RSA1=""
+ elif test "x$withval" = "xno" ; then
+ ssh1=no
+ else
+ AC_MSG_ERROR([unknown --with-ssh1 argument])
+ fi
+ ]
+)
+AC_MSG_CHECKING([whether SSH protocol 1 support is enabled])
+if test "x$ssh1" = "xyes" ; then
+ AC_MSG_RESULT([yes])
+ AC_DEFINE_UNQUOTED([WITH_SSH1], [1], [include SSH protocol version 1 support])
+ AC_SUBST([COMMENT_OUT_RSA1])
+else
+ AC_MSG_RESULT([no])
+fi
+
use_stack_protector=1
use_toolchain_hardening=1
AC_ARG_WITH([stackprotect],
--
2.20.1 (Apple Git-117)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment