X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=acl.h;h=e6090a88c92c2f9544f287f0f45f1301318c00c1;hp=994fd6fe29c1d337158d24b8fb0058d65fb6d0ec;hb=f8ea51cdb591ef482806563a862e1ef28c2ed89c;hpb=0f6df2322c12b1cc20dea08bb6c397465d4f5b46 diff --git a/acl.h b/acl.h index 994fd6fe..e6090a88 100644 --- a/acl.h +++ b/acl.h @@ -1,8 +1,13 @@ +/* + * Copyright (C) 2008-2009 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ -void init_acl(struct list_head *acl, char * const *acl_info, int num); -int host_in_acl(int fd, struct list_head *acl); -void add_acl_entry(struct list_head *acl, struct in_addr addr, - int netmask); -void del_acl_entry(struct list_head *acl, struct in_addr addr, - int netmask); -char *get_acl_contents(struct list_head *acl); +/** \file acl.h Exported functions of acl.c. */ + +void acl_init(struct list_head *acl, char * const *acl_info, int num); +char *acl_get_contents(struct list_head *acl); +int acl_check_access(int fd, struct list_head *acl, int default_deny); +void acl_allow(char *addr, int mask, struct list_head *acl, int default_deny); +void acl_deny(char *addr, int mask, struct list_head *acl, int default_deny);