summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-04-03 06:27:45 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-04-03 06:27:45 +1100
commit79a87d32783d6c9db40af8f35e091d9d30365ae7 (patch)
tree84082e60474681dfd5a62e1579e01e64b592717e
parent138c0d52cdc90f9895333b82fc57d81cce7a3d90 (diff)
Remove "struct ssh" from sys_auth_record_login.
It's not needed, and is not available from the call site in loginrec.c Should only affect AIX, spotted by Kevin Brott.
-rw-r--r--auth.c2
-rw-r--r--openbsd-compat/port-aix.c4
-rw-r--r--openbsd-compat/port-aix.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/auth.c b/auth.c
index 332b6220..8696f258 100644
--- a/auth.c
+++ b/auth.c
@@ -360,7 +360,7 @@ auth_log(struct ssh *ssh, int authenticated, int partial,
auth_get_canonical_hostname(ssh, options.use_dns), "ssh");
# ifdef WITH_AIXAUTHENTICATE
if (authenticated)
- sys_auth_record_login(ssh, authctxt->user,
+ sys_auth_record_login(authctxt->user,
auth_get_canonical_hostname(ssh, options.use_dns), "ssh",
loginmsg);
# endif
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index b61018b5..fc80dc39 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -280,8 +280,8 @@ sys_auth_allowed_user(struct passwd *pw, struct sshbuf *loginmsg)
}
int
-sys_auth_record_login(struct ssh *ssh, const char *user, const char *host,
- const char *ttynm, struct sshbuf *loginmsg)
+sys_auth_record_login(const char *user, const char *host, const char *ttynm,
+ struct sshbuf *loginmsg)
{
char *msg = NULL;
int success = 0;
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h
index 4702e3bf..904de309 100644
--- a/openbsd-compat/port-aix.h
+++ b/openbsd-compat/port-aix.h
@@ -90,8 +90,8 @@ void aix_usrinfo(struct passwd *);
# define CUSTOM_SYS_AUTH_ALLOWED_USER 1
int sys_auth_allowed_user(struct passwd *, struct sshbuf *);
# define CUSTOM_SYS_AUTH_RECORD_LOGIN 1
-int sys_auth_record_login(struct ssh *, const char *, const char *,
- const char *, struct sshbuf *);
+int sys_auth_record_login(const char *, const char *, const char *,
+ struct sshbuf *);
# define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG
char *sys_auth_get_lastlogin_msg(const char *, uid_t);
# define CUSTOM_FAILED_LOGIN 1