X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=user_list.h;h=7ae1494fd3d7faff8e7c51b7bd7bb140422a267c;hp=ce940376fdc67128e6ae9636281978f7523273ec;hb=8f5de4b6e1c1299b0d8cf894474cad049f6b0958;hpb=2cc93ff31f16e65c1c1f94b0044b32f6be67cbd3 diff --git a/user_list.h b/user_list.h index ce940376..7ae1494f 100644 --- a/user_list.h +++ b/user_list.h @@ -1,47 +1,32 @@ /* - * Copyright (C) 2006-2007 Andre Noll + * Copyright (C) 2006-2012 Andre Noll * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file user_list.h exported functions from user_list.c */ -#include "list.h" -#include "crypt.h" - /** * permission flags that can be set individually for any server command * - * - DB_READ: command reads from the database - * - DB_WRITE: command changes the contents of the database + * - AFS_READ: read-only command of the audio file selector + * - AFS_WRITE: command changes state of the audio file selector * - VSS_READ: command reads information about the current audio stream * - VSS_WRITE: command changes the current audio stream */ -enum {DB_READ = 1, DB_WRITE = 2, VSS_READ = 4, VSS_WRITE = 8}; +enum {AFS_READ = 1, AFS_WRITE = 2, VSS_READ = 4, VSS_WRITE = 8}; /** * data needed to authenticate the user */ struct user { - /** the position of this user in the list of users */ + /** The position of this user in the list of users. */ struct list_head node; - /** the username */ + /** The username. */ char *name; - /** the public RSA key */ - RSA *rsa; - /** the privileges that this user has */ + /** The public key. */ + struct asymmetric_key *pubkey; + /** The privileges of this user. */ unsigned int perms; };