summaryrefslogtreecommitdiff
path: root/auth-pam.c
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 /auth-pam.c
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.
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 7a14c89f4..7d8b2926b 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -951,18 +951,6 @@ do_pam_account(void)
951} 951}
952 952
953void 953void
954do_pam_set_tty(const char *tty)
955{
956 if (tty != NULL) {
957 debug("PAM: setting PAM_TTY to \"%s\"", tty);
958 sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, tty);
959 if (sshpam_err != PAM_SUCCESS)
960 fatal("PAM: failed to set PAM_TTY: %s",
961 pam_strerror(sshpam_handle, sshpam_err));
962 }
963}
964
965void
966do_pam_setcred(int init) 954do_pam_setcred(int init)
967{ 955{
968 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, 956 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV,