From a0c0b6311210e0cddfb1b038bd7b37f5a298ef3e Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 8 Jul 2003 20:52:12 +1000 Subject: - (dtucker) [acconfig.h auth-passwd.c configure.ac session.c port-aix.[ch]] Include AIX headers for authentication functions and make calls match prototypes. Test for and handle 3-args and 4-arg variants of loginfailed. --- openbsd-compat/port-aix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openbsd-compat/port-aix.c') diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index b4c9454a1..c8d9517b6 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c @@ -70,7 +70,11 @@ record_failed_login(const char *user, const char *ttyname) { char *hostname = get_canonical_hostname(options.use_dns); - loginfailed(user, hostname, ttyname); +# ifdef AIX_LOGINFAILED_3ARG + loginfailed((char *)user, hostname, (char *)ttyname); +# else + loginfailed((char *)user, hostname, (char *)ttyname, AUDIT_FAIL_AUTH); +# endif } # endif /* CUSTOM_FAILED_LOGIN */ #endif /* _AIX */ -- cgit v1.2.3