Remove do_pam_set_tty which is dead code.

The callers of do_pam_set_tty were removed in 2008, so this is now dead
code.  bz#2604, pointed out by jjelen at redhat.com.
This commit is contained in:
Darren Tucker 2016-10-15 04:34:46 +11:00
parent ca04de83f2
commit e0259a82dd
2 changed files with 0 additions and 13 deletions

View File

@ -950,18 +950,6 @@ do_pam_account(void)
return (sshpam_account_status);
}
void
do_pam_set_tty(const char *tty)
{
if (tty != NULL) {
debug("PAM: setting PAM_TTY to \"%s\"", tty);
sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, tty);
if (sshpam_err != PAM_SUCCESS)
fatal("PAM: failed to set PAM_TTY: %s",
pam_strerror(sshpam_handle, sshpam_err));
}
}
void
do_pam_setcred(int init)
{

View File

@ -29,7 +29,6 @@ void start_pam(Authctxt *);
void finish_pam(void);
u_int do_pam_account(void);
void do_pam_session(void);
void do_pam_set_tty(const char *);
void do_pam_setcred(int );
void do_pam_chauthtok(void);
int do_pam_putenv(char *, char *);