From e72b7af17e519eb1d433b5119ef551f2584f8be6 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 30 Dec 1999 15:08:44 +1100 Subject: - Removed most of the pam code into its own file auth-pam.[ch]. This cleaned up sshd.c up significantly. - Several other cleanups --- auth-pam.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 auth-pam.h (limited to 'auth-pam.h') diff --git a/auth-pam.h b/auth-pam.h new file mode 100644 index 000000000..1f3bc252f --- /dev/null +++ b/auth-pam.h @@ -0,0 +1,15 @@ +#include "includes.h" +#ifdef USE_PAM + +#include /* For struct passwd */ + +void start_pam(struct passwd *pw); +void finish_pam(void); +int auth_pam_password(struct passwd *pw, const char *password); +char **fetch_pam_environment(void); +int do_pam_account(char *username, char *remote_user); +void do_pam_session(char *username, char *ttyname); +void do_pam_setcred(); +void print_pam_messages(void); + +#endif /* USE_PAM */ -- cgit v1.2.3