From 97363a8b24601bad631f6f187c487a166f7eb959 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 2 May 2003 23:42:25 +1000 Subject: - (dtucker) Move handling of bad password authentications into a platform specific record_failed_login() function (affects AIX & Unicos). --- openbsd-compat/port-aix.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'openbsd-compat/port-aix.c') diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index 4c96a3171..cddc0907f 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c @@ -24,12 +24,17 @@ * */ #include "includes.h" +#include "ssh.h" +#include "log.h" +#include "servconf.h" #ifdef _AIX #include #include <../xmalloc.h> +extern ServerOptions options; + /* * AIX has a "usrinfo" area where logname and other stuff is stored - * a few applications actually use this and die if it's not set @@ -52,5 +57,16 @@ aix_usrinfo(struct passwd *pw) xfree(cp); } +# ifdef CUSTOM_FAILED_LOGIN +/* + * record_failed_login: generic "login failed" interface function + */ +void +record_failed_login(const char *user, const char *ttyname) +{ + loginfailed(user, + get_canonical_hostname(options.verify_reverse_mapping), ttyname); +} +# endif /* CUSTOM_FAILED_LOGIN */ #endif /* _AIX */ -- cgit v1.2.3