#include #include #ifdef USE_PAM #include extern pam_handle_t *pamh; #endif extern struct passwd userinfo; extern char userinfo_set; int bftpd_setuid(uid_t uid); #ifdef HAVE_UTMP_H void bftpd_logwtmp(char type); #endif char *mygetpwuid(int uid, FILE *file, char *name); int checkuser(); int checkshell(); int mygetpwnam(char *name, FILE *file); void login_init(); int bftpd_login(char *password); void login_end(); int checkpass(char *password); int checkpass_pwd(char *password); int checkpass_pam(char *password); void end_pam(); /* For use with FILE_PASSWORD option -- Jesse Returns, on success, path to the user's home directory. On failure it returns NULL. */ char *check_file_password(char *my_file, char *check_user, char *check_password); /* Foxconn added start by Jenny Zhao, 06/10/2011 @USB log */ extern void write_usb_access_log(void); extern void write_usb_fail_log(void); /* Foxconn added end by Jenny Zhao, 06/10/2011 */