summaryrefslogtreecommitdiff
path: root/auth-rh-rsa.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-13 19:38:18 +1100
committerDamien Miller <djm@mindrot.org>2015-01-13 19:38:18 +1100
commit76c0480a85675f03a1376167cb686abed01a3583 (patch)
tree25f6fa4adfa0e608a178c5d0189c63b745bc026b /auth-rh-rsa.c
parent1f729f0614d1376c3332fa1edb6a5e5cec7e9e03 (diff)
add --without-ssh1 option to configure
Allows disabling support for SSH protocol 1.
Diffstat (limited to 'auth-rh-rsa.c')
-rw-r--r--auth-rh-rsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/auth-rh-rsa.c b/auth-rh-rsa.c
index b7fd064e..2e20396e 100644
--- a/auth-rh-rsa.c
+++ b/auth-rh-rsa.c
@@ -15,6 +15,8 @@
#include "includes.h"
+#ifdef WITH_SSH1
+
#include <sys/types.h>
#include <pwd.h>
@@ -102,3 +104,5 @@ auth_rhosts_rsa(Authctxt *authctxt, char *cuser, Key *client_host_key)
packet_send_debug("Rhosts with RSA host authentication accepted.");
return 1;
}
+
+#endif /* WITH_SSH1 */