From 5f55d9d4d14635678e7f582215e3642de2e232a4 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 6 May 2024 02:08:31 +0200 Subject: new ecp directory and vconn server --- ecp/server/acl.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ecp/server/acl.h (limited to 'ecp/server/acl.h') diff --git a/ecp/server/acl.h b/ecp/server/acl.h new file mode 100644 index 0000000..5e3f83c --- /dev/null +++ b/ecp/server/acl.h @@ -0,0 +1,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); -- cgit v1.2.3