diff options
-rw-r--r-- | auth-pam.c | 12 | ||||
-rw-r--r-- | auth-pam.h | 1 |
2 files changed, 0 insertions, 13 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 | ||
953 | void | 953 | void |
954 | do_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 | |||
965 | void | ||
966 | do_pam_setcred(int init) | 954 | do_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, |
diff --git a/auth-pam.h b/auth-pam.h index f9a3fbf43..c47b442e4 100644 --- a/auth-pam.h +++ b/auth-pam.h | |||
@@ -29,7 +29,6 @@ void start_pam(Authctxt *); | |||
29 | void finish_pam(void); | 29 | void finish_pam(void); |
30 | u_int do_pam_account(void); | 30 | u_int do_pam_account(void); |
31 | void do_pam_session(void); | 31 | void do_pam_session(void); |
32 | void do_pam_set_tty(const char *); | ||
33 | void do_pam_setcred(int ); | 32 | void do_pam_setcred(int ); |
34 | void do_pam_chauthtok(void); | 33 | void do_pam_chauthtok(void); |
35 | int do_pam_putenv(char *, char *); | 34 | int do_pam_putenv(char *, char *); |