summaryrefslogtreecommitdiffhomepage
path: root/svr-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-12 14:56:22 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-12 14:56:22 +0000
commitd7575f95f093f774145a3725a7c5a3e253962e7c (patch)
tree0a38af8d83a513c0f4611b03b5b021d42a1ab00c /svr-auth.c
parent96a0f77bb4d861d58e1bf36f480d14e8b20afb27 (diff)
cleaning up the pubkey defines
--HG-- extra : convert_revision : 149ce7a9a9cc5fe670994d6789b40be49895c595
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/svr-auth.c b/svr-auth.c
index db1d6a4..314171f 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -32,8 +32,6 @@
#include "ssh.h"
#include "packet.h"
#include "auth.h"
-#include "authpasswd.h"
-#include "authpubkey.h"
#include "runopts.h"
static void authclear();
@@ -54,10 +52,10 @@ void svr_authinitialise() {
static void authclear() {
memset(&ses.authstate, 0, sizeof(ses.authstate));
-#ifdef DROPBEAR_PUBKEY_AUTH
+#ifdef ENABLE_SVR_PUBKEY_AUTH
ses.authstate.authtypes |= AUTH_TYPE_PUBKEY;
#endif
-#ifdef DROPBEAR_PASSWORD_AUTH
+#ifdef ENABLE_SVR_PASSWORD_AUTH
if (!svr_opts.noauthpass) {
ses.authstate.authtypes |= AUTH_TYPE_PASSWORD;
}
@@ -143,7 +141,7 @@ void recv_msg_userauth_request() {
goto out;
}
-#ifdef DROPBEAR_PASSWORD_AUTH
+#ifdef ENABLE_SVR_PASSWORD_AUTH
if (!svr_opts.noauthpass &&
!(svr_opts.norootpass && ses.authstate.pw->pw_uid == 0) ) {
/* user wants to try password auth */
@@ -156,7 +154,7 @@ void recv_msg_userauth_request() {
}
#endif
-#ifdef DROPBEAR_PUBKEY_AUTH
+#ifdef ENABLE_SVR_PUBKEY_AUTH
/* user wants to try pubkey auth */
if (methodlen == AUTH_METHOD_PUBKEY_LEN &&
strncmp(methodname, AUTH_METHOD_PUBKEY,