Makefile.in: web_sync is a directory.
[paraslash.git] / user_list.h
1 /*
2 * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file user_list.h exported functions from user_list.c */
8
9 #include "crypt.h"
10
11 /**
12 * permission flags that can be set individually for any server command
13 *
14 * - AFS_READ: read-only command of the audio file selector
15 * - AFS_WRITE: command changes state of the audio file selector
16 * - VSS_READ: command reads information about the current audio stream
17 * - VSS_WRITE: command changes the current audio stream
18 */
19 enum {AFS_READ = 1, AFS_WRITE = 2, VSS_READ = 4, VSS_WRITE = 8};
20
21 /**
22 * data needed to authenticate the user
23 */
24 struct user {
25 /** the position of this user in the list of users */
26 struct list_head node;
27 /** the username */
28 char *name;
29 /** the public RSA key */
30 RSA *rsa;
31 /** the privileges that this user has */
32 unsigned int perms;
33 };
34
35 void init_user_list(char *user_list_file);
36 struct user *lookup_user(const char *name);