diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-04-03 06:27:45 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-04-03 06:27:45 +1100 |
commit | 79a87d32783d6c9db40af8f35e091d9d30365ae7 (patch) | |
tree | 84082e60474681dfd5a62e1579e01e64b592717e | |
parent | 138c0d52cdc90f9895333b82fc57d81cce7a3d90 (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.c | 2 | ||||
-rw-r--r-- | openbsd-compat/port-aix.c | 4 | ||||
-rw-r--r-- | openbsd-compat/port-aix.h | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -360,7 +360,7 @@ auth_log(struct ssh *ssh, int authenticated, int partial, | |||
360 | auth_get_canonical_hostname(ssh, options.use_dns), "ssh"); | 360 | auth_get_canonical_hostname(ssh, options.use_dns), "ssh"); |
361 | # ifdef WITH_AIXAUTHENTICATE | 361 | # ifdef WITH_AIXAUTHENTICATE |
362 | if (authenticated) | 362 | if (authenticated) |
363 | sys_auth_record_login(ssh, authctxt->user, | 363 | sys_auth_record_login(authctxt->user, |
364 | auth_get_canonical_hostname(ssh, options.use_dns), "ssh", | 364 | auth_get_canonical_hostname(ssh, options.use_dns), "ssh", |
365 | loginmsg); | 365 | loginmsg); |
366 | # endif | 366 | # endif |
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index b61018b56..fc80dc39f 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) | |||
280 | } | 280 | } |
281 | 281 | ||
282 | int | 282 | int |
283 | sys_auth_record_login(struct ssh *ssh, const char *user, const char *host, | 283 | sys_auth_record_login(const char *user, const char *host, const char *ttynm, |
284 | const char *ttynm, struct sshbuf *loginmsg) | 284 | struct sshbuf *loginmsg) |
285 | { | 285 | { |
286 | char *msg = NULL; | 286 | char *msg = NULL; |
287 | int success = 0; | 287 | int success = 0; |
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h index 4702e3bf1..904de3096 100644 --- a/openbsd-compat/port-aix.h +++ b/openbsd-compat/port-aix.h | |||
@@ -90,8 +90,8 @@ void aix_usrinfo(struct passwd *); | |||
90 | # define CUSTOM_SYS_AUTH_ALLOWED_USER 1 | 90 | # define CUSTOM_SYS_AUTH_ALLOWED_USER 1 |
91 | int sys_auth_allowed_user(struct passwd *, struct sshbuf *); | 91 | int sys_auth_allowed_user(struct passwd *, struct sshbuf *); |
92 | # define CUSTOM_SYS_AUTH_RECORD_LOGIN 1 | 92 | # define CUSTOM_SYS_AUTH_RECORD_LOGIN 1 |
93 | int sys_auth_record_login(struct ssh *, const char *, const char *, | 93 | int sys_auth_record_login(const char *, const char *, const char *, |
94 | const char *, struct sshbuf *); | 94 | struct sshbuf *); |
95 | # define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG | 95 | # define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG |
96 | char *sys_auth_get_lastlogin_msg(const char *, uid_t); | 96 | char *sys_auth_get_lastlogin_msg(const char *, uid_t); |
97 | # define CUSTOM_FAILED_LOGIN 1 | 97 | # define CUSTOM_FAILED_LOGIN 1 |