blob: 8022493f0aa9773400da928b9aabf3f260cfc748 [file] [log] [blame]
Damien Millere72b7af1999-12-30 15:08:44 +11001#include "includes.h"
2#ifdef USE_PAM
3
4#include <pwd.h> /* For struct passwd */
5
Damien Miller22e22bf2001-01-19 15:46:38 +11006void start_pam(const char *user);
Damien Millere72b7af1999-12-30 15:08:44 +11007void finish_pam(void);
8int auth_pam_password(struct passwd *pw, const char *password);
9char **fetch_pam_environment(void);
Damien Millerb8481582000-12-03 11:51:51 +110010int do_pam_authenticate(int flags);
Damien Millere72b7af1999-12-30 15:08:44 +110011int do_pam_account(char *username, char *remote_user);
Damien Miller3e955e72000-01-27 10:55:38 +110012void do_pam_session(char *username, const char *ttyname);
Kevin Steves6beac8c2000-10-14 15:08:49 +000013void do_pam_setcred(void);
Damien Millere72b7af1999-12-30 15:08:44 +110014void print_pam_messages(void);
Kevin Steves092f2ef2000-10-14 13:36:13 +000015int pam_password_change_required(void);
Kevin Steves6beac8c2000-10-14 15:08:49 +000016void do_pam_chauthtok(void);
Damien Millerb8481582000-12-03 11:51:51 +110017void pam_set_conv(struct pam_conv *);
Damien Miller63dc3e92001-02-07 12:58:33 +110018void message_cat(char **p, const char *a);
Damien Millere72b7af1999-12-30 15:08:44 +110019
20#endif /* USE_PAM */