summaryrefslogtreecommitdiff
path: root/ot_accesslist.h
diff options
context:
space:
mode:
authorerdgeist <>2007-12-03 00:48:48 +0000
committererdgeist <>2007-12-03 00:48:48 +0000
commit5d18bf211caab11f3b8ac3f921a8e338e2a9724b (patch)
treeb1a49ac370deab752eaf254bd0153a4983de0f19 /ot_accesslist.h
parentafea7d5ee236e73d340b79f509c090c4f40fc7e0 (diff)
Move blessed IP handling code to accesslist objects
Diffstat (limited to 'ot_accesslist.h')
-rw-r--r--ot_accesslist.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h
index d24463d..d0d674a 100644
--- a/ot_accesslist.h
+++ b/ot_accesslist.h
@@ -4,8 +4,6 @@
4#ifndef __OT_ACCESSLIST_H__ 4#ifndef __OT_ACCESSLIST_H__
5#define __OT_ACCESSLIST_H__ 5#define __OT_ACCESSLIST_H__
6 6
7#include "trackerlogic.h"
8
9#if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) 7#if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER )
10 #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. 8 #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive.
11#endif 9#endif
@@ -19,4 +17,13 @@ int accesslist_hashisvalid( ot_hash *hash );
19#define accesslist_hashisvalid( hash ) 1 17#define accesslist_hashisvalid( hash ) 1
20#endif 18#endif
21 19
20typedef enum {
21 OT_PERMISSION_MAY_FULLSCRAPE,
22 OT_PERMISSION_MAY_SYNC,
23 OT_PERMISSION_MAY_STAT
24} ot_permissions;
25
26int accesslist_blessip( char * ip, ot_permissions permissions );
27int accesslist_isblessed( char * ip, ot_permissions permissions );
28
22#endif 29#endif