summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-10-15 04:34:46 +1100
committerDarren Tucker <dtucker@zip.com.au>2016-10-15 04:34:46 +1100
commite0259a82ddd950cfb109ddee86fcebbc09c6bd04 (patch)
tree0d5aece2736c75d9afd0a0c855a243d829250409
parentca04de83f210959ad2ed870a30ba1732c3ae00e3 (diff)
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.
-rw-r--r--auth-pam.c12
-rw-r--r--auth-pam.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 7a14c89f..7d8b2926 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -951,18 +951,6 @@ do_pam_account(void)
}
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)
{
sshpam_err = pam_set_item(sshpam_handle, PAM_CONV,
diff --git a/auth-pam.h b/auth-pam.h
index f9a3fbf4..c47b442e 100644
--- a/auth-pam.h
+++ b/auth-pam.h
@@ -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 *);