diff options
author | Damien Miller <djm@mindrot.org> | 1999-12-30 15:08:44 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-12-30 15:08:44 +1100 |
commit | e72b7af17e519eb1d433b5119ef551f2584f8be6 (patch) | |
tree | 7ebbc8fefdfcfd9669dbe05718b142996df69a85 /auth-pam.h | |
parent | ece22a8312357e1f34916659d77fa7dd8d15ae32 (diff) |
- Removed most of the pam code into its own file auth-pam.[ch]. This
cleaned up sshd.c up significantly.
- Several other cleanups
Diffstat (limited to 'auth-pam.h')
-rw-r--r-- | auth-pam.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | #include "includes.h" | ||
2 | #ifdef USE_PAM | ||
3 | |||
4 | #include <pwd.h> /* For struct passwd */ | ||
5 | |||
6 | void start_pam(struct passwd *pw); | ||
7 | void finish_pam(void); | ||
8 | int auth_pam_password(struct passwd *pw, const char *password); | ||
9 | char **fetch_pam_environment(void); | ||
10 | int do_pam_account(char *username, char *remote_user); | ||
11 | void do_pam_session(char *username, char *ttyname); | ||
12 | void do_pam_setcred(); | ||
13 | void print_pam_messages(void); | ||
14 | |||
15 | #endif /* USE_PAM */ | ||