1#include <config.h> 2#include <pwd.h> 3#ifdef USE_PAM 4 #include <security/pam_appl.h> 5extern pam_handle_t *pamh; 6#endif 7 8extern struct passwd userinfo; 9extern char userinfo_set; 10 11int bftpd_setuid(uid_t uid); 12#ifdef HAVE_UTMP_H 13void bftpd_logwtmp(char type); 14#endif 15char *mygetpwuid(int uid, FILE *file, char *name); 16int checkuser(); 17int checkshell(); 18int mygetpwnam(char *name, FILE *file); 19void login_init(); 20int bftpd_login(char *password); 21void login_end(); 22int checkpass(char *password); 23int checkpass_pwd(char *password); 24int checkpass_pam(char *password); 25void end_pam(); 26 27/* For use with FILE_PASSWORD option -- Jesse 28Returns, on success, path to the user's home directory. 29On failure it returns NULL. 30*/ 31char *check_file_password(char *my_file, char *check_user, char *check_password); 32 33/* Foxconn added start by Jenny Zhao, 06/10/2011 @USB log */ 34extern void write_usb_access_log(void); 35extern void write_usb_fail_log(void); 36/* Foxconn added end by Jenny Zhao, 06/10/2011 */ 37 38 39