2002-06-27 22:42:11 +00:00
|
|
|
/* $Id: auth-pam.h,v 1.12 2002/04/04 19:02:28 stevesk Exp $ */
|
|
|
|
|
2000-12-05 02:55:12 +00:00
|
|
|
#include "includes.h"
|
|
|
|
#ifdef USE_PAM
|
|
|
|
|
|
|
|
#include <pwd.h> /* For struct passwd */
|
|
|
|
|
2002-06-27 22:42:11 +00:00
|
|
|
void start_pam(const char *user);
|
2000-12-05 02:55:12 +00:00
|
|
|
void finish_pam(void);
|
2001-05-05 01:12:45 +00:00
|
|
|
int auth_pam_password(Authctxt *authctxt, const char *password);
|
2000-12-05 02:55:12 +00:00
|
|
|
char **fetch_pam_environment(void);
|
2002-06-27 22:42:11 +00:00
|
|
|
int do_pam_authenticate(int flags);
|
2000-12-05 02:55:12 +00:00
|
|
|
int do_pam_account(char *username, char *remote_user);
|
|
|
|
void do_pam_session(char *username, const char *ttyname);
|
2002-06-27 22:42:11 +00:00
|
|
|
void do_pam_setcred(int init);
|
2000-12-05 02:55:12 +00:00
|
|
|
void print_pam_messages(void);
|
2002-06-27 22:42:11 +00:00
|
|
|
int is_pam_password_change_required(void);
|
2000-12-05 02:55:12 +00:00
|
|
|
void do_pam_chauthtok(void);
|
2002-06-27 22:42:11 +00:00
|
|
|
void do_pam_set_conv(struct pam_conv *);
|
|
|
|
void message_cat(char **p, const char *a);
|
2000-12-05 02:55:12 +00:00
|
|
|
|
|
|
|
#endif /* USE_PAM */
|