summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
authordtucker <dtucker>2003-07-08 10:52:12 +0000
committerdtucker <dtucker>2003-07-08 10:52:12 +0000
commit0e50f671990bc1c64163c45e6d0a17046749ab7d (patch)
tree5d5b4ba3b68e12a63792c78453850ba23e9acb07 /openbsd-compat/port-aix.c
parent30680581c19fc623c79033c8a3efab5152d13a51 (diff)
downloadopenssh-0e50f671990bc1c64163c45e6d0a17046749ab7d.tar.gz
- (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.
Diffstat (limited to 'openbsd-compat/port-aix.c')
-rw-r--r--openbsd-compat/port-aix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index b4c9454a..c8d9517b 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 */