diff options
Diffstat (limited to 'ot_accesslist.h')
-rw-r--r-- | ot_accesslist.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h index 6adefd9..2783b3c 100644 --- a/ot_accesslist.h +++ b/ot_accesslist.h | |||
@@ -6,14 +6,17 @@ | |||
6 | #ifndef __OT_ACCESSLIST_H__ | 6 | #ifndef __OT_ACCESSLIST_H__ |
7 | #define __OT_ACCESSLIST_H__ | 7 | #define __OT_ACCESSLIST_H__ |
8 | 8 | ||
9 | #if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) | 9 | #if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) |
10 | #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. | 10 | #error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. |
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #if defined ( WANT_BLACKLISTING ) || defined (WANT_CLOSED_TRACKER ) | 13 | #if defined ( WANT_ACCESSLIST_BLACK ) || defined (WANT_ACCESSLIST_WHITE ) |
14 | #define WANT_ACCESS_CONTROL | 14 | #define WANT_ACCESSLIST |
15 | void accesslist_init( char *accesslist_filename ); | 15 | void accesslist_init( ); |
16 | int accesslist_hashisvalid( ot_hash *hash ); | 16 | int accesslist_hashisvalid( ot_hash *hash ); |
17 | |||
18 | extern char *g_accesslist_filename; | ||
19 | |||
17 | #else | 20 | #else |
18 | #define accesslist_init( accesslist_filename ) | 21 | #define accesslist_init( accesslist_filename ) |
19 | #define accesslist_hashisvalid( hash ) 1 | 22 | #define accesslist_hashisvalid( hash ) 1 |
@@ -22,7 +25,8 @@ int accesslist_hashisvalid( ot_hash *hash ); | |||
22 | typedef enum { | 25 | typedef enum { |
23 | OT_PERMISSION_MAY_FULLSCRAPE, | 26 | OT_PERMISSION_MAY_FULLSCRAPE, |
24 | OT_PERMISSION_MAY_SYNC, | 27 | OT_PERMISSION_MAY_SYNC, |
25 | OT_PERMISSION_MAY_STAT | 28 | OT_PERMISSION_MAY_STAT, |
29 | OT_PERMISSION_MAY_LIVESYNC | ||
26 | } ot_permissions; | 30 | } ot_permissions; |
27 | 31 | ||
28 | int accesslist_blessip( char * ip, ot_permissions permissions ); | 32 | int accesslist_blessip( char * ip, ot_permissions permissions ); |