# BRCM_VERSION=3
[bcm963xx.git] / userapps / opensource / ftpd / login.h
1 #include <config.h>
2 #include <pwd.h>
3 #ifdef USE_PAM
4   #include <security/pam_appl.h>
5 extern pam_handle_t *pamh;
6 #endif
7
8 extern struct passwd userinfo;
9 extern char userinfo_set;
10
11 int bftpd_setuid(uid_t uid);
12 #ifdef HAVE_UTMP_H
13 void bftpd_logwtmp(char type);
14 #endif
15 char *mygetpwuid(int uid, FILE *file, char *name);
16 int checkuser();
17 int checkshell();
18 int mygetpwnam(char *name, FILE *file);
19 void login_init();
20 int bftpd_login(char *password);
21 void login_end();
22 int checkpass(char *password);
23 int checkpass_pwd(char *password);
24 int checkpass_pam(char *password);
25 void end_pam();