X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=user_list.h;h=f4e7661b5eb7900d43afa4ee4cd26c7771267a11;hp=c18eb57d049551fc8fe30e1d67c08795395a5389;hb=eeeab4239843e716b3fd4dd259985a4cd4c487a5;hpb=47fedd501291bf9b0ca2204e2af3d1617b6f18a8 diff --git a/user_list.h b/user_list.h index c18eb57d..f4e7661b 100644 --- a/user_list.h +++ b/user_list.h @@ -1,26 +1,11 @@ /* - * Copyright (C) 2006-2007 Andre Noll + * Copyright (C) 2006 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 * @@ -35,13 +20,13 @@ 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; };