mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
There is also an option "nopassword" for ftp users. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@25 7dcaeef0-15fb-0310-b436-a5af3365683c
34 lines
640 B
C
34 lines
640 B
C
/* server.h */
|
|
/* headers for the sftp server project */
|
|
int parse_config(char *file);
|
|
char *user_chroot(char *user);
|
|
char *user_uid(char *user);
|
|
int user_nopassword(char *user);
|
|
|
|
typedef struct list_struct {
|
|
struct list_struct *next;
|
|
char *key;
|
|
void *data;
|
|
} list;
|
|
|
|
list *list_add(list *ptr, const char *key, void *data);
|
|
void *list_find(list *ptr, const char *key);
|
|
void list_set(list *ptr, const char *key, void *data);
|
|
|
|
struct group {
|
|
list *users;
|
|
char *chroot;
|
|
char *uid;
|
|
char *gid;
|
|
int nopassword;
|
|
};
|
|
|
|
struct dir {
|
|
char *name;
|
|
list *subdir;
|
|
list *List;
|
|
list *Read;
|
|
list *Write;
|
|
};
|
|
|