mirror of git://anongit.mindrot.org/openssh.git
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.
This commit is contained in:
parent
138c0d52cd
commit
79a87d3278
2
auth.c
2
auth.c
|
@ -360,7 +360,7 @@ auth_log(struct ssh *ssh, int authenticated, int partial,
|
||||||
auth_get_canonical_hostname(ssh, options.use_dns), "ssh");
|
auth_get_canonical_hostname(ssh, options.use_dns), "ssh");
|
||||||
# ifdef WITH_AIXAUTHENTICATE
|
# ifdef WITH_AIXAUTHENTICATE
|
||||||
if (authenticated)
|
if (authenticated)
|
||||||
sys_auth_record_login(ssh, authctxt->user,
|
sys_auth_record_login(authctxt->user,
|
||||||
auth_get_canonical_hostname(ssh, options.use_dns), "ssh",
|
auth_get_canonical_hostname(ssh, options.use_dns), "ssh",
|
||||||
loginmsg);
|
loginmsg);
|
||||||
# endif
|
# endif
|
||||||
|
|
|
@ -280,8 +280,8 @@ sys_auth_allowed_user(struct passwd *pw, struct sshbuf *loginmsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
sys_auth_record_login(struct ssh *ssh, const char *user, const char *host,
|
sys_auth_record_login(const char *user, const char *host, const char *ttynm,
|
||||||
const char *ttynm, struct sshbuf *loginmsg)
|
struct sshbuf *loginmsg)
|
||||||
{
|
{
|
||||||
char *msg = NULL;
|
char *msg = NULL;
|
||||||
int success = 0;
|
int success = 0;
|
||||||
|
|
|
@ -90,8 +90,8 @@ void aix_usrinfo(struct passwd *);
|
||||||
# define CUSTOM_SYS_AUTH_ALLOWED_USER 1
|
# define CUSTOM_SYS_AUTH_ALLOWED_USER 1
|
||||||
int sys_auth_allowed_user(struct passwd *, struct sshbuf *);
|
int sys_auth_allowed_user(struct passwd *, struct sshbuf *);
|
||||||
# define CUSTOM_SYS_AUTH_RECORD_LOGIN 1
|
# define CUSTOM_SYS_AUTH_RECORD_LOGIN 1
|
||||||
int sys_auth_record_login(struct ssh *, const char *, const char *,
|
int sys_auth_record_login(const char *, const char *, const char *,
|
||||||
const char *, struct sshbuf *);
|
struct sshbuf *);
|
||||||
# define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG
|
# define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG
|
||||||
char *sys_auth_get_lastlogin_msg(const char *, uid_t);
|
char *sys_auth_get_lastlogin_msg(const char *, uid_t);
|
||||||
# define CUSTOM_FAILED_LOGIN 1
|
# define CUSTOM_FAILED_LOGIN 1
|
||||||
|
|
Loading…
Reference in New Issue