diff options
Diffstat (limited to 'auth-passwd.c')
-rw-r--r-- | auth-passwd.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/auth-passwd.c b/auth-passwd.c index 5cc88155c..a58dc042b 100644 --- a/auth-passwd.c +++ b/auth-passwd.c | |||
@@ -43,14 +43,11 @@ RCSID("$OpenBSD: auth-passwd.c,v 1.31 2004/01/30 09:48:57 markus Exp $"); | |||
43 | #include "servconf.h" | 43 | #include "servconf.h" |
44 | #include "auth.h" | 44 | #include "auth.h" |
45 | #include "auth-options.h" | 45 | #include "auth-options.h" |
46 | #ifdef WITH_AIXAUTHENTICATE | ||
47 | # include "canohost.h" | ||
48 | #endif | ||
49 | 46 | ||
50 | extern ServerOptions options; | 47 | extern ServerOptions options; |
51 | int sys_auth_passwd(Authctxt *, const char *); | 48 | int sys_auth_passwd(Authctxt *, const char *); |
52 | 49 | ||
53 | static void | 50 | void |
54 | disable_forwarding(void) | 51 | disable_forwarding(void) |
55 | { | 52 | { |
56 | no_port_forwarding_flag = 1; | 53 | no_port_forwarding_flag = 1; |
@@ -121,14 +118,7 @@ sys_auth_passwd(Authctxt *authctxt, const char *password) | |||
121 | return (auth_close(as)); | 118 | return (auth_close(as)); |
122 | } | 119 | } |
123 | } | 120 | } |
124 | #elif defined(WITH_AIXAUTHENTICATE) | 121 | #elif !defined(CUSTOM_SYS_AUTH_PASSWD) |
125 | int | ||
126 | sys_auth_passwd(Authctxt *authctxt, const char *password) | ||
127 | { | ||
128 | return (aix_authenticate(authctxt->pw->pw_name, password, | ||
129 | get_canonical_hostname(options.use_dns))); | ||
130 | } | ||
131 | #else | ||
132 | int | 122 | int |
133 | sys_auth_passwd(Authctxt *authctxt, const char *password) | 123 | sys_auth_passwd(Authctxt *authctxt, const char *password) |
134 | { | 124 | { |