summaryrefslogtreecommitdiff
path: root/ecp/server/acl.h
blob: 5e3f83c679fb650d2afab8645898bc5b7dbd55cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define ACL_MAX_KEY         50

typedef struct ACLItem {
    ecp_ecdh_public_t key[ACL_MAX_KEY];
    unsigned short key_cnt;
    struct ACLItem *next;
} ACLItem;

ACLItem *acl_create_item(void);
void acl_destroy_item(ACLItem *acl_item);
void acl_destroy_list(ACLItem *head);

int acl_add_key(ECPDirItem *dir_item);
int acl_inlist(ecp_ecdh_public_t *public);
int acl_dir_inlist(ecp_ecdh_public_t *public);

int acl_reset_ht(void);
int acl_load_ht(void);

int acl_load(void);
int acl_init(void);