summaryrefslogtreecommitdiff
path: root/auth-pam.h
diff options
context:
space:
mode:
authordamien <damien>1999-12-30 04:08:44 +0000
committerdamien <damien>1999-12-30 04:08:44 +0000
commit3f5b3c318595f7616c5b068ccd465919515e53fb (patch)
tree7ebbc8fefdfcfd9669dbe05718b142996df69a85 /auth-pam.h
parentd8898439ae5e05a4e4158cc6a2782fa633dce670 (diff)
downloadopenssh-3f5b3c318595f7616c5b068ccd465919515e53fb.tar.gz
- 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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/auth-pam.h b/auth-pam.h
new file mode 100644
index 00000000..1f3bc252
--- /dev/null
+++ b/auth-pam.h
@@ -0,0 +1,15 @@
+#include "includes.h"
+#ifdef USE_PAM
+
+#include <pwd.h> /* 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 */