1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00
Files
libssh/sftp_server/server.h
Aris Adamantiadis bcb6bf25fa the server now does the chroot and change uid.
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
2005-08-29 14:29:07 +00:00

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;
};