From b8944ab71ccdc9951c6b74ef8ed8686d0329f99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 27 Aug 2010 17:05:18 +0300 Subject: authdb: implement basics Implement a shared memory based authentication cache. It's a simple local cache indexed by IP-address, and keeps track of that IP's auth info such as username, allowed categories and timeouts. This provides basis for captive portal, per-user definable category restrictions and implementation of soft blocks (block which can be overridden by user by clicking a button on the blocked page). --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 55f0d96..09c58d4 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ CFLAGS=-g -I. $(NETSNMP_CFLAGS) $(LUA_CFLAGS) $(CMPH_CFLAGS) -std=gnu99 -D_GNU_S all: $(TARGETS) -squark-auth-snmp: squark-auth-snmp.o blob.o +squark-auth-snmp: squark-auth-snmp.o blob.o addr.o $(CC) -o $@ $^ $(NETSNMP_LIBS) -squark-filter: squark-filter.o filterdb.o blob.o - $(CC) -o $@ $^ $(CMPH_LIBS) +squark-filter: squark-filter.o filterdb.o authdb.o blob.o addr.o + $(CC) -o $@ $^ $(CMPH_LIBS) -lrt squarkdb.so: lua-squarkdb.o filterdb.o blob.o $(CC) -shared -o $@ $^ $(LUA_LIBS) $(CMPH_LIBS) -- cgit v1.2.3