blob: 6b1f35addeda056f8b6b05e94e6a355b45bd2d4d [file] [log] [blame]
Kevin Stevese683e762002-04-04 19:02:28 +00001/* $Id: auth-pam.h,v 1.12 2002/04/04 19:02:28 stevesk Exp $ */
Damien Millere9cf3572001-02-09 12:55:35 +11002
Damien Millere72b7af1999-12-30 15:08:44 +11003#include "includes.h"
4#ifdef USE_PAM
5
6#include <pwd.h> /* For struct passwd */
7
Damien Miller22e22bf2001-01-19 15:46:38 +11008void start_pam(const char *user);
Damien Millere72b7af1999-12-30 15:08:44 +11009void finish_pam(void);
Kevin Stevese683e762002-04-04 19:02:28 +000010int auth_pam_password(Authctxt *authctxt, const char *password);
Damien Millere72b7af1999-12-30 15:08:44 +110011char **fetch_pam_environment(void);
Damien Millerb8481582000-12-03 11:51:51 +110012int do_pam_authenticate(int flags);
Damien Millere72b7af1999-12-30 15:08:44 +110013int do_pam_account(char *username, char *remote_user);
Damien Miller3e955e72000-01-27 10:55:38 +110014void do_pam_session(char *username, const char *ttyname);
Damien Millerf9e93002001-03-27 16:12:24 +100015void do_pam_setcred(int init);
Damien Millere72b7af1999-12-30 15:08:44 +110016void print_pam_messages(void);
Damien Miller646aa602001-02-15 11:51:32 +110017int is_pam_password_change_required(void);
Kevin Steves6beac8c2000-10-14 15:08:49 +000018void do_pam_chauthtok(void);
Damien Miller646aa602001-02-15 11:51:32 +110019void do_pam_set_conv(struct pam_conv *);
Damien Miller63dc3e92001-02-07 12:58:33 +110020void message_cat(char **p, const char *a);
Damien Millere72b7af1999-12-30 15:08:44 +110021
22#endif /* USE_PAM */