From 697e239027b1490eaa51e1d2dfc1f93b9941e07b Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 12 Nov 2007 04:39:53 +0000 Subject: Moving accesslist stuff to its own object --- ot_accesslist.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ot_accesslist.h (limited to 'ot_accesslist.h') diff --git a/ot_accesslist.h b/ot_accesslist.h new file mode 100644 index 0000000..d24463d --- /dev/null +++ b/ot_accesslist.h @@ -0,0 +1,22 @@ +/* This software was written by Dirk Engling + It is considered beerware. Prost. Skol. Cheers or whatever. */ + +#ifndef __OT_ACCESSLIST_H__ +#define __OT_ACCESSLIST_H__ + +#include "trackerlogic.h" + +#if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) + #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. +#endif + +#if defined ( WANT_BLACKLISTING ) || defined (WANT_CLOSED_TRACKER ) +#define WANT_ACCESS_CONTROL +void accesslist_init( char *accesslist_filename ); +int accesslist_hashisvalid( ot_hash *hash ); +#else +#define accesslist_init( accesslist_filename ) +#define accesslist_hashisvalid( hash ) 1 +#endif + +#endif -- cgit v1.2.3